Here is a list of commands that I find useful on a Linux command line.
- du -sh $dir – find the size of a directory
- grep -H -r “$string” /path/to/files – search through all files in a directory for a specific string. pipe through grep again to search through the list.
To be continued.
One Comment
You might prefer fgrep (or add the -F) if you’re really looking for a fixed string rather than a regexp, and in any case, once you get beyond a certain point you want “ack” anyway – AKA ack-grep under Debian/Ubuntu.