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.
Questions
Which command is used to see the disk volume label?
- Ver
- Vol
- Version
- Volume
Which command is used to see the version?
- Ver
- Version
- Verson
- None of the above
What is the name of the batch file that is automatically run when MSDOS is booted?
- Run.bat
- Config.sys
- Config.bat
- Autoexec.bat
What is the switch that is used to make sure that the copy command copied files correctly
- /a
- /c
- /s
- /v
What will be the output of the command prompt $l$p$g?
- <c:>
- C:>
- C:>>
- C:<>
Which among the following are the best tools for fixing errors on disks?
- Fdisk
- Scandisk
- Chkdsk
- Fixdsk
Which command can be used to create the disk’s tracks and sectors?
- Fdisk
- Format
- Chkdsk
- Attrib
Which command in DOS can be used to recover accidentally deleted files?
- UNDELETE
- DELETE/CANCEL
- RESTORE
- RECOVER
Which command is used to copy all files from drive a with extension .txt to the currently logged drive and directory?
- Copy a. *.txt
- Copy *.txt a:
- Copy *.txt c:
- Copy *.txt all.txt
Which command is used to create root directory and FAT on disk?
- Chkdsk
- Command.com
- Fat
- Format
Which command is used to delete all the files extension .txt on the current drive and directory?
- Del .txt
- Erase .txt
- Del *.txt
- Del ./p
Which command is used to delete all the files in the root directory of drive a
- A:\del
- Del . a:
- Del a:\
- Erase .
Which command is used to display a list of deleted files that DOS can undelete?
- Undelete .
- Undelete/all
- Undelete/list
- None of the above
Which command is used to undelete delete a bunch of files with extension doc that you have just deleted
- Undelete
- Undelete *.doc
- Undelete/all
- All of the above
Which file in MSDOS contain internal command that are loaded during booting process?
- Io.sys
- Msdos.sys
- Command.com
- Config.sys
Which is valid extension that user creates on operating system?
- Exe
- Com
- Sys
- Bat
How do you close a if block in unix shellscript?
- end if
- }
- fi
- #
Linux is a kernel?
- True
- False
which of the following command shows ALL the content of a directory in unix/GNUlinux
- ls -l
- ls
- ls -a
- dir
how do we make a file hidden in unix?
- prefix the name of file with a '.' <dot>
- prefix the name of file with a '~' <tilt>
- by changing its permissions
- Any of the Above