Dirstats
This is a bash-script (well, ls and expr are used as well) that takes an absolute path name as argument and prints out the number of files and directories below that path, the size of the directory tree and the number of files with the suid bit set. Yet another university assignment, but figuring this out was actually quite fun.
Output may look like this:
/foo/bar:
Number of files below: 10600
Number of directories below: 1290
Size of directory tree (byte): 930795520
Number of files with suid bit set: 0
CategoryCode
CategoryShell
There are no comments on this page. [Add comment]