June 6, 2009

Linux \ Solaris Interview Question - 21

Question 501) Which option of patchadd command does not backup the files to be patched?
a -u
b -f
c -v

Ans: a

Question 502) What permissions are needed to change to a directory and list its contents ?
a r--
b rw-
c r-x

Ans: c

Question 503) Which commands will create a file ?
a touch filename
b cat filename
c ls filename
d cat blah filename

Ans: a,d

Question 504) You go to a users desk and find that the technician has su'd to root and left the station still logged in. You have 5 junior admins under you. What command can you use to determine who the culprit is
a who am i
b who
c last
d finger

Ans: a

Question 505) The cron daemon
a schedules jobs to run
b executes jobs to run

Ans: b

Question 506) You want to print a file with the highest priority, how do you do this ?
a lp -q 0 filename
b lp -q high filename
c lp -q immediate filename
d lp -q

Ans: a

Question 507) What is denoted by the following permissions on the file taxes1999? -r-sr-xr-x
a the file is not executable by anyone but root
b world readable-writable by all users
c file has been locked to all users
d The current owner and root of the file can execute it.
e None of the above

Ans: d

Question 508) Who can remove print job ?
a root
b file owner
c job owner

Ans: a,b

Question 509) Which of the following executes a task at 700pm once?
a at 700pm task
b at 1900 at task
c at 700pm at task at ctrl-d
d at 1900 at ctrl-d task

Ans: c

Question 510) What is the purpose of the PROM? Choose all that apply.
a Boot the operating system
b Test the hardware
c Initialize daemons
d Share resources via NFS
e None of the above

Ans: a,b

Question 511) In Bourne shell, how to assign value to variable EDITOR ?
a EDITOR=/bin/vi
b set EDITOR /bin/vi

Ans: a

Question 512) You wish to run extensive diagnostics on your sun box during bootup, what should you do?
a Nothing, it will run an extensive POST by default.
b Press and hold the stop key while powering on the system.
c Press and hold the stop key as well as the S key
d Press and hold the stop key while pressing the M key.
e None of the above

Ans: e

Question 513) What do you choose to use the new disk from the format menu?
a new
b disk
c select
d

Ans: b

Question 514) If you have an umask of 022, and you create a new empty file, which permissions will it have?
a 644
b 755
c 666
d 123

Ans a

Question 515) If you type the word Mississipi3 for the passwd command
a It is correct
b It is and invalid password
c The passwd command shows you an error message
d The passwd command displays a warning message

Ans: b

No comments:

Post a Comment