Test your knowledge of basic command line operations with this quiz. Identify co...

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What command displays the full path of the current directory?

  • uname
  • cd
  • pwd (correct)
  • whoami

Which command is used to list the contents of files and directories?

  • ls (correct)
  • clear
  • ls -a
  • history

What does the 'history -c' command do?

  • Clears the window
  • Clears history for all commands (correct)
  • Displays history for all commands
  • Displays how long it takes to execute a command

Which command is used to create a file?

<p>touch (A)</p>
Signup and view all the answers

What does the 'cat' command do with the '-n' option?

<p>Adds line numbers to the content of the file (B)</p>
Signup and view all the answers

Which command is used to display the user manual of any command that can be run on the terminal?

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

Which command is used to create a file?

<p>touch (B)</p>
Signup and view all the answers

Which command is used to list the contents of files and directories, including hidden files?

<p>ls -a (B)</p>
Signup and view all the answers

Which command is used to display the content of a file in the terminal with line numbers added?

<p>cat &quot;file name&quot; -n (C)</p>
Signup and view all the answers

Which command is used to clear the window?

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

Flashcards are hidden until you start studying

More Like This

Command Line Navigation Quiz
3 questions
Linux Command Line Basics
12 questions
Commandes de base Ubuntu
9 questions

Commandes de base Ubuntu

InvaluableBliss6369 avatar
InvaluableBliss6369
Use Quizgecko on...
Browser
Browser