Unix/Linux and Windows Operating System Commands
Quiz covering Unix/Linux shell commands, process management, and Windows system administration features
Questions
On Windows, You can check the ip address of your computer by using the following command
- Ipconfig
- ifconfig
- Arp
- ping
The command msinfo32 is used to open
- Registry
- System Properties
- Control panel
- System information
Your system frequently restarts unexpectedly, you may fix this issue by doing the following.
- Nothing can be done
- Open system properties > Advanced>Setting under startup and Recovery>UnCheck restart on system failure
- open Msconfig and disable all startup items
- Do a Disk Derfrgmentation
Windows 98 is a NT based OS
- True
- False
Which Operating system has Jump list features?
- Windows ME
- Windows 7
- Windows XP
- Windows 95
How do you identify the Directories and the executables alone
- ls -d
- ls -Fx
- ls -ad
- ls -ltr
in a string search, _ is used to replace a single charecter and * is used to replace multiple words
- True
- False
what is the significance of $@ in unix shell
- The total count of positional parameters.
- Name of the executed command
- same as $* except when enclosed in double quotes
- none of these
Predict the output of the following program code main() { fork(); fork(); fork(); printf("Am in TCS!"); }
- It will get printed once
- it will get printed 8times
- it will not work
- It wil print three times
command to kill the last job running at the background.
- kill 1
- KILL $$
- kill $?
- kill $!
What is the keyword "echoe" used for
- Used to display the chanrecters that follow this unix command (Similar to echo).
- When combined with "stty" as a switch (stty -echoe) would actually remove the backspaced charecter from display.
- There is no such command / option in UNIX
- a & b are correct
command to delete all files in the current directory and its sub directories?
- rm -r *
- rmdir *
- Both the above
- None of there
Number of prompts available in Unix system?
- 1
- 2
- 5
- unlimited
What will the following command do? $ echo *
- This will not work
- Similar to ls command and displays all files in current dir
- will display the string " * "
- will display all the files in the previously ccessed directory
nohup command if added in front of any command will continue running the command or process even if you shut down your terminal or close your session to machine
- True
- False
UNIX command to wait for a specified number of seconds before exit.
- sleep n
- sleep(n-1)
- snooze(n)
- snooze n
If kill command does not allow killing of a process then we could use kill -9 to forcefully kill the process by mentioning the PID
- True
- False