0

operating systems Online Quiz - 52

Description: operating systems Online Quiz - 52
Number of Questions: 20
Created by:
Tags: operating systems
Attempted 0/20 Correct 0 Score 0
  1. A shell

  2. An editor

  3. System Manager

  4. None of these


Correct Option: B

What is the importance of +x rights given to a directory?

  1. The +x right is meaningless for directory

  2. To give permission to other users

  3. To move into that directory

  4. None of these


Correct Option: C

I have a script which will prompt me to enter a password. But I want that the password should not be displayed when I enter the password. How do I achieve this?

  1. stty -echo

  2. set noecho

  3. stop echo

  4. None of these


Correct Option: A

What is the command to check all the recent logins with IP address on my AIX server?

  1. last

  2. logins

  3. recentlogin

  4. None of these


Correct Option: A

What is the output of the following command? $ awk '{print "'\''"}' /etc/passwd|head -1

  1. a single quote

  2. a double quote

  3. syntax error

  4. None of these


Correct Option: A

What will happen if I press v after firing the following command?

  1. Show verbose messages

  2. Enter VI editor

  3. Show the version of more command

  4. None of these


Correct Option: B
  1. The maximum size of any filesystem created in that VG can be of 1GB

  2. The minimum size of any filesystem created in that VG can be of 1GB

  3. PP size of 1GB is not possible.

  4. None of these


Correct Option: B
  1. A command to gather system configuration.

  2. A command to monitor performance.

  3. Not a valid AIX command

  4. None of these


Correct Option: A

How can I disable ftp on my AIX server?

  1. Hash the line for ftp in /etc/inetd.conf and refresh the inetd daemon.

  2. Execute the coommand: # service ftpd stop

  3. Execute the command:# stopsrc -s ftpd

  4. None of these


Correct Option: A

What does lspv do?

  1. List all physical volumes

  2. List all physical partitions

  3. List all logical partitions

  4. List PP size


Correct Option: A

What is the importance of environment variable PS2?

  1. Its gets displayed when a command continues to next line.

  2. It is reserved for root user

  3. It is used for defining the default character used to commenting a line for a particular shell.

  4. None of these


Correct Option: A

The /etc/passwd file does not have write permission for others and group. Still the non root users when use the command 'passwd' are actually updating the /etc/passwd file . How does unix allow this?

  1. Because of the principle of SUID

  2. Because the passwd command lies in /usr/bin

  3. /etc/passwd is a special file and so it is allowed

  4. None of these


Correct Option: A

What will happen if I execute a shell script with -x options

  1. Will only show a preview of the execution and will not actually execute the script

  2. Show verbose messages of the execution and helps in debugging

  3. This is called safe-execution.

  4. None of these


Correct Option: B

Can I change hostname of my AIX server without reboot?

  1. Yes, use smitty hostname and reboot is not required

  2. No, We have to change and to make it permanent we have to reboot the server

  3. Depends on the runlevel

  4. None of these


Correct Option: A

What wil be the output of this command?$ for i in 1 2 3;do echo "$i\c";done; Tell without trying on a server.

  1. 1c2c3c

  2. 123

  3. 1\c2\c3\c

  4. None of these


Correct Option: B

I am in a directory /tmp/test. $ pwd /tmp/test Now I deleted this directory from another session and fired the command pwd on the previous session. What will be the output of the pwd command?

  1. /tmp/test

  2. Directory does not exist

  3. /tmp

  4. None of these


Correct Option: A

$ i=1 $ j=A $ A1=hello These 3 variables are defined. Which of the following commands will display hello?

  1. eval echo ${j}${i}

  2. eval echo $${j}${i}

  3. eval echo \$${j}${i}

  4. None of these


Correct Option: C
- Hide questions