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

Posted Date:-2021-11-23 05:11:21


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

1. logic

2.profile

3. shell

4.erxc

Posted Date:-2021-11-23 05:15:47


Question:
 The field separator in cut command is specified with

1. -a option

2.-d option

3. -r option

4. -x option

Posted Date:-2021-11-23 04:55:48


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

Posted Date:-2021-11-23 03:40:54


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]

Posted Date:-2021-11-23 04:28:38


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

1.cat

2. vi

3. ed

4. lyrix

Posted Date:-2021-11-23 05:09:23


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]

Posted Date:-2021-11-23 04:04:08


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

1. /

2.?

3.//

4.??

Posted Date:-2021-11-23 04:08:57


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

1.chkdsk

2.fdisk

3.du

4.disk

Posted Date:-2021-11-23 05:14:29


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

Posted Date:-2021-11-23 05:05:50


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

Posted Date:-2021-11-23 04:48:36


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

Posted Date:-2021-11-23 04:33:57


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

1.more

2.pg

3.cat

4.lp

Posted Date:-2021-11-23 03:44:50


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?

Posted Date:-2021-11-23 04:26:59


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

1. pid

2.du

3.ps

4.au

Posted Date:-2021-11-23 03:45:40


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

1.cat

2.head

3.more

4.grep

Posted Date:-2021-11-23 03:28:20


Question:
Which command is used to print a file?

1. print

2. prn

3. pg

4.lp

Posted Date:-2021-11-23 04:58:16


Question:
Which command is used to remove a directory?

1.rd

2.rmdir

3.dldir

4.rdir

Posted Date:-2021-11-23 05:16:57


Question:
Which command is used to terminate a process?

1. shutdown

2.haltsys

3.cancel

4.kill

Posted Date:-2021-11-22 17:47:20


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

1. [Control-d]

2.[Control - u]

3.Control-(c]

4.[Control -P]

Posted Date:-2021-11-22 17:42:40


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

Posted Date:-2021-11-23 04:30:52


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

1. i

2.j

3.k

4.h

Posted Date:-2021-11-23 04:21:10


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

Posted Date:-2021-11-23 05:12:53


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

Posted Date:-2021-11-23 04:50:17


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

Posted Date:-2021-11-23 03:42:04


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

1.erase

2. delete

3. rm

4.dm

Posted Date:-2021-11-23 04:47:00


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

Posted Date:-2021-11-23 03:25:48


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

Posted Date:-2021-11-23 05:07:55


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

1.}

2. {

3. |

4. $

Posted Date:-2021-11-23 05:01:21


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

1. R

2.v

3.C

4. u

Posted Date:-2021-11-23 03:47:00


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

Posted Date:-2021-11-23 05:03:39


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

1. $!

2. $$

3.$0

4.$*

Posted Date:-2021-11-23 04:05:39


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

Posted Date:-2021-11-23 03:43:26


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

Posted Date:-2021-11-23 03:59:33


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

1.-a

2.-b

3.-t

4.-h

Posted Date:-2021-11-23 04:06:34


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

1.$

2. #

3.:

4. ;

Posted Date:-2021-11-23 04:36:56


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
  23. Linux MCQ Unit 1
  24. Linux MCQ Unit 2
  25. LINUX MCQ QUESTIONS AND ANSWER
  26. Linux File Permissions MCQ Questions Answers
  27. Linux Administration MCQ question and answer
  28. Linux MCQ QUESTIONS AND ANSWER
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!