Skip to content

Instantly share code, notes, and snippets.

@Chell0
Last active July 17, 2018 20:39
Show Gist options
  • Save Chell0/672e2d118ed8e26ee8ec4f29d3ad0be9 to your computer and use it in GitHub Desktop.
Save Chell0/672e2d118ed8e26ee8ec4f29d3ad0be9 to your computer and use it in GitHub Desktop.
Linux Commands

Basic Terminal Commands

  1. Ctrl+Alt+T - to launch the terminal in Ubuntu.
  2. pwd - to know which directory you are in.
  3. / - this forward slash represents the root.
  4. ls - to list all the files in the current directory.
  5. ls -a - list all files plus hidden ones in that specific directory.
  6. cd - change directory. Something like "cd /Documents/Books" which takes you to the Books directory.
  7. mkdir - creates a new folder or a directory in any location you want. Something like 'mkdir Books' and a new directory called books.
  8. rmdir - deletes an empty directory.
  9. rm - it can delete files and in a direction.
  10. rm-r - deletes a directory.
  11. touch - create an empty program file.
  12. cp - used to copy files through the command line.
  13. mv - move files or a certain directory to a new location. We can also rename a program file. Something like 'mv update' which renames the file to update.
  14. locate - used to search for a specific file in your system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment