Essential Linux Commands Quiz

Test your knowledge of fundamental Linux command-line utilities

30 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What does the command ifconfig do

  1. run a command as another user
  2. view and change information related to networking configuration
  3. quit
  4. passwd
Question 2 Multiple Choice (Single Answer)

What does the command q do

  1. quit
  2. run a command as another user
  3. start a new shell as another user
  4. change the file owner and group
Question 3 Multiple Choice (Single Answer)

What does the command vi do

  1. shut down linux
  2. change the password
  3. start the visual file editor
  4. copy files
Question 4 Multiple Choice (Single Answer)

What does the command pwd do

  1. display the current directory
  2. change the password
  3. start the visual file editor
  4. create a directory
Question 5 Multiple Choice (Single Answer)

What does the command rm do

  1. copy files
  2. paste files
  3. cut files
  4. delete files
Question 6 Multiple Choice (Single Answer)

What does the command grep do

  1. search for regular expressions in a text file
  2. change the current directory
  3. display contents of a directory
  4. delete files
Question 7 Multiple Choice (Single Answer)

What does the command ps do

  1. display contents of a directory
  2. delete files
  3. change the password
  4. display a list of currently running process
Question 8 Multiple Choice (Single Answer)

What does the command cp do

  1. copy files
  2. file copy
  3. paste files
  4. delete
Question 9 Multiple Choice (Single Answer)

What command do you use to quit

  1. su
  2. ps
  3. cp
  4. q
Question 10 Multiple Choice (Single Answer)

What command do you use for a wireless configuratoin

  1. ifconfig
  2. iwconfig
  3. q
  4. cd
Question 11 Multiple Choice (Single Answer)

What command do you use to view and change information related to networking configuration

  1. iwconfig
  2. ifconfig
  3. q
  4. dd
Question 12 Multiple Choice (Single Answer)

What command do you use to run a command as another user

  1. sudo
  2. su
  3. vi
  4. ps
Question 13 Multiple Choice (Single Answer)

What command do you use to start a new shell as another user

  1. vi
  2. su
  3. sudo
  4. q
Question 14 Multiple Choice (Single Answer)

What command do you use to change the password

  1. pwd
  2. apt-get
  3. mv
  4. passwd
Question 15 Multiple Choice (Single Answer)

What command do you use to start the visual file editor

  1. vi
  2. ps
  3. pwd
  4. passwd
Question 16 Multiple Choice (Single Answer)

What command do you use to shut down linux

  1. rm
  2. ps
  3. vi
  4. shutdown
Question 17 Multiple Choice (Single Answer)

What command do you use to display a list of currently running processes

  1. vi
  2. ps
  3. shutdown
  4. passwd
Question 18 Multiple Choice (Single Answer)

What command do you use to download files from a repository site

  1. shutdown
  2. apt-get
  3. ps
  4. vi
Question 19 Multiple Choice (Single Answer)

What command do you use to search for regular expressions in a text file

  1. grep
  2. dd
  3. chown
  4. cp
Question 20 Multiple Choice (Single Answer)

What command do you use to display the current directory

  1. pwd
  2. rm
  3. dd
  4. cd
Question 21 Multiple Choice (Single Answer)

What command do you use to delete files

  1. mv
  2. ls
  3. rm
  4. dd
Question 22 Multiple Choice (Single Answer)

What command do you use to rename a file and move the file from one directory to another

  1. mv
  2. dd
  3. ls
  4. cp
Question 23 Multiple Choice (Single Answer)

What command do you type in to create a directory

  1. mkdir
  2. rm
  3. grep
  4. ps
Question 24 Multiple Choice (Single Answer)

What command do you type in to display the contents of a directory

  1. cd
  2. mv
  3. dd
  4. ls
Question 25 Multiple Choice (Single Answer)

What command do you use to copy files

  1. cp
  2. rm
  3. ps
  4. cd
Question 26 Multiple Choice (Single Answer)

what command do you type in to change the file owner and group

  1. cp
  2. chown
  3. rm
  4. pwd
Question 27 Multiple Choice (Single Answer)

What command do you type in to change file permissions

  1. cd
  2. ls
  3. grep
  4. chmod
Question 28 Multiple Choice (Single Answer)

What command do you type in to change the current directory

  1. chmod
  2. cp
  3. cd
  4. dd