linux test questions

4
1) Which of the files holds configuration information on how to manage terminal devices (respawn them)? a. /etc/initd b. /etc/inetd c. /etc/inittab d. /dev/inetd 2) Which field of the /etc/passwd file holds the passwords for users? a. first b. second c. third d. fourth 3) Which of the following runlevels will reboot the system? a. 0 b. 2 c. 4 d. 6 4 IN "vi" use the command "y" with the meaning "yank". The meaning of "yank" is: a. Reinserting text previously killed. b. Copying text to be reinserted later c. Both 5 Using bash, what will be the current working directory after these commands: cd / cd /tmp ls /etc cd $_ a. / b. /tmp c. /etc 6 In addition to displaying process activity, the "top" utility can also be used to kill or renice processes. a. True b. False

Upload: deepak-singh

Post on 14-Oct-2014

125 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: linux test questions

1) Which of the files holds configuration information on how to manage terminal devices (respawn them)?

a. /etc/initdb. /etc/inetdc. /etc/inittabd. /dev/inetd

2) Which field of the /etc/passwd file holds the passwords for users?a. firstb. secondc. thirdd. fourth

3) Which of the following runlevels will reboot the system?a. 0b. 2c. 4d. 6

4 IN "vi" use the command "y" with the meaning "yank". The meaning of "yank" is:a. Reinserting text previously killed.b. Copying text to be reinserted laterc. Both

5 Using bash, what will be the current working directory after these commands:cd /cd /tmpls /etccd $_

a. /b. /tmpc. /etc

6 In addition to displaying process activity, the "top" utility can also be used to kill or renice processes.

a. Trueb. False

7 When a DHCP server responds to a request for an address, it does so using a broadcast packet.

a. Trueb. False

8 To run fsck without being asked for confirmation of its actions, use:a. fsck -a

Page 2: linux test questions

b. fsck -nc. fsck -y

9 Linux uses PAM (Pluggable Authentication Modules) to authenticate users. This cannot be used with Kerberos authentication.

a. Trueb. False

10 On Linux /usr/local would normally contain several directories such as bin, doc, etc, games and others. Some, such as "man", even have subdirectories. However, no actual files would be found in this hierarchy after a normal installation.

a. Trueb. False

11 LDAP stands for Lightweight Directory Access Protocol.a. Trueb. False

12 To copy all files in the current directory (but not sub-directories) to /safe, use:a. cp * /safeb. cp *.* /safec. cp . /safe

13 Swap is enabled by /etc/rc.d/rc.sysinit before any processes are started.a. Trueb. False

14 The file /etc/securetty lists the ttys that are considered secure, and root may not login on any tty not listed there. If the file does not exist, root cannot login anywhere but /dev/console.

a. Trueb. False

15 An ordinary user logged in at the console uses "CTRL-ALT-DELETE" Will the system reboot?

a. yesb. noc. yes, if they know root's passwordd. yes, if they know the console password

16 By default, Linux enables text consoles on ALT-F1 through ALT-F6. The line7:2345:wait:/sbin/mingetty tty8 is added to /etc/inittab with the intent of starting up a login on ALT-F8.This line is incorrect because:

Page 3: linux test questions

* The 7 at the beginning of the line must be an 8 * The "wait" must be "respawn" * "mingetty" should be "mgetty" * "tty8" should be "/dev/tty08" * All of the above

17 Which of the following devices would be the first SCSI hard disk on a Linux system? a. /dev/sd0 b. /dev/sd1 c. /dev/sda d. /dev/sdb

18 With a umask value of 112, what are the default permissions assigned to newly created files?

a. ---x--x-wx b. -rw-rw-r-- c. -r-xr-x-r-- d. -rw-rw—

19 Which command list current scheduled cron jobsa. Crontab –eb. Crontab –rc. Crontab –pd. Crontab –l

20 Your system is running very slow. Write atleast one command with proper arguments each for checking Input/Output performance, Network statistics, load average and memory statistics.

Ans :