Finding out folder sizes and searching for files/folders, conveniently enough to be of any practical use has always been a challenge, so here is a nifty little tool from us at dumblebots to do just that!
FileSystem Scanner(fss) is a command line application available on Windows(7/8/10, 64/32 bit) and Linux (Ubuntu). It should work on most platforms as it is written in portable c++. Due to its small footprint it is capable of running on systems with minimal specs.
By default, fss gives you a listing of your folders with their sizes and a summary of files. The output looks similar to the DIR or LL command. Folder size includes all the files as well as sub-folders recursively.
You can specify the folder on which to scan, either with its absolute or relative path.
To run on current folder-
To run on parent folder-
Prompt> fss ..
To run on any folder (including root)-
Prompt> fss c:\
fss provides additional options as follows-
- To expand and show all the sub-folders, specify -d
- To expand and show all files and symlinks, specify -f
- The two may be combined
There are certain files and folders which are normally not accessible by the user and are internally managed by the OS. fss also may not be able to navigate them. These are simply totaled and shown at the end in the summary. In case, there is a need to show where these are and the associated error, you can specify the -e option.
In case, you are looking for files and/or sub-folders with certain names, you can specify the same as an additional filter. For example-
To find all files, folders and sub-folders across the C drive whose name contains “temp”-
Prompt> fss -d -f c:\ temp
To find all folders and sub-folders inside /usr/home/ whose name contains “dev”
Prompt> fss -d /usr/home/ dev
Since fss is a command line tool, sometimes the output may be large and scrolling may become difficult. To combat this, the output can be redirected to a regular text file which can then be used with any editor to analyze the output. For example-
To get all files and sub-folders inside the C drive and put the output into a text file
Prompt> fss -d -f c:\ > myfile.txt
To get all files and inside /usr whose name contains “dev” and put the output into a text file
prompt> fss -f /usr/ dev > myfile.txt
The file will be created on the current path (path on which program was run) unless otherwise specified.
To see the syntax and options described above, use fss -h.
We hope that you find it useful. We are happy to hear your comments and suggestions at email@example.com