Operating System Commands Quiz
Test your knowledge of command-line commands for both Unix/Linux and Windows operating systems
Questions
_____ Compares two files and displays the differences between them
- compare
- comfile
- fc
- diff files
Returns the media access control (MAC) address for your network card
- MAC /Info
- MAC /more
- getinfo MAC
- getmac
____ is suite of various networking and service commands
- network
- net
- netsh
- netstat
____ Manages the power settings such as hibernation. Has numerous switches
- powercfg
- powerutil
- system /power
- config /power
______ Displays, sets, or removes environment variables
- setvar
- setenv
- set
- env
_____ Displays detailed configuration information about a computer and its operating system
- system --help
- systeminfo
- sysinfo
- windows /system
____ Graphically displays the directory structure of a folder or drive
- root
- fpath
- fview
- tree
____ Displays or modifies file name extension associations. Used alone, displays a list of all the current file name associations
- filetype
- assoc
- ext
- display /ext
How to display Hidden files
- ls -r
- ls -R
- ls -a
- ls -l
Use of touch command
- Create a directory
- Create an empty file
- Modify the timestamp of a file
- Change the owner of a file
command to change the file permissions
- chown
- chmod
- chper
- None of the above
Default link created by 'ln' command is ?
- Soft link
- Hard link
- Link
- None of the above
Command to remove directory which is having few files inside.
- rmdir
- rm
- rm -r
- None
Command to rename a file in unix
- rename
- rm
- mv
- cp
wc command can be used to count the number of lines in a file
- True
- False
command to find a string inside a file.
- find
- grep
- search
- None
How to display Hidden files
- ls -r
- ls -R
- ls -a
- ls -l
Use of touch command
- Create a directory
- Create an empty file
- Modify the timestamp of a file
- Change the owner of a file
command to change the file permissions
- chown
- chmod
- chper
- None of the above
Default link created by 'ln' command is ?
- Soft link
- Hard link
- Link
- None of the above