This command will search for text inside files in a directory while excluding some directories you do not want to search in. This is helpful when a search is going slow due to a directory that might contain thousands of files that you are not interested in searching through, such as an images or cache directory. grep -r […]
Archive | May, 2015
Linux CentOS CPanel find file in directory
Command to search a directory for a file in a Linux CentOS CPanel server: find -name “query”
CPanel Centos how to extract one directory from a TAR backup
This command will extract one directory from a CPanel backup TAR file tar -xvf mysite.tar.gz mysite/homedir/public_html/directory
CPanel CentOS Linux list directories and their total sizes
Use this command to list the folders in a linux directory along with their total sizes in human readable format: du -sh * | sort -h