Linux Cheat sheet
Basic Operation # hostame - Displays the hostname and/or FQDN of the system # uname -a - Displays the hostname and detailed kernel version # cat /etc/redhat-release - Displays the version of Linux installed Example: # cat /proc/cpuinfo - Displays information about the CPU(s) # df -h - Displays the partitions, their sizes details, and mount points # free - Displays detail about the system memory and usage # lsof - Displays all open files # lsof -nPi: 22 - Displays any open files which use port 22 # locate httpd.conf - Displays the full path to any file named httpd.conf # updatedb - Rebuilds index of files for search using the locate utility Copy, Move, Delete # cp file1.txt file2.txt - Copies file1.txt to file2.txt # mv old.txt new.txt - Renames a file called old.txt to new.txt # rm file1.txt - Deletes file1.txt # mkdir httpds - Creates a new directory called httpds # cp -R httpd httpds - Recursively copies all files from directory httpd t...