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

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

    <p>Create empty files</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;</p> Signup and view all the answers

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

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

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

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

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

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

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

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

    Which command is used to create a new group?

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

    Use Quizgecko on...
    Browser
    Browser