Linux Commands



Linux Commands – Files and Directory

cd /home : enter to directory ‘/ home’
cd .. : go back one level
cd ../.. : go back two levels
cd : go to home directory
cd ~user1 : go to home directory
cd – : go to previous directory
pwd : show the path of work directory
ls : view files of directory
ls -F : view files of directory
ls [...]

Linux Commands – Shutdown, Restart and Logout

shutdown -h now : shutdown system(1)
init 0 : shutdown system(2)
telinit 0 : shutdown system(3)
shutdown -h hours:minutes & : planned shutdown of the system
shutdown -c : cancel a planned shutdown of the system
shutdown -r now : reboot(1)
reboot : reboot(2)
logout : leaving session

Linux Commands – System information

arch : show architecture of machine(1)
uname -m : show architecture of machine(2)
uname -r : show used kernel version
dmidecode -q : show hardware system components – (SMBIOS / DMI)
hdparm -i /dev/hda : displays the characteristics of a hard-disk
hdparm -tT /dev/sda : perform test reading on a hard-disk
cat /proc/cpuinfo : show information CPU info
cat /proc/interrupts : show [...]