LarskoOrg : Dirstats

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Most recent edit on 2006-02-02 20:20:57 by MetalHead [added example output]

Additions:
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




Oldest known version of this page was edited on 2006-01-27 01:12:02 by MetalHead [initial setup]
Page view:
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.

  Attachment Size Date Added
      dirstats.sh.gz   493 Bytes   1/27/2006 1:12 am
 




CategoryCode
CategoryShell

HomePage » CodePage » ShellCode » Dirstats
Valid XHTML 1.0 Transitional? :: Valid CSS? :: Powered by Wikka Wakka Wiki 1.1.6.2?
Page was generated in 0.0095 seconds