March 30, 2009

Linux \ Solaris Interview Question - 11


Question 251) # lpmove stock sparc meAns:
a move all print requests from stock to sparc
b move all root printing requests from stock to sparc
c move printing request stock to printer sparc
Ans: a
Question 252) Which of the following commands will show the current run level?
a) boot -l
b) who -b
c) uptime
d) who -r
Ans: d
Question 253) What does the Pipe (|) do?
a Takes the output of a command and logs it.
b Take the output of one command and displays it to the screen.
c Takes the output of one command and passes it as the input into a following command
Ans: c
Question 254) What are the 3 modes of operation in vi?
a Command mode, Insert mode, Entry mode
b Entry mode, Command mode, Replace mode
c Command mode, Entry mode, Last-line mode
Ans: c
Question 255) How do you create a new file using vi?
a new filename
b vi filename
c touch
Ans: b
Question 256) Which statement is true about IP address ?
a It consists of digital number separated by dot.
b It consists of letters, slash, dash, not digital numbers.
c It is used for searching network resources.
d It is used for searching network machines.
Ans: a,d
Question 257) What is the primary job of the shell?
a A command interpreter.
b The core of the operating system.
c Interpreter between applications and the OS.
Ans: a
Question 258) Which of the following shows the access mode of a file that has the setgid enabled?
a srwxrwxrwx
b -rwsrwxrwx
c -rwxrwsrwx
d -rwxrwxrws
e -rwxrwxrwt
Ans: c
Question 259) How to get date information into day variable in Bourne shell ?
a day=`date`
b day='date'
c day="date"
Ans: a
Question 260) What are environmental variables?
a Variables exported to all shells.
b Any variable
c Variable available to the current shell.
Ans: a
Question 261) Which of the following can be added in the members list of the Admintool Add Group window?
a UIDs that are less than 1,000
b The names of user accounts that are locked or have no password
c UIDs that are 1,000 or greater
d The names of user accounts used for system administration
Ans: b,d
Question 262) What is the env command used for?
a To display the current (local) variables and their values.
b To display all variables.
c To display the current (exported environment variables and their value
Ans: c
Question 263) What is a local variable?
a Variables exported to all shells.
b Variables known only in the current shell or window.
c Variables defined in the .profile
Ans: b
Question 264) What is the command to search for files and their full paths?
a search
b find
c goto
Ans b
Question 265) What is the set command used for?
a Displays the current shells exported variables.
b Displays the current shell's local variables.
c Displays the users that are logged in.
Ans: b
Question 266) What is the echo command used for?
a Display text or variables.
b Used to repeat a command more than once
c Displays text twice
Ans: a
Question 267) Within the partition menu of the format command, which simple command should you type next in order to give a name to the current label definition for future retrieval?
a Label
b disk
c type
Ans: a
Question 268) How to use on-line help ?
a help
b help login
c cat login
d man login
Ans: d
Question 269) What is the PATH variable used for?
a To determine the path to a command
b To determine the search order for the find command
c To determine the search orders for commands that are executed
Ans: c
Question 270) What does the which command display?
a The path name leading to a command
b To determine the search order for commands that are executed
c To determine the current shell in use
Ans: a
Question 271) What command displays your current search path?
a echo $PATH
b show $PATH
c $PATH
Ans: a
Question 272) What command is used to change file permissions?
a chmod
b chperm
c permission
Ans: a
Question 273) What command is used to display your current user mask setting?
a mask
b umask
c showmask
Ans: b
Question 274) What does the r mean in the following file permission for the owner ?
-rw-r-----
a cannot read
b read only
c readable
d can execute
Ans: c
Question 275) What command is used to change group ownership on files and directories?
a chmod
b passwd
c chgrp 
Ans: c

No comments:

Post a Comment