chrisstump
2/23/18 at 11:20 am
Plain Text
linux
Linux Command Cheatsheet
The following list documents some of the most commonly used Linux commands.
Title: List Files / Folders Command: ls Description: Lists all the files and folders in the current or specified directory. Example: ls /desktop Title: Change Directory Command: cd Description: Navigate to a new directory. Example: cd /var/www/vhosts/example.com/httpdocs Title: Move File Command: mv Description: Move a file to a different location. Example: mv /my/first/path/document.txt /my/second/path/document.txt Title: Show Working Directory Command: pwd Description: Print the current working directory. Example: pwd Example Output: /var/www/vhosts/example.com/httpdocs Title: Make Directory Command: mkdir Description: Create a new directory. Example: mkdir newdirectory Title: Remove Directory Command: rmdir Description: Remove a given directory including all files. Example: rmdir mydirectory Title: Remove File Command: rm Description: Remove a given file. Example: rm /path/to/document/document.txt Title: Clear Command: clear Description: Clears the contents of an open terminal session. Example: clear Title: Change Owner Command: chown Description: Change the owner of a given file or directory. Example: chown chris /path/to/directory Note: You can use the ls -l command to show the given owner of a file or directory.
Copy Snippet to Clipboard
Don't Have an Account?
Stop digging through old code examples. Get organized. Get Code Snipper.
Learn More
Start Free 14 Day Trial