Unix/Lunux/Unix MCQ Set 02 Sample Test,Sample questions

Question:
 In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.

1..exrc

2. .profile

3.lastlogin

4..mbox


Question:
 The agency that sits between the user and the UNIX system is called the

1. logic

2.profile

3. shell

4.erxc


Question:
 The field separator in cut command is specified with

1. -a option

2.-d option

3. -r option

4. -x option


Question:
 The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has

1. Executable permission only

2.Write and executable permissions

3. Both read and executable permissions

4.Both read and write permissions


Question:
 Which command is used to change directory to the name beginning with a 'p'?

1.cd p

2.cd p?

3.cd p*

4.cd [p]


Question:
 Which command is used to display and create files?

1.cat

2. vi

3. ed

4. lyrix


Question:
 Which command is used to list all the files with extension .lst?

1. ls -l *.lst

2.ls lst*

3.ls *.*

4.ls *[lst]


Question:
 Which command is used with vi editor to search a pattern in the forward direction?

1. /

2.?

3.//

4.??


Question:
 Which of the following commands is used to summarize the disk usage?

1.chkdsk

2.fdisk

3.du

4.disk


Question:
 Which of the following commands is used to view your file 24 lines at a time?

1. pg

2. cat

3. lp

4. /p


Question:
The command chmod 761 note is equivalent to

1. chmod 167 note

2. chmod u=rwx, g=rw, o=x note

3.chmo a =761 note

4.chmod 4=7, g=6,0 =1 note


Question:
The command to count the number of files in the current directory by using pipes, is

1.ls | wc

2.ls -l | wc -l

3.ls | wc -w

4. ls | ws -c


Question:
Which command allows you to view your file 24 lines at a time?

1.more

2.pg

3.cat

4.lp


Question:
Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?

1.chmod u+x emp[1-3]

2.chmod 777 emp*

3.chmod u+r ??? emp

4.chmod 222 emp?


Question:
Which command is used to display the characteristics of a process?

1. pid

2.du

3.ps

4.au


Question:
Which command is used to display the top of the file?

1.cat

2.head

3.more

4.grep


Question:
Which command is used to print a file?

1. print

2. prn

3. pg

4.lp


Question:
Which command is used to remove a directory?

1.rd

2.rmdir

3.dldir

4.rdir


Question:
Which command is used to terminate a process?

1. shutdown

2.haltsys

3.cancel

4.kill


Question:
Which command is used with vi editor scroll half page backward?

1. [Control-d]

2.[Control - u]

3.Control-(c]

4.[Control -P]


Question:
Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?

1. tch

2. tch

3.rch

4.ech


Question:
Which command is used with vi editor to move the cursor to the left?

1. i

2.j

3.k

4.h


Question:
Which of the following commands is used to display the directory attributes rather than its contents?

1.ls -l -d

2. ls -l

3.ls -x

4. ls -F


Question:
Which of the following commands is used to display the filenames in multiple columns?

1.ls

2.ls -1

3. ls -x

4.lc


Question:
Which of the following commands is used to obtain a list of all files by modification time?

1. ls -1

2. ls -t

3.ls -i

4.ls -R


Question:
Which of the following commands is used to remove files?

1.erase

2. delete

3. rm

4.dm


Question:
Which of the following commands is used to save the output of the who command in a file named user.lst, as well as display it?

1. who | tee user.lst

2.who > user.lst

3.who >> user.lst

4.who < user.lste


Question:
Which of the following directories contain all the Alias created by a user, including his login directory?

1. /tmp

2./etc

3./usr

4. /dev


Question:
Which of the following keys is used to move the cursor to the end of the paragraph.

1.}

2. {

3. |

4. $


Question:
Which of the following keys is used to overstrike a whole line?

1. R

2.v

3.C

4. u


Question:
Which of the following set options is used with vi editor to ignore case while searching for patterns?

1.ic

2.ai

3. sm

4.ts


Question:
Which of the following special shell variables is used to process number of the current shell?

1. $!

2. $$

3.$0

4.$*


Question:
Which option will be used with disk free command to include the total amount of disk space in the file system?

1.-t

2.-tt

3.-4

4.-i


Question:
Which option will be used with ps command to show the entire command line of the process being run?

1. -4

2.-f

3.-1

4.-2


Question:
Which option will be used with touch command to change the access time?

1.-a

2.-b

3.-t

4.-h


Question:
Which symbol is used to separate more than one command in the same command line?

1.$

2. #

3.:

4. ;


More MCQS

  1. Unix MCQS Set 1
  2. Unix MCQS Set 2
  3. Unix MCQS Set 3
  4. Unix MCQS Set 4
  5. Linux Mcqs Questions Set 1
  6. Linux Mcqs Questions Set 2
  7. Linux Mcqs Questions Set 3
  8. Linux Mcqs Questions Set 4
  9. Linux Mcqs Questions Set 5
  10. Linux Mcqs Questions Set 6
  11. Linux Mcqs Questions Set 7
  12. Linux Mcqs Questions Set 8
  13. Linux Mcqs Questions Set 9
  14. Linux Mcqs Questions Set 10
  15. Linux Mcqs Questions Set 11
  16. Linux Mcqs Questions Set 12
  17. Linux Mcqs Questions Set 13
  18. Linux Mcqs Questions Set 14
  19. Unix MCQ Set 01
  20. Unix MCQ Set 02
  21. UNIX SYSTEM Mcq
  22. Unix MCQ
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!