Unix/Linux and Windows Operating System Commands

Quiz covering Unix/Linux shell commands, process management, and Windows system administration features

17 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

On Windows, You can check the ip address of your computer by using the following command

  1. Ipconfig
  2. ifconfig
  3. Arp
  4. ping
Question 2 Multiple Choice (Single Answer)

The command msinfo32 is used to open

  1. Registry
  2. System Properties
  3. Control panel
  4. System information
Question 3 Multiple Choice (Single Answer)

Your system frequently restarts unexpectedly, you may fix this issue by doing the following.

  1. Nothing can be done
  2. Open system properties > Advanced>Setting under startup and Recovery>UnCheck restart on system failure
  3. open Msconfig and disable all startup items
  4. Do a Disk Derfrgmentation
Question 4 True/False

Windows 98 is a NT based OS

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

Which Operating system has Jump list features?

  1. Windows ME
  2. Windows 7
  3. Windows XP
  4. Windows 95
Question 6 Multiple Choice (Single Answer)

How do you identify the Directories and the executables alone

  1. ls -d
  2. ls -Fx
  3. ls -ad
  4. ls -ltr
Question 7 True/False

in a string search, _ is used to replace a single charecter and * is used to replace multiple words

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

what is the significance of $@ in unix shell

  1. The total count of positional parameters.
  2. Name of the executed command
  3. same as $* except when enclosed in double quotes
  4. none of these
Question 9 Multiple Choice (Single Answer)

Predict the output of the following program code main() { fork(); fork(); fork(); printf("Am in TCS!"); }

  1. It will get printed once
  2. it will get printed 8times
  3. it will not work
  4. It wil print three times
Question 10 Multiple Choice (Single Answer)

command to kill the last job running at the background.

  1. kill 1
  2. KILL $$
  3. kill $?
  4. kill $!
Question 11 Multiple Choice (Single Answer)

What is the keyword "echoe" used for

  1. Used to display the chanrecters that follow this unix command (Similar to echo).
  2. When combined with "stty" as a switch (stty -echoe) would actually remove the backspaced charecter from display.
  3. There is no such command / option in UNIX
  4. a & b are correct
Question 12 Multiple Choice (Single Answer)

command to delete all files in the current directory and its sub directories?

  1. rm -r *
  2. rmdir *
  3. Both the above
  4. None of there
Question 13 Multiple Choice (Single Answer)

Number of prompts available in Unix system?

  1. 1
  2. 2
  3. 5
  4. unlimited
Question 14 Multiple Choice (Single Answer)

What will the following command do? $ echo *

  1. This will not work
  2. Similar to ls command and displays all files in current dir
  3. will display the string " * "
  4. will display all the files in the previously ccessed directory
Question 15 True/False

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

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

UNIX command to wait for a specified number of seconds before exit.

  1. sleep n
  2. sleep(n-1)
  3. snooze(n)
  4. snooze n
Question 17 True/False

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

  1. True
  2. False