Unix/Linux and Windows Command Line Operations

Test your knowledge of Unix/Linux commands, Windows command-line operations, file systems, shell scripting, and system administration tasks.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

$ find . -type f -mtime 1

  1. List all ordinary files in current directory that have been modified within the last 1 minute
  2. List all ordinary files in current directory that have been modified within the last 1 hour
  3. List all ordinary files in current directory that have been modified within the last 24 hours
  4. List all ordinary files in current directory that have been modified within the last 48 hours
Question 2 True/False

Unlike Windows, in UNIX we cannot create a directory named 'a box' i.e. space is not allowed in UNIX for file and directory naming.

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

which of the following shells support float and array data types?

  1. Korn
  2. Bash
  3. Bourne
  4. None of these
Question 4 Multiple Choice (Multiple Answers)

which of the following are special systen parameters that contain information abt current processes? (select more than one answer)

  1. ?
  2. !
  3. $
  4. #
Question 5 Multiple Choice (Single Answer)

What is the output of the last echo command executed on a bash shell? $ bash $ export a=aaagggccc $ echo ${a/g/b}

  1. aaagggccc/g/b
  2. aaabbbccc
  3. aaabggccc
  4. a/g/b
Question 6 Multiple Choice (Single Answer)

Which unix text processing tools will help me to replace all the instances of "hi india" to "HiIndia"?

  1. awk
  2. sed
  3. perl
  4. emac
Question 7 Multiple Choice (Single Answer)

I opened a text file in vi editor and typed the following command while in escape mode. :3 s/abc/xyz/

  1. It looks for the all the abc strings in line 3 and replaces them to xyz.
  2. It looks for the first abc string in the first 3 lines and replaces to xyz.
  3. It looks for the first abc string in line 3 and replaces to xyz.
  4. It looks for the first 3 abc string in the file and replaces them to xyz.
Question 8 Multiple Choice (Single Answer)

What key combination is typically used to interrupt running programs?

  1. CTRL-E
  2. CTRL-C
  3. CTRL-D
  4. CTRL-I
Question 9 Multiple Choice (Single Answer)

What symbol is used to "pipe" two commands together?

  1. :
  2. ||
  3. !
  4. |
Question 10 Multiple Choice (Single Answer)

What command would you use to find all files under the current directory owned by the user foo?

  1. find ./ -type file -user foo
  2. find ./ -type f -owner foo
  3. find ./ -type f -o foo
  4. find ./ -type f -user foo
Question 11 True/False

If no one has physical access to the computer, the root password need not be changed.

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

What would be the correct syntax to mount the share 'data' from Windows machine 'jupiter'?

  1. mntsmb -s //jupiter/data /mnt/Data
  2. mount -t smbfs /mnt/Data //jupiter/data
  3. mount -t smbfs //jupiter/data /mnt/Data
  4. smbfs -mount //jupiter/data /mnt/Data
Question 13 True/False

NFS cannot be used to increase the access to the files on the mounted filesystem.

  1. True
  2. False
Question 14 True/False

A directory is stored on the hard disk like any other file.

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

What is the command to open cmd with other user'd or admin's ID?

  1. RunAs
  2. Open
  3. Run
  4. None
Question 16 Multiple Choice (Multiple Answers)

Select Correct Command Format

  1. c:>net use
  2. c:>Runas /user:domain\username cmd
  3. c:>net use x: \servername\Shared folder
  4. c:>Cd\
Question 17 Multiple Choice (Single Answer)

Command to release and renew IP Address?

  1. Ipconfig /release, Ipconfig /Renew
  2. ipconfig /rel ,Ipconfig /New
  3. ipconfig /release ,Ipconfig /New
  4. None
Question 18 Multiple Choice (Single Answer)

Heart of UNIX Operating System

  1. Kernel
  2. Shell Interpreter
  3. Command line interpreter
  4. Others
Question 19 Multiple Choice (Single Answer)

Which command used to print current user id

  1. who
  2. whoami
  3. ami
  4. others
Question 20 Multiple Choice (Single Answer)

Which command to create a directory

  1. mkdir
  2. MKdir
  3. mdir
  4. other