April 16, 2009

Linux \ Solaris Interview Question - 18

Question 426) What is the command to send a print request to printer printer1 to print file1 without banner?
a lp file1
b lp -n printer1 file1
c lp -d printer1 -o nobanner file1
d lp -p printer1 -o nobanner file1
e lp -p printer1 -b file1

Ans: a,b,c,d,e

Question 427) Which command list hidden files ?
a ls -l
b ls -a
c ls -h
d ls -IF

Ans: b

Question 428) To execute the reducelog command at 11 P.M. every Sunday evening, which entry should be placed in a crontab file?
a 11 00 * * 0 reducelog
b 0 23 * * 0 reducelog
c * * 23 0 0 reducelog
d reducelog 11 00 * * 0

Ans: b

Question 429) What is the command to display all status information output and the acceptance and idle or busy status of all printers?
a lp -a
b lp -d
c lp -o
d lp -p
e lp -s
f lp -t

Ans: f


Question 430) Which environment variable is used to set default printer?
a PRINT
b DEFAULTPRINTER
c LPDEST
d DEFAULT

Ans: c

Question 431) What is the command to display the idle or busy status and availability of all printers?
a lp -a
b lp -d
c lp -o
d lp -p
e lp -s
f lp -t

Ans: d

Question 432) What is the result of using the following command?
# mkdir -p dir1/dir2/dir3
a it creates 3 directories, named dir1, dir1/dir2, and dir1/dir2/dir3 respectively.
b it is not a valid command
c it creates directories names dir1,dir2,dir3 respectively

Ans: a

Question 433) What are the commands to cancel a specific printer request waiting in the queue or the print request currently printing?
a lp -k
b lp -k
c lp -k
d cancel -u
e cancel

Ans: d,e

Question 434) What is the terminology used to describe a named group of printers created with the lpadmin command?
a cluster
b group
c class
d circle
e school

Ans: c

Question 444) Which error message this command will generate
cd /usr/bin ~letters
a Too many arguments.
b No such directory.

Ans: a

Question 445) Which of the following commands are valid to create a class of printers and enable them to queue jobs?
a#lpadmin -p printer1 -c class1
#lpadmin -p printer2 -c class1
#accept class1
b#lpadmin -p printer1 -c class1
#lpadmin -p printer2 -c class1
#enable class1
c#lpadmin -d printer1 -g class1
#lpadmin -d printer2 -g class1
#enable class1
d#lpadmin -d printer1 -g class1
#lpadmin -d printer2 -g class1
#accept class1

Ans: a

Question 447) What does the command "df -k" do ?
a It shows the size of each file partition in byte
b It shows the size of each file partition in megabyte
c It shows the size of folders and files in your home directory in kilobyte
d It shows the amount of disk usage in percentage

Ans: d

Question 448) What is the command that will movee a specified print job to the top of the queue?
a lp -q print-request -H top
b lp -u userid -H first
c lp -i print-request -H immediate
d lp -p print-request -H first

Ans: c

Question 449) Which of the following command will set the priority to n while printing a file?
a lp -d printer -P n file
b lp -p printer -b n file
c lp -d printer -q n file
d lp -p printer -P n file
e lp -d printer -p n file

Ans: c

Question 450) The stick bit has NO effect to which of the following ?
a file owner
b any member of the group
c anybody access the directory

Ans: a

No comments:

Post a Comment