April 3, 2009

Linux \ Solaris Interview Question - 12

Question 276) What information is provided by the df command?
a Logical raw device of the file system partition
b Logical block device of the file system partition
c Free blocks
d Number of files that can be created

Ans: b,c,d

Question 277) What is setuid?
a Changes a users Id
b Treats anyone with permission to run a program as if they are the program owner.
c Lets anyone run a particular program.

Ans: b

Question 278) What is the command to display who is currently logged into the system?
a who
b whoami
c whoishere

Ans: a

Question 279) What does the last command display?
a login and logout information
b The last n commands executed
c The last n lines of a file

Ans: a

Question 280) What type are CDROM file ?
a pipe
b symbolic link
c character
d block

Ans: c

Question 281) What is the format of the password file??
a usernamecommentUIDGIDhome-dirlogin_shell
b usernamexUIDGIDcommenthome-dirlogin_shell
c usernamexGIDUIDhome-dirlogin_shell

Ans: b

Question 282) Which file has login ID and other user information ?
a /etc/passwd
b /etc/hosts
c /etc/group

Ans: a

Question 283) Which 4 vi commands switch from command mode to edit mode?
a a
b i
c A
d cw

Ans: a,b,c,d

Question 284) Which are valid printer port ?
a /dev/term/a
b /dev/term/b
c /dev/term/ttya
d /dev/dsk/c0t0d0s3

Ans: a,b

Question 285) What command is used to become a different user?
a change
b du
c su

Ans: c

Question 286) You are working from a text-based terminal. Which command should you use to change a user's primary group?
a chgrp
b groupmod
c chown

Ans: b

Question 287) What command is used to display your user ID, user name, group ID, and group name?
a id
b gid
c showname

Ans: a

Question 288) Which statement is true about the file /etc/hosts ?
a It gives the hosts' name and their IP addresses.
b Any user can modify it.
c It is created automatically when adding a new user.
d It is created automatically when installing system.

Ans: a,d

Question 289) What does the -(dash) option provide with the su command?
a allows the user to adopt the environment of the new user.
b allows the user to log in as another user.
c allows the user to log in as super user.

Ans: a

Question 290) When a user account is created, the .profile is copied from which file?
a /etc/skel/default.profile
b /etc/profile
c /etc/skel/local.profile
d /.profile

Ans: c

Question 291) What command is used to display the Administration Tool?
a admintool
b admin
c tool

Ans: a

Question 292) What command is used to create a users' group?
a addgroup
b groupadd
c grpadd

Ans: b

Question 293) What command is used to add a user and create a users' home directory?
a useradd
b adduser
c addgroup

Ans: a

Question 294) What command allows a login session on a remote system?
a login
b rlogin
c enter

Ans: b

Question 295) What command is used to execute a program on a remote system?
a rsh
b rcp
c rexecute

Ans: a

Question 296) How to identify default boot information
a banner
b printenv
c devalias

Ans: a

Question 297) How many lines head/tail will display by default ?
a 10 lines
b 5 lines
c 25 lines

Ans: a

Question 298) What command allows you to copy files or directories to and from another machine?
a rsh
b rcopy
c rcp

Ans: c

Question 299) What is the host.equiv file used for?
a to identify remote machines as trusted hosts.
b to identify remote machines.
c to identify remote hosts with the same OS.

Ans: a

Question 300) When the mount command is entered without any command line arguments, what happens?
a All file systems in /etc/vfstab are mounted
b All mounted file systems are displayed
c All file systems in /etc/vfstab are displayed
d All file systems listed in /etc/mnttab are displayed

Ans: b,d

No comments:

Post a Comment