Command Line Interface Commands

Test your knowledge of essential command-line commands from Unix/Linux and DOS operating systems, including file management, process control, and directory navigation.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Command to create directory?

  1. cp
  2. mv
  3. rmdir
  4. mkdir
Question 2 Multiple Choice (Single Answer)

Command to rename file?

  1. cls
  2. md
  3. ren
  4. fc
Question 3 Multiple Choice (Single Answer)

Command for find out what directory you are in?

  1. more
  2. pwd
  3. telnet
  4. ftp
Question 4 Multiple Choice (Single Answer)

Command for count characters, words, lines?

  1. mv
  2. wc
  3. more
  4. print
Question 5 Multiple Choice (Single Answer)

Command for changing directories.

  1. cd
  2. copy
  3. ctty
  4. dir
Question 6 Multiple Choice (Multiple Answers)

Commands for changing directories?

  1. cd
  2. cls
  3. chdir
  4. dir
Question 7 Multiple Choice (Single Answer)

Command which deletes one or more files?

  1. disable
  2. defrag
  3. del
  4. debug
Question 8 Multiple Choice (Single Answer)

Command which List the contents of one or more directory?

  1. find
  2. expand
  3. deltree
  4. dir
Question 9 Multiple Choice (Multiple Answers)

Commands which is used to view and edit files?

  1. format
  2. edit
  3. ename
  4. edlin
Question 10 Multiple Choice (Single Answer)

Command to exit from the command interpreter?

  1. erase
  2. exit
  3. format
  4. goto
Question 11 Multiple Choice (Single Answer)

Command to search for text within a file?

  1. find
  2. extract
  3. comp
  4. color
Question 12 Multiple Choice (Single Answer)

Command to erase and prepare a disk drive?

  1. fixmbr
  2. format
  3. fixboot
  4. loadfix
Question 13 Multiple Choice (Single Answer)

Command to display one page at a time?

  1. move
  2. mode
  3. more
  4. msd
Question 14 Multiple Choice (Single Answer)

Command to change one variable or string to another?

  1. set
  2. setlopcal
  3. setver
  4. share
Question 15 True/False

chmod options filename --- lets you change the read, write, and execute permissions on your files.

  1. True
  2. False
Question 16 True/False

ls --- lists your files

  1. True
  2. False
Question 17 True/False

ls -l --- lists your files in 'long format', which contains lots of useful information,

  1. True
  2. False
Question 18 True/False

ff --- find files anywhere on the system.

  1. True
  2. False
Question 19 True/False

kill PID --- kills (ends) the processes with the ID you gave.

  1. True
  2. False
Question 20 True/False

wc filename --- tells you how many lines, words, and characters there are in a file

  1. True
  2. False