User Tools

Site Tools


linux:general:quickreference

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:general:quickreference [2017/08/28 21:19] rpleckolinux:general:quickreference [2021/01/14 13:07] (current) rplecko
Line 1: Line 1:
-=== File Commands ===+=== Cheat Sheet ===
  
-^  ^  | 
-|**ls**   |List the content of the current directory | 
  
--\\ +{{pdfjs 1160px> :downloads:linux_cheat_sheet.pdf?100|Linux Cheat Sheet}} 
-ls -R - List the subdirectories recursively\\ +
-ls -a - List all the content, including hidden files\\ +
-ls -l - List the content and its information\\ +
-pwd - Output the current directory that you are in\\ +
-cd folder1 – Change the working directory to folder1\\ +
-cd - Return to the $Home directory\\ +
-cd .. - Go up a directory\\ +
-cd - - Return to the previous directory\\ +
-cp source destination – Copy source to destination\\ +
-cp -r source destination – Copy a folder recursively from source to destination\\ +
-mv source destination - Move (or rename) a file from source to destination\\ +
-rm file1 - Remove file1\\ +
-rm -f file1 - Remove file1 without prompt\\ +
-rm -r folder - Remove a folder and its content recursively\\ +
-mkdir foldername – Create a new folder foldername\\ +
-rmdir foldername – Remove an empty folder\\ +
-file file1 – Show the file type of file1\\ +
-cat file1 file2 – Concatenate file1 to file 2\\ +
-cat file1 – Concatenate standard input to file1\\ +
-less file1 - View and paginate file1\\ +
-head file1 - Show first 10 lines of file1\\ +
-tail file1 - Show last 10 lines of file1\\ +
-chmod 777 file - Change file permission of file to 777\\ +
-chown user:group file - Change ownership of file to user and group group\\ +
-ln -s source destination – Create a symbolic link from source to destination +
- +
-=== System Commands === +
- +
-\\+
  
linux/general/quickreference.1503955184.txt.gz · Last modified: 2017/08/28 21:19 by rplecko