Top 60 Linux Commands Overview
10 Questions
9 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What command is used to securely delete a file in Linux?

  • Shred (correct)
  • Touch
  • Pwd
  • Mkdir
  • Which command is used to create a link to a file in Linux?

  • Cat
  • Nano
  • Ln (correct)
  • Echo
  • What command displays the content of a file in Linux?

  • Cat (correct)
  • Mkdir
  • Rm
  • Su
  • Which command is used to access the manual for other commands in Linux?

    <p>Man</p> Signup and view all the answers

    Which command is used to display the end of a file?

    <p>Tail</p> Signup and view all the answers

    What command is used to change file ownership?

    <p>Chown</p> Signup and view all the answers

    Which command is used to locate files based on various criteria?

    <p>Find</p> Signup and view all the answers

    What command is used to manage the firewall?

    <p>Iptables</p> Signup and view all the answers

    Which command is used to check the connectivity of a website?

    <p>Ping</p> Signup and view all the answers

    What command shows the real-time system information, including running processes, memory usage, and CPU usage?

    <p>Top</p> Signup and view all the answers

    Study Notes

    • The text discusses the top 60 Linux commands, aimed to be covered in 10 minutes.
    • SSH command is essential for connecting to Linux machines, using the format "user@server".
    • LS command lists all files in the current directory, with options L for a nice list and A to show hidden files.
    • PWD command displays the print working directory, indicating the current location.
    • CD command changes the directory, followed by the desired location.
    • Touch command creates a new file with the given name.
    • Echo command writes text to the console or appends it to a file.
    • Nano is a text editor used to edit files, with the command "nano filename" followed by saving and quitting with Ctrl+X, Y, and Enter.
    • Cat command quickly displays the content of a file.
    • Shred command securely deletes a file.
    • MKDIR command creates a new directory.
    • CP command copies a file to a new location.
    • MV command moves a file to a new location.
    • RM command removes a file, RM -r for directories if not empty.
    • LN command creates a link to a file, using the S switch for a soft link and the file and link names.
    • Clear command clears the terminal screen.
    • Who am I command shows the current user.
    • Useradd command creates a new user, with options to set a password and other parameters.
    • Su command switches to another user.
    • Password command sets a user's password.
    • Finger command inspects another user's information, requiring installation and updating packages first.
    • Man command accesses the manual for other commands.
    • Wget command downloads files from the internet.
    • Zip command compresses files into a zip archive.
    • Unzip command extracts files from a zip archive.
    • Less command displays a file one page at a time.
    • Head command displays the beginning of a file.
    • Tail command displays the end of a file.
    • Cmp command compares two files and shows their differences.
    • Sort command sorts files alphabetically.
    • Find command locates files based on various criteria.
    • Chmod command changes file permissions, with +x for executable.
    • Chown command changes file ownership, specifying the user and file.
    • IP address command displays the public IP address.
    • Grep command searches for a pattern in files.
    • Ack command searches for a pattern recursively in files.
    • Resolve command displays DNS information.
    • Ping command checks the connectivity of a website.
    • Trace route command shows the path and latency to a website.
    • Netstat command displays network statistics.
    • Iptables command manages the firewall.- UFW (Uncomplicated Firewall) sits on top of IP tables for easier management of firewall rules.
    • To allow traffic on a specific port (e.g. 80), use the command "ufw allow ".
    • UFW is currently disabled and can be enabled with "ufw enable".
    • To check system information, use commands like "uname -a" or "-A" for more detailed output.
    • Neo fetch is a tool that provides a prettier version of terminal commands and can be installed with "apt-get install neofetch".
    • The "df -h" command shows the disk usage and available space on the system.
    • The "ps" command with "aux" switch displays detailed information about running processes.
    • The "top" command shows real-time system information, including running processes, memory usage, and CPU usage.
    • The "kill" command is used to terminate a running process by its ID, and "pkill" allows termination by name.
    • The "systemctl" command is used to manage system services, while "service" is an alternative for non-systemd systems.
    • Commands can be repeated or reviewed with the "history" command.
    • To reboot or shut down the system, use "reboot" or "shutdown" commands with optional "now" flag for immediate effect.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    This quiz covers the essential Linux commands, including SSH, LS, PWD, CD, Touch, Echo, Nano, Cat, Shred, and more. It provides a quick overview of each command's functionality and usage. Test your knowledge of fundamental Linux commands with this quiz!

    More Like This

    Command Line Navigation Quiz
    3 questions
    Linux Terminal Commands Overview
    10 questions
    Linux Terminal Commands Quiz
    12 questions
    Use Quizgecko on...
    Browser
    Browser