What are common terminal commands?

0138

Here are some common terminal commands you can use in a Linux environment:

  1. pwd: Prints the current working directory.

    pwd
  2. ls: Lists files and directories in the current directory.

    ls
  3. cd: Changes the current directory.

    cd /path/to/directory
  4. mkdir: Creates a new directory.

    mkdir new_directory
  5. rm: Removes files or directories.

    rm file.txt
  6. cp: Copies files or directories.

    cp source.txt destination.txt
  7. mv: Moves or renames files or directories.

    mv oldname.txt newname.txt
  8. sudo: Executes a command with administrative privileges.

    sudo apt update
  9. clear: Clears the terminal screen.

    clear
  10. man: Displays the manual for a command.

    man ls

These commands are essential for navigating and managing files in the terminal. If you need more specific commands or examples, let me know!

0 Comments

no data
Be the first to share your comment!