Any luck with finding out how many files you have?
What processing you you need to do in the directory?
Is archiving an option?
The inode count is the total number of files and directories on a filesystem. It is possible to run out of inodes long before you fill a filesystem and well worth being aware of how many inodes you have left:
Hi,
I'm a novice and I'd like to make a directory structure with a hundred or so folders. I've tried mkdir /foo/foo1/etc...
mkdir /foo/foo2/etc
mkdir /foo/foo3/etc
mkdir /foo/foo4/etc
...but it appends '@' to each folder name and then fails on the subdirectories. Is it better to use a... (2 Replies)
Hi
How to create a shell script which takes in to account all the files present within a directory DIR one by one
e.g.
suppose i have a directory named DIR where there are files with the extension .ABC
i want to create shell script which processes all these files one by one.
... (1 Reply)
how to extract files one by one from a directory and let some processing be done on the file
I have a directory by name INTRN which has files like
INTR.0003080248636814
INTR.0003080248636816
INTR.0003080248636818
.
.
.
.
and so on
and in a script... (5 Replies)
Hello All. I am trying to do this from a terminal prompt on my mac....
I have 100 folders all named different things. Those 100 folders are inside ~/Desktop/Pictures directory.
Each of the 100 folders are uniquely named. The image files inside of each folder only have some similarities.
... (1 Reply)
Hi, what happened is we want to count all the files in a directory and inside this directory got many folders and so take long time to count it. Already run for about few minutes but still not done. The command we use to count is find . -type f | wc -l
Just wondering if there is any other... (9 Replies)
Hello folks,
I am deleting a directory with script it is taking 11Hour and also increase the IO on server. I am using below command, inside date directory there are hour directories, which i am deleting after archiving. Archiving is not taking long time, only "rm -rf" is taking alot of time with... (21 Replies)
Discussion started by: learnbash
21 Replies
LEARN ABOUT HPUX
bdf
bdf(1M)bdf(1M)NAME
bdf - report number of free disk blocks (Berkeley version)
SYNOPSIS
type [filesystem|file] ... ]
DESCRIPTION
The command displays the amount of free disk space available either on the specified filesystem for example) or on the file system in which
the specified file (such as is contained. If no file system is specified, the free space on all of the normally mounted file systems is
printed. The reported numbers are in kilobytes.
Options
The command recognizes the following options:
Display information regarding file system swapping.
Report the number of used and free inodes.
Display information for local file systems only (for example,
HFS and CDFS file systems).
Do not sync the file system data on the disk before reporting the usage.
Note that the data reported by may not be up to date.
Report on the file systems of a given
type (for example, or
RETURN VALUE
The command returns 0 on success (able to get status on all file systems), or returns 1 on failure (unable to get status on one or more
file systems).
WARNINGS
If file system names are too long, the output for a given entry is displayed on two lines.
The command does not account for any disk space reserved for swap space, or used for the HFS boot block (8 KB, 1 per file system), HFS
superblocks (8 KB each, 1 per disk cylinder), HFS cylinder group blocks (1 KB - 8 KB each, 1 per cylinder group), and inodes (currently 128
bytes reserved for each inode). Non-HFS file systems may have other items not accounted for by this command.
AUTHOR
was developed by the University of California, Berkeley.
FILES
Static information about the file systems.
Mounted file system table.
File system devices.
SEE ALSO df(1M), fstab(4), mnttab(4).
bdf(1M)