Detailed Articles
The root page bonsai:@self could not be found in space www.bonsaiframework.com.
General Search
Ubuntu has mlocate but on other systems you will need to use find,
find / -name [filename] -print # find a file find / -size +51024 -print # where 51024 is in Kilobytes which is approximately 5MB
Search Inside of Files
Try to memorize this command,
find [folder] -type f | xargs -I {} grep -li "text" {} find [folder] -type f # search the specified folder for all files, returns full path of each file | xargs -I {} grep -li "[text]" {} # piped into xargs to grep for all files containing specified text ignoring case
Search & Replace Inside of Files
Try to memorize this command,
find [folder] -type f | xargs -I {} grep -li "text" {} | xargs perl -pi -e 's/[text_to_search_for]/[text_to_search_for]/g' find [folder] -type f # search the specified folder for all files, returns full path of each file | xargs -I {} grep -li "[text]" {} # piped into xargs with to grep for all files containing specified text ignoring case | xargs perl -pi -e 's/[text_to_search_for]/[text_to_replace_with]/g' # pipe list of files and using perl search and replace with specified text
Disk Management
List directories from largest to smallest at the top level only. On older system h will not work and you must use k.
du -sh * | sort
Long Running Processes
To write.
Other Useful Commands
digest -a md5 -v /path/to/file