Operating Systems: Unix/Linux and Windows Commands

Test your knowledge of Unix/Linux commands, shell scripting, and Windows server administration including networking, disk management, and user sessions.

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What should you do when you want to track disk space use on a per-user basis but do not want to deny users access to a volume?

  1. Enable disk quotas
  2. Enable disk quotas and set the disk quota warning level
  3. Enable the disk quota warning level only
  4. Disable disk quotas
Question 2 Multiple Choice (Single Answer)

What happens when you end a disconnected session running on the remote server?

  1. all data is lost
  2. only the connection closes
  3. all applications running on the server remain active
  4. the session becomes available on the server.
Question 3 Multiple Choice (Single Answer)

sh is

  1. The "shell" programmable command-line interpreter, the primary user interface
  2. switch holder command
  3. Select holder
  4. None of the above
Question 4 Multiple Choice (Single Answer)

To run a script the command is

  1. su scriptname
  2. sh scriptname
  3. ls scriptname
  4. cd scriptname
Question 5 Multiple Choice (Single Answer)

cat command is used to

  1. display the list of files and directories present
  2. display the contents of a file
  3. display the list of files present
  4. display the list of directories present
Question 6 Multiple Choice (Single Answer)

cp command is used to

  1. copy files and folders from one location to other location
  2. creates a process
  3. creates a process id
  4. moves files and folders from one location to other location
Question 7 Multiple Choice (Single Answer)

rm command is used to

  1. Resource Management
  2. deletes files and folders
  3. deletes files
  4. deletes folders
Question 8 Multiple Choice (Single Answer)

chmod +777 stands for

  1. Grants execute permission to owner,group and others
  2. Grants write permission to owner,group and others
  3. Grants read permission to owner,group and others
  4. Grants All permissions to owner.group and others: 4 (read) + 2 (write) + 1 (execute) = 7
Question 9 Multiple Choice (Single Answer)

The command used to move to the second input command line argument is

  1. shift $2
  2. shift + 2
  3. shift 2
  4. shift * 2
Question 10 Multiple Choice (Single Answer)

cmp -s $AXA_BA_ENVPATH_SRC/$file $AXA_BA_ENVPATH_TRG/$file -s stands for

  1. Print nothing for differing files; return exit status only.
  2. Print the byte number (decimal) and the differing byte values (octal) for each difference.
  3. Compares the given 2 fils and writes in a ouput file
  4. Compares the given 2 fils and displays the result
Question 11 Multiple Choice (Single Answer)

cp -p $AXA_BA_ENVPATH/$1/$f $AXA_BA_ENVPATH/$2 -p stands for

  1. Copy and print the contents
  2. Preserve the characteristics of the source_file. Copy the contents, modification times, and permission modes of the source_file to the destination files.
  3. Copy and purges the files
  4. All of the above
Question 12 Multiple Choice (Single Answer)

if [ -d $AXA_BA_ENVPATH/$1 ] -d stands for

  1. none of the above
  2. Checks for the existence of a directoy
  3. Checks for the existence of a file
  4. Checks for the existence of a file/directoy
Question 13 Multiple Choice (Single Answer)

if [ -s $AXA_BA_ENVPATH/$1/* ] -s stands for

  1. None of the above
  2. Both 3 and 4
  3. checks for the existence of the directories
  4. checks for the existence of the files
Question 14 Multiple Choice (Single Answer)

The command used to get the permission rights of lsfadmin inorder to change the file parameters is

  1. sudo - su lsfadmin
  2. sudo su - lsfadmin -
  3. sudo su - lsfadmin
  4. sudo su -lsfadmin
Question 15 Multiple Choice (Multiple Answers)

ln -sf /sasdata/STG/ETL/ODD ODD The meaning of this line is

  1. ODD is a symbolic link created for the folder /sasdata/STG/ETL/ODD
  2. Both ODD and /sasdata/STG/ETL/ODD refers to same area
  3. Creates a line number for the file
  4. Creates a hard link for the folder
Question 16 True/False

cd /sasdata/PRD/ETL/jobs .This will make the current directory as the given one.

  1. True
  2. False
Question 17 Multiple Choice (Multiple Answers)

ls is used to list the files and directories present in a folder. ls -lrt stands for

  1. L Displays the file or directory referenced by a symbolic link.
  2. r Displays files in reverse order.
  3. -t Displays newest files first. (based on timestamp)
  4. None of the above
Question 18 Multiple Choice (Single Answer)

On which is the following OS hibernation feature is available?

  1. Windows 98
  2. Windows XP
  3. Suse Linux
  4. Windows 200
Question 19 Multiple Choice (Single Answer)

When logging into a PC. If you get an error message "The system cannot log you on because the domain is not available" What are the possible reasons?

  1. Operating system windows may be corrupted
  2. You may be using earlier version of windows
  3. Your system is not connected to the Network or Network cable is unplugged
  4. User name and password provided is incorrect