Basic Linux command cheat sheet

File operations

pwd get path of current directory. Example: $pwd

cd change directory. Example: $cd /home/me/Downloads

cp copy a file. Example: $cp file1.txt file2.txt

mkdir make a directory. Example: $mkdir newfolder

mv move file or rename file. Example: $mv oldfile.txt newfile.txt Example 2: $mv /home/me/file.txt $/home/you/

System operations

$shutdown now

$reboot now

$halt

 

(Visited 345 times, 1 visits today)