12 Essential Linux Commands for Beginners

  • Show a list of files with ls
    • The ls command displays the names of the files and directories in the current working directory. Various options are available that allow you to specify which details about the files should be displayed.
  • Change directory with cd
    • If you want to change the current working directory, use the cd command. For example cd correspondence would set the current working directory to correspondence , if exited.
  • Copy a file with cp
    • The cp command allows you to copy a file and give the copy a new name. It’s always a good idea to make a copy of a file before changing it in case you want to go back to the previous version.
  • Rename a file with mv
    • The mv command allows you to rename a file or move it to another directory or both. Entire files and directories can be easily moved even if they have a lot of content, as it only requires changing the way things are linked together.
  • Create a new directory with mkdir
    • The mkdir command creates a new directory. Directories can be nested and are useful for organizing large sets of files.
  • Delete a directory with rmdir
  • List the contents of a file with more
  • Locate the files you are looking for with find
  • More information about a command with man
  • Edit the content of a file with emacs
  • Change your password with passwd
    • After typing passwd at the command line, it will ask for your current and new password.
  • End your session with the exit
    • The exit command will take you out of the current shell or session.

TechnoAdmin