Skip to main content

Section 14.13 List of Linux Commands

The Linux operating system provides a wealth of commands that are extremely useful. Below you will find some of the most commonly used commands that will be useful in this course, along with descriptions and information on how and when to use them.
ls:
cd:
pwd:
  • prints working directory
  • alternatively, looks at your command prompt to determine your current location
mkdir:
rm:
  • removes (deletes) a file
    • does not check whether you mean it
    • demonstrate in a shell and file browser with a test file to delete
rmdir:
  • removes a directory, provided it contains no files or directories
less:
  • displays contents of a file, one screen-full at a time
  • space bar advances one page
  • Ctrl+b goes back one page
  • q quits less and returns you to the command prompt
mv:
  • moves a file to a new location
  • can also use mv to simply rename a file
cp:
  • makes an independent copy of a file
man: