What are other terminal commands?

QuestionsQuestions8 SkillsProYour First Linux LabSep, 18 2025
0104

Here are some commonly used terminal commands that can help you navigate and manage your system effectively:

Basic Commands

  1. pwd: Prints the current working directory. It shows you where you are in the filesystem.

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

    ls
  3. cd: Changes the current directory. You can navigate to different directories using this command.

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

    mkdir new_directory
  5. rm: Removes files or directories. Use with caution, especially with the -r option for recursive deletion.

    rm file.txt
    rm -r directory_name

File Management

  1. cp: Copies files or directories.

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

    mv old_name.txt new_name.txt
  3. cat: Displays the contents of a file.

    cat file.txt
  4. nano or vim: Opens a text editor in the terminal for editing files.

    nano file.txt
    vim file.txt

System Monitoring

  1. top: Displays real-time system processes and resource usage.

    top
  2. htop: An enhanced version of top with a more user-friendly interface (requires installation).

    htop
  3. df: Shows disk space usage for all mounted filesystems.

    df -h
  4. free: Displays memory usage statistics.

    free -h

Networking

  1. ping: Tests connectivity to a host.

    ping example.com
  2. curl: Transfers data from or to a server, often used for testing APIs.

    curl http://example.com

Package Management (Debian-based systems)

  1. apt update: Updates the list of available packages.

    sudo apt update
  2. apt install: Installs a package.

    sudo apt install package_name

These commands form the foundation of terminal usage and can significantly enhance your productivity when working in a Linux environment. If you have any specific commands you want to learn more about, feel free to ask!

0 Comments

no data
Be the first to share your comment!