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

What is the command vim for?

  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

What is the command to display all the environment variables?

  1. environ

  2. setall

  3. env

  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 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

When a new user is created on AIX server, the default value of PATH variable is set from which configuration file?

  1. /etc/environment

  2. /etc/profile

  3. /etc/defaults

  4. None of these


Correct Option: A

What is the command to find the maintenance level of AIX 5.3 and above?

  1. oslevel -r

  2. maintenancelevel

  3. osversion

  4. uname -a


Correct Option: A

A VG has PP size of 1GB. Which of the following is true?

  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

What is prtconf in AIX?

  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

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) List all physical volumes - This option is correct because lspv is a command in Linux/Unix systems that lists all the physical volumes (disks or disk partitions) on the system.

Option B) List all physical partitions - This option is incorrect because lspv does not list physical partitions. To list physical partitions, you would use the fdisk or parted command.

Option C) List all logical partitions - This option is incorrect because lspv does not list logical partitions. To list logical partitions, you would use the lvdisplay or lvscan command.

Option D) List PP size - This option is incorrect because lspv does not list the PP (Physical Partition) size. To view the PP size, you would use the lspv -l command.

The correct answer is Option A) List all physical volumes. This option is correct because lspv is a command that lists all the physical volumes on the system.

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