Linux Terminal Commands Quiz

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 (D)</p> Signup and view all the answers

Which command is used to copy files or directories?

<p>cp (C)</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 (A)</p> Signup and view all the answers

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

<p>df (D)</p> Signup and view all the answers

Which command compresses files using the gzip compression algorithm?

<p>gzip (C)</p> Signup and view all the answers

What does the 'chfn' command do?

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

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

<p>useradd (D)</p> Signup and view all the answers

What does the 'hostname' command do?

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

What does the 'whatis' command do?

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

Flashcards are hidden until you start studying

More Like This

Comandos de Terminal en Linux
24 questions

Comandos de Terminal en Linux

AppreciativeBambooFlute avatar
AppreciativeBambooFlute
Linux Shell Commands Quiz
28 questions

Linux Shell Commands Quiz

JollySagacity1916 avatar
JollySagacity1916
Use Quizgecko on...
Browser
Browser