Linux and Windows Operating Systems Quiz
Quiz covering Linux commands, shell scripting, and Windows registry configurations for operating system administration
Questions
what do SUID bits do
- They ensure that the associated program runs in root
- They ensure that the associated program runs automatically with the owner's permissions
- They make the file executable
- They add the program to the /bin directory
What does the read command do while it waits for input?
- Tests for command-line arguments
- Shifts arguments to the left
- Exits the program
- Creates a pause in the program
Which directory is the standard for storing shell scripts created by systems adminstrators?
- /etc
- /bin
- /dev
- /rc.d
What stream usually outputs error messages to the screen?
- stdout
- stderr
- stderr2
- stdouterr
Without using the shift command, what range of command-line argument variables can be referenced correctly?
- $0 to $9
- $0 to $10
- $1 to $9
- $1 to $10
If the argument list is omitted from a for command, where does it take its values from?
- The $* shell variable
- The $@ shell variable
- Redirected input
- Redirected output
Which of the following does the .seq file in the printer spooling directories do?
- Prevent two jobs being sent to the same printer simultaneously
- Keep track of all the print jobs in the spooling directory
- Assign job numbers to new print jobs
- Record the owners of print jobs
linux allows more than one root directory
- True
- False
It is possible to redirect the output of a process to more than one source
- True
- False
du command displays the file system usage for the entire file system
- True
- False
Normal users can kill init process
- True
- False
top command can be used to control processes
- True
- False
Shell functions are self-contained and cannot be accessed from outside the function
- True
- False
vi is the only text editor available in linux
- True
- False
The key [HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing] Stores information on
- Windows 2000 Server License
- Terminal Server Client Access License
- Microsoft Exchange Server Client License
- Microsoft IIS Server License
You can disable USB storage devices on your computer by locating the DWORD value "Start" under the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR] and changing its value data to:
- 1
- 2
- 3
- 4
The applications you find running at startup are also listed under
- [HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\RunOnce]
- [HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\Start]
- [HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\Run]
- [HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\Startup]
You can view and change Windows Pagefile settings under the following key: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management]
- True
- False
Dr. Watson is the automatic debugger in Windows and tries to automatically debug program errors if they occur. To turn of Dr. Watson, you should set the value of the string "Auto" under the key [HKEY_Local_Machine \Software\Microsoft\Windows NT\CurrentVersion\AeDebug] to "1"
- True
- False
How can you list the files present in a directory in alphabetical order ?
- ls -S
- By executing the script - for myfile in * do echo "$myfile" done
- ls -t
- a,b and c are correct
- a is incorrect and b is correct