Shortcuts Commands About
LAUREN

SYSTEM INFORMATION
Linux System Informationuname -a
Kernel release informationuname-r
Version of redhat intalledcat /etc/redhat-release
System running timeuptime
System host namehostname
IP address of hosthostname -I
Calendercal
Online userw
Who is onlinewhoami
HARDWARE INFORMATiON
Display in kernel ring bufferdmesg
CPU informationcat /proc/cpuinfo
Memory informationcat /proc/meminfo
Free memoryfree -h
Display PCI deviceslspci -tv
Display USB deviceslsusb -tv
Display DMI/SMBiosdmidecode
Disk sda Infohdparm -i /dev/sda
Speed rest on disk sdahdparm -tT /dev/sda
Unreadable blocks on disk sdabadblocks -s /dev/sda
PERFORMANCE MONITORING
Top processestop
Interatice process viewhtop
processor related statisticsmpstat 1
Virtual machine statisticsvmstat 1
I/O statisticsiostat 1
last 100 syslog messagestail 100 /var/log/messages
Display packages on interfacetcpdump -i etho
Monitor traffic on port 80tcpdump -i etho 'port80'
List open fileslsof
Open previousCtrl+Shift+Tab

FILE AND DIRECTORY COMMANDS
list all filesls -al
Present working directorypwd
Create directorymkdir directory
Remove filerm file
Remove directoryrm -r directory
Force removal of filerm -f file
Force removal of directoryrm -rf directory
Copy file1 to file2cp file1 file2
Create an empty filetouch file
View contects of filecat file
Browse through a text fileless file
PROCESS MANAGEMENT
Current running processps
Display process informatiom for processnameps -ef | grep processname
Interative process viewhtop
Kill process with process ID of pudAlt+Enter
Kill processnamekillall processname
Start prgram in the backgroundprogram &
Display background jobsfg
Recent background jobps -ef | grep processname
brings job to foregroundfg n
INSTALLING PACKAGES
Search for packageyum search keyword
Install packageyum install package
Install package from a local filerpm -i package.rpm
Uninstall packageyum remove package
Install from source codetar zxvf sourcecode.tar.gz
. cd sourcecode
. ./configure
.make
.make install