Linux Command Line Basics
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

What command is used to print the current working directory?

  • pwd
  • echo
  • ls
  • cd (correct)

Which command creates a new directory?

  • rm (correct)
  • mkdir
  • mv
  • rmdir

What is the purpose of the 'id' command?

  • Counts lines, words, and characters in a file
  • Prints text to the terminal
  • Displays user and group IDs
  • Moves or renames files/directories (correct)

In Linux, which command allows users to run programs with the security privileges of another user?

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

What is the main purpose of 'vi' in Linux?

<p>Create empty files (A)</p> Signup and view all the answers

Which command is used to count lines, words, and characters in a file or input stream?

<p>&gt; (B)</p> Signup and view all the answers

Which command is used to display the disk space used by files and directories?

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

Which command is used to create shortcuts for commands or command sequences?

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

Which command is used to search the manual page names and descriptions for a specified keyword?

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

Which command is used to change the user's full name information?

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

Which command is used to print the current user's username?

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

Which command is used to create a new group?

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

More Like This

Use Quizgecko on...
Browser
Browser