Linux Terminal Commands Quiz
12 Questions
0 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

Which command is used to create a new directory?

  • rmdir
  • mkdir (correct)
  • pwd
  • ls
  • What does the && operator do in the terminal?

  • Appends output to a file
  • Executes the next command only if the previous command succeeds (correct)
  • Redirects command output to a file, overwriting the file's contents
  • Separates multiple commands on a single line
  • Which command is used to display the current working directory?

  • cd
  • ls
  • pwd (correct)
  • man
  • What is the purpose of the sudo command?

    <p>Allows users to run programs with the security privileges of another user, typically the superuser</p> Signup and view all the answers

    Which command is used to copy files or directories?

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

    What is the purpose of the &gt; operator in the terminal?

    <p>Redirects command output to a file, overwriting the file's contents</p> Signup and view all the answers

    What command can be used to display the disk space used by files and directories?

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

    Which command compresses files using the gzip compression algorithm?

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

    What does the 'chfn' command do?

    <p>Changes the user's full name information</p> Signup and view all the answers

    Which command can be used to create a new user account?

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

    What does the 'hostname' command do?

    <p>Prints or sets the system's hostname</p> Signup and view all the answers

    What does the 'whatis' command do?

    <p>Displays one-line manual page descriptions</p> Signup and view all the answers

    More Like This

    Command Line Navigation Quiz
    3 questions
    Linux Terminal Commands Overview
    10 questions
    Comandos de Terminal en Linux
    24 questions

    Comandos de Terminal en Linux

    AppreciativeBambooFlute avatar
    AppreciativeBambooFlute
    Use Quizgecko on...
    Browser
    Browser