Unix and MS-DOS Command Line Operations

Test your knowledge of Unix/Linux and MS-DOS command line interfaces, including file management, disk operations, shell scripting, and system commands.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which command is used to see the disk volume label?

  1. Ver
  2. Vol
  3. Version
  4. Volume
Question 2 Multiple Choice (Single Answer)

Which command is used to see the version?

  1. Ver
  2. Version
  3. Verson
  4. None of the above
Question 3 Multiple Choice (Single Answer)

What is the name of the batch file that is automatically run when MSDOS is booted?

  1. Run.bat
  2. Config.sys
  3. Config.bat
  4. Autoexec.bat
Question 4 Multiple Choice (Single Answer)

What is the switch that is used to make sure that the copy command copied files correctly

  1. /a
  2. /c
  3. /s
  4. /v
Question 5 Multiple Choice (Single Answer)

What will be the output of the command prompt $l$p$g?

  1. <c:&gt;
  2. C:&gt;
  3. C:&gt;>
  4. C:<&gt;
Question 6 Multiple Choice (Single Answer)

Which among the following are the best tools for fixing errors on disks?

  1. Fdisk
  2. Scandisk
  3. Chkdsk
  4. Fixdsk
Question 7 Multiple Choice (Single Answer)

Which command can be used to create the disk’s tracks and sectors?

  1. Fdisk
  2. Format
  3. Chkdsk
  4. Attrib
Question 8 Multiple Choice (Single Answer)

Which command in DOS can be used to recover accidentally deleted files?

  1. UNDELETE
  2. DELETE/CANCEL
  3. RESTORE
  4. RECOVER
Question 9 Multiple Choice (Single Answer)

Which command is used to copy all files from drive a with extension .txt to the currently logged drive and directory?

  1. Copy a. *.txt
  2. Copy *.txt a:
  3. Copy *.txt c:
  4. Copy *.txt all.txt
Question 10 Multiple Choice (Single Answer)

Which command is used to create root directory and FAT on disk?

  1. Chkdsk
  2. Command.com
  3. Fat
  4. Format
Question 11 Multiple Choice (Single Answer)

Which command is used to delete all the files extension .txt on the current drive and directory?

  1. Del .txt
  2. Erase .txt
  3. Del *.txt
  4. Del ./p
Question 12 Multiple Choice (Single Answer)

Which command is used to delete all the files in the root directory of drive a

  1. A:\del
  2. Del . a:
  3. Del a:\
  4. Erase .
Question 13 Multiple Choice (Single Answer)

Which command is used to display a list of deleted files that DOS can undelete?

  1. Undelete .
  2. Undelete/all
  3. Undelete/list
  4. None of the above
Question 14 Multiple Choice (Single Answer)

Which command is used to undelete delete a bunch of files with extension doc that you have just deleted

  1. Undelete
  2. Undelete *.doc
  3. Undelete/all
  4. All of the above
Question 15 Multiple Choice (Single Answer)

Which file in MSDOS contain internal command that are loaded during booting process?

  1. Io.sys
  2. Msdos.sys
  3. Command.com
  4. Config.sys
Question 16 Multiple Choice (Single Answer)

Which is valid extension that user creates on operating system?

  1. Exe
  2. Com
  3. Sys
  4. Bat
Question 17 Multiple Choice (Single Answer)

How do you close a if block in unix shellscript?

  1. end if
  2. }
  3. fi
  4. #
Question 18 True/False

Linux is a kernel?

  1. True
  2. False
Question 19 Multiple Choice (Single Answer)

which of the following command shows ALL the content of a directory in unix/GNUlinux

  1. ls -l
  2. ls
  3. ls -a
  4. dir
Question 20 Multiple Choice (Single Answer)

how do we make a file hidden in unix?

  1. prefix the name of file with a '.' <dot>
  2. prefix the name of file with a '~' <tilt>
  3. by changing its permissions
  4. Any of the Above