Unix/Linux Command Line Basics

Test your knowledge of fundamental Unix/Linux command line operations, including file management, text processing, and common shortcuts.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

In which year the Wikipedia project started?

  1. 1995
  2. 1999
  3. 2001
  4. 2005
Question 2 Multiple Choice (Single Answer)

Which is the former name of the AMD Graphics Product Group?

  1. AMD Effects Group
  2. AMD Fusion Corp.
  3. ATI Technologies Inc.
  4. Nvidia Inc.
Question 3 Multiple Choice (Single Answer)

How do you get help about the command "cp"?

  1. help cp
  2. man cp
  3. cp?
  4. help
Question 4 Multiple Choice (Single Answer)

How do you list all the files that are in the current directory?

  1. list all
  2. ls -full
  3. ls -a
  4. ls a
Question 5 Multiple Choice (Single Answer)

How do you rename file "new" in file "old"?

  1. mv new old
  2. cp new old
  3. rn new old
  4. rename new old
Question 6 Multiple Choice (Single Answer)

How do you visualize the content of file "not_empty"?

  1. type not_empty
  2. cat not_empty
  3. more not_empty
  4. vi not_empty
Question 7 Multiple Choice (Single Answer)

How do you create a new directory called "sample"?

  1. newdir sample
  2. mkdir sample
  3. crdir sample
  4. makedir sample
Question 8 Multiple Choice (Single Answer)

What is the command to search all files in your current directory for the word "plasmodium"?

  1. grep plasmodium *
  2. find plasmodium -all
  3. lookup plasmodium *
  4. search plasmodium
Question 9 Multiple Choice (Single Answer)

How do you print the first 15 lines of all files ending by ".txt"?

  1. print 15 .txt
  2. cat *.txt -length=15
  3. head -15 *.txt
  4. type 15 .txt
Question 10 Multiple Choice (Single Answer)

how to make a copy of file "upper" in the directory two levels up?

  1. jump -2 upper
  2. cp upper ../..
  3. cp upper -2/
  4. copy upper -2/
Question 11 Multiple Choice (Single Answer)

Count the files you own in all your directories.

  1. ls -lR | grep myusername | wc -l
  2. ls -a | cnt *
  3. ls -n ~myusername
  4. ls -a
Question 12 Multiple Choice (Single Answer)

Change the current directory to /usr/local/bin

  1. mv /usr/local/bin
  2. cd /usr/local/bin
  3. setdir /usr/localbin
  4. cd bin
Question 13 Multiple Choice (Single Answer)

What is the command used to Erases the complete line

  1. CTRL+Y
  2. CTRL+U
  3. CTRL+C
  4. CTRL+F
Question 14 Multiple Choice (Single Answer)

what is the command used to Logs out of the current session

  1. CTRL+D
  2. CTRL+F
  3. CTRL+C
  4. CTRL+B
Question 15 Multiple Choice (Single Answer)

what is the command used to Erase one character. Similar to pressing backspace

  1. CTRL+S
  2. CTRL+Q
  3. CTRL+H
  4. CTRL+W