LinuxForBeginners

Write basic Linux commands

Price range: €12.32 through €16.22

10 Basic Linux Commands for Beginners

  1. ls
    • Description: Lists the contents of a directory.
    • Example: ls shows files and folders in the current directory. Use ls -l for detailed information or ls -a to include hidden files.
  2. pwd
    • Description: Prints the current working directory.
    • Example: pwd displays the absolute path of the directory you are in.
  3. cd
    • Description: Changes the current directory.
    • Example: cd /home/user/Documents navigates to the Documents folder. Use cd .. to move up one directory.
  4. mkdir
    • Description: Creates a new directory.
    • Example: mkdir project creates a directory named “project” in the current location.
  5. rm
    • Description: Removes files or directories.
    • Example: rm file.txt deletes the file “file.txt.” Use rm -r folder to remove a directory and its contents recursively.
  6. cp
    • Description: Copies files or directories.
    • Example: cp file1.txt file2.txt copies “file1.txt” to “file2.txt.” Use cp -r source_folder target_folder to copy directories.
  7. mv
    • Description: Moves or renames files and directories.
    • Example: mv file.txt /home/user/Documents moves “file.txt” to the Documents folder. mv oldname.txt newname.txt renames the file.
  8. touch
    • Description: Creates an empty file or updates the timestamp of an existing file.
    • Example: touch newfile.txt creates an empty file named “newfile.txt.”
  9. cat
    • Description: Displays the contents of a file.
    • Example: cat file.txt outputs the content of “file.txt” to the terminal.
  10. man
    • Description: Displays the manual (help) pages for a command.
    • Example: man ls provides detailed information and options for the ls command.

Tips for Beginners:

  • Use --help after any command (e.g., ls --help) for a brief overview of options and usage.
  • Use Tab for auto-completion and Ctrl + C to cancel running commands.
Select options This product has multiple variants. The options may be chosen on the product page