Unix and AIX System Administration

Test your knowledge of Unix/Linux shell scripting, AIX system administration, command-line operations, and system configuration tasks.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is the command vim for?

  1. A shell
  2. An editor
  3. System Manager
  4. None of these
Question 2 Multiple Choice (Single Answer)

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
Question 3 Multiple Choice (Single Answer)

What is the command to display all the environment variables?

  1. environ
  2. setall
  3. env
  4. None of these
Question 4 Multiple Choice (Single Answer)

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
Question 5 Multiple Choice (Single Answer)

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
Question 6 Multiple Choice (Single Answer)

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
Question 7 Multiple Choice (Single Answer)

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
Question 8 Multiple Choice (Single Answer)

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
Question 9 Multiple Choice (Single Answer)

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
Question 10 Multiple Choice (Single Answer)

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
Question 11 Multiple Choice (Single Answer)

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
Question 12 Multiple Choice (Single Answer)

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
Question 13 Multiple Choice (Single Answer)

What does lspv do?

  1. List all physical volumes
  2. List all physical partitions
  3. List all logical partitions
  4. List PP size
Question 14 Multiple Choice (Single Answer)

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
Question 15 Multiple Choice (Single Answer)

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
Question 16 Multiple Choice (Single Answer)

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
Question 17 Multiple Choice (Single Answer)

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
Question 18 Multiple Choice (Single Answer)

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
Question 19 Multiple Choice (Single Answer)

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
Question 20 Multiple Choice (Single Answer)

$ 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