09-05-2007
Quote:
Originally Posted by
namishtiwari
total 16 means the directory is taking 16 blocks of memory.
Almost.
The 16 means that all of the entries add up to 16. There are two entries, one for the parent directory and one for the current directory. Each of these directories is using 8 blocks. If this directory was removed only 8 blocks would be recovered. The parent directory would continue to exist and continue to consume the other 8 blocks. You can see the 8 in the original directory listing posted above. Although the user seems to have entered the command "ls -la", we see the result that we would get with "ls -las". I guess an alias or a function is in use providing that s switch.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Something very weird has been happening when I'm creating files and directories. When I create a directory, at times depending on the directory name and depth, it becomes hidden and can only be seen typing "ls -a". When I say the name of the directory matters, "my_c++" will be hidden but using... (10 Replies)
Discussion started by: dbinsol1
10 Replies
2. UNIX Desktop Questions & Answers
How to make a file Hidden whose name does not starts with . (dot)
(sorry i am beginner) (1 Reply)
Discussion started by: gandhevinod
1 Replies
3. Filesystems, Disks and Memory
Please tell me how to make a file hidden whose name is not starting with (.) dot ( Sorry I am Biginer) (1 Reply)
Discussion started by: gandhevinod
1 Replies
4. Shell Programming and Scripting
I want to make a hidden file with chmod command.
Example:
I have a file name inputfile.txt
-rw-r--r-- 1 xxxxxx xxxxxx 1388 Sep 12 05:41 inputfile.txt
I want to hide that file using chmod command.
Please tell me if it is possible or there is some other way to do this.
Thanks... (2 Replies)
Discussion started by: rinku
2 Replies
5. Shell Programming and Scripting
Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is:
find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \;
But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy... (4 Replies)
Discussion started by: pochaw
4 Replies
6. UNIX for Dummies Questions & Answers
it seems one of my server's account was compromised.
I caught a perl script running a hack/attack script:
20:23 /usr/bin/perl ./up **.**.**.** 0 120
I've disabled the user etc, but I cannot find the script "up" anywhere in the server.
I tried using locate or find.
any ideas? (1 Reply)
Discussion started by: MaRiOsGR
1 Replies
7. UNIX for Dummies Questions & Answers
I want to list all directories hidden or not hidden.
ls -ld */ => shows only not hidden directories
so i guess the answer would be to add the a option to show all files
ls -lad */ => not working :confused:
ls -la | grep "^d" => works
But I would like to know why I can't use ls -lad... (4 Replies)
Discussion started by: servus
4 Replies
8. Programming
Hi There,
Can anyone please let me know, how to write hidden file in perl?
I tried opning hidden file in write mode but its failing to create it.
Appreciate your help in this.
Thanks (1 Reply)
Discussion started by: ps_tech
1 Replies
9. Shell Programming and Scripting
Hello.
I use this command :
rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command.
And no full source directories are in use, only some files.
Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
df_vxfs(1M) df_vxfs(1M)
NAME
df_vxfs: df - report number of free disk blocks on a VxFS file system
SYNOPSIS
[special|directory]...
DESCRIPTION
prints the number of free blocks and free inodes in VxFS file systems or directories based on the counts kept in the super-blocks.
VxFS dynamically allocates inodes from a pool of free blocks. The number of free inodes and blocks reported by is an estimate based on the
number of free 8K or larger extents and the current ratio of allocated inodes to allocated blocks. (Extents smaller than 8K may not be
usable for all types of allocation, so does not count free blocks in extents smaller than 8K.) Allocating additional blocks may therefore
decrease the count of free inodes and vice versa.
If the operand to is a special device name, the file system can be an unmounted or mounted file system (for example, If you specify a
directoryname, displays information for the file system at that mount point. If neither special nor directory is specified, the free space
on all of the mounted file systems is printed.
Options
recognizes the following options:
Report only the number of kilobytes free.
Report the number of files free.
Report only an actual count of the blocks in the free list
(free inodes are not reported). When this option is specified, reports on raw devices.
Specify the file system type
Report the entire
statvfs(2) structure.
Report the total number of inodes, the number of free inodes, number of used inodes
and the percentage of inodes in use.
Report the allocation in kilobytes.
Report on local file systems only.
Report the file system name. If invoked with no other options this
option prints a list of mounted file system types.
Print the number of free extents of each size.
Free extents are always an integral power of two in length, ranging from a minimum of one block to the maximum extent
size supported by the file system.
Report the total allocated block figures and the number of free blocks.
Report the percentage of blocks used, the number of blocks used and the number
of blocks free. This option cannot be used with other options.
Echo the completed command line, but performs no other action.
The command line is generated by incorporating the user-specified options and other information derived from This
option allows the user to verify the command line.
There are a number of options that specify output formats, some combinations of which are incompatible. If an incompatible combination is
specified, one of the options will override the other(s).
Operands
recognizes the following operands:
directory Name of the mount point from which the VxFS file system is accessed.
special Device name, which contains a mounted or unmounted VxFS file system.
EXAMPLES
Report the number of free disk blocks for all mounted file systems:
Report the number of free extents of each size, for all mounted VxFS file systems:
Report the number of free files for all mounted VxFS file systems:
Report the total allocated block figures and the number of free blocks, for all mounted file systems:
Report the total allocated block figures and the number of free blocks, for the file system mounted as
FILES
File-system devices.
File-system devices.
Static information about the file systems.
mounted-file-system table.
SEE ALSO
du(1), df(1M), fsck_vxfs(1M), statvfs(2), fs_vxfs(4), mnttab(4).
STANDARDS CONFORMANCE
: SVID2, XPG2, XPG3
df_vxfs(1M)