Swiss File Knife
a command line
free external tools,
- download the free Swiss File Knife Base from Sourceforge. - open the Windows CMD command line, Mac OS X Terminal or Linux shell. - OS X : type mv sfk-mac-i686.exe sfk and chmod +x sfk then ./sfk - Linux: type mv sfk-linux.exe sfk and chmod +x sfk then ./sfk OS X and Linux syntax may differ, check the help within the tool.
sfk space [dirname|-help] sfk filesys [dirname] show disk space and/or file system informations. a folder name can be specified which relates to a specific volume or hard disk. options -byte[s] all size infos in bytes -tab[s] pure values, tab separated -bin[ary] calculate with binary megabytes of 1048576 bytes each. aliases sfk diskspace same as space sfk fsinfo same as filesys sfk freespace tell only free space chaining support cannot use chain input data. web reference http://stahlworks.com/sfk-space examples sfk filesys tell details about the file system of the current directory (.) sfk filesys D: tell about the file system used for drive D: sfk space tell total and free MB of the current volume. example outputs sfk space . totalmb=307383 freemb=6057 just tells the total and free mb available in the volume of the current dir. sfk fsinfo . filesys="NTFS" volume="15234973 EXTDATA" totalmb=307383 freemb=6057 tells also details of the current filesystem, volume ID and label. sfk space -bytes -tab +filter -tabform "$col2" 6057123840 get only the free space value in bytes. under linux, use -tabform "#col2", or use the unified syntax -utabform "#col2" on all platforms.
sfk is a free open-source tool, running instantly without installation efforts. no DLL's,
no registry changes - just get sfk.exe from the zip package and use it (binaries for
windows, linux and mac are included).
read more about all sfk functions here.