Unix/Lunux/Unix%20MCQS%20Set%204 Sample Test,Sample questions

Question:
 
You can append to a file instead of overwriting by using the

1.> symbols

2.>> symbols

3.< symbols

4.<< symbols

Posted Date:-2021-02-20 14:05:41


Question:
  
Which of are following internal commands is used in mail to forward mail to user in user-list?

1.r user-list

2.m user-list

3.d user-list

4.e user-list

Posted Date:-2021-02-20 14:05:41


Question:
  
Which of are following internal commands is used in mail to forward mail to user in user-list?

1.r user-list

2.m user-list

3. d user-list

4. e user-list

Posted Date:-2021-02-20 14:05:41


Question:
  
Which of the following shell's wildcards are used to match any number of characters including none?

1.[ijk]

2.[!ijk]

3.?

4.*

Posted Date:-2021-02-20 14:05:41


Question:
The cat command is used to

1.capture a file

2.display a file

3.print a file

4.copy a file

Posted Date:-2021-02-20 14:05:41


Question:
The command that can be used to restrict incoming messages to a user is

1.mesg

2.grep

3.halt

4.sleep

Posted Date:-2021-02-20 14:05:41


Question:
The command used to remove the directory is;

1.rmdir

2.rd

3.remove

4.rdir

Posted Date:-2021-02-20 14:05:41


Question:
The File that contains a set of instructions which are performed when a user logs in, is

1. autoexec.bat

2. .exrc

3..profile

4..autoexec

Posted Date:-2021-02-20 14:05:41


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-02-20 14:05:41


Question:
The octal representation 652 indicates

1.Execute permission for the owner

2.Write permission for others

3. Read and write permission of groups

4. All of the above

Posted Date:-2021-02-20 14:05:41


Question:
The special shell variable $* is used

1. to exit status of ast command executed.

2.to process number of the current shell

3.to list the positional parameters

4.to name the command being executed

Posted Date:-2021-02-20 14:05:41


Question:
The UNIX file system stores a data in physical blocks of

1.1024 bytes

2.2048 bytes

3.512 bytes

4. 256 bytes

Posted Date:-2021-02-20 14:05:41


Question:
The [line number G] key allows you

1.to move cursor left by one position

2.to move cursor right by one position

3.to move cursor down by one line

4.to move cursor to the beginning of the line specified by the number

Posted Date:-2021-02-20 14:05:41


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

1.more

2.pg

3.cat

4.lp

Posted Date:-2021-02-20 14:05:41


Question:
Which command is used to assign only read permission to all three categories of the file 'note'?

1. chmod go+r note

2.chmod a-rw

3.chmod ugo=r note

4. chmod u+r,g+r,o-x note

Posted Date:-2021-02-20 14:05:41


Question:
Which command is used to display all the lines with the string 'sales' from the file empl.lst?

1. cut sales empl.lst

2./sales > empl.lst

3.grep sales empl.lst

4.cat | /sales > empl.lst

Posted Date:-2021-02-20 14:05:41


Question:
Which command is used to link the files?

1.lk

2.ln

3.cp

4.tar

Posted Date:-2021-02-20 14:05:41


Question:
Which command is used to move all files to the bin sub-directory of the parent directory?

1.mv *.* /bin/

2.mv * /bin/*

3.mv * ../bin

4.mv * ../bin *.*

Posted Date:-2021-02-20 14:05:41


Question:
Which command is used to save the standard output in a file, as well as display it on the terminal?

1.more

2.cat

3.grep

4.tee

Posted Date:-2021-02-20 14:05:41


Question:
Which command is used to terminate all processes in your own system except the login shell?

1. kill 1

2.kill 0

3.cancel all

4.cancel 1

Posted Date:-2021-02-20 14:05:41


Question:
Which command is used with file named 'note' to remove the executable permission from the user and assign read permission to the group and others?

1. chmod u-x, go+r note

2.chmod go+r, u+x note

3.chmod g-x, uo+r note

4.chmod go+x, u-x note

Posted Date:-2021-02-20 14:05:41


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-02-20 14:05:41


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.fch

3.rch

4.ech

Posted Date:-2021-02-20 14:05:41


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-02-20 14:05:41


Question:
Which command is used with vi editor to save file and remain in the editing mode?

1.:q

2.:w

3.q!

4.:x

Posted Date:-2021-02-20 14:05:41


Question:
Which command will be used with vi editor to append text at end of line?

1.A

2.a

3.i

4.I

Posted Date:-2021-02-20 14:05:41


Question:
Which of command is used to copy a file?

1.copy

2.cp

3.cpio

4.tar

Posted Date:-2021-02-20 14:05:41


Question:
Which of following commands is used for an automatic reminder service?

1.write

2.mesg

3.calendar

4.mail

Posted Date:-2021-02-20 14:05:41


Question:
Which of the following command is used to count just the number of lines contained in a file?

1.wc -l

2.wc -c

3.wc -w

4.wc -r

Posted Date:-2021-02-20 14:05:41


Question:
Which of the following command is used to go to home directory?

1.cd..

2.cd/

3.cd

4.cd HOME.

Posted Date:-2021-02-20 14:05:41


Question:
Which of the following commands is not the vi Input mode command?

1.rch

2.R

3.S

4.j

Posted Date:-2021-02-20 14:05:41


Question:
Which of the following commands is used to copy directory structures in and out

1.cp

2.cpio

3.cp - p

4.copy

Posted Date:-2021-02-20 14:05:41


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-02-20 14:05:41


Question:
Which of the following commands is used to have a two-way communication with any person who is currently logged in?

1.mail

2.mesg

3.write

4.grep

Posted Date:-2021-02-20 14:05:41


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

1.erase

2.delete

3.rm

4.dm

Posted Date:-2021-02-20 14:05:41


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-02-20 14:05:41


Question:
Which of the following keys is used to delete the character beneath the cursor?

1.x

2.X

3.dd

4.D

Posted Date:-2021-02-20 14:05:41


Question:
Which of the following signs is used to back up over typing errors in vi?

1.@

2.#

3.$

4.!

Posted Date:-2021-02-20 14:05:41


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-02-20 14:05:41


Question:
Which operator will be used with chmod command to assign absolute permission?

1.+

2. -

3.=

4.%

Posted Date:-2021-02-20 14:05:41


Question:
Which symbol will be used with grep command to match the pattern pat at the end of a line?

1.^pat

2.$pat

3.pat$

4.pat^

Posted Date:-2021-02-20 14:05:41


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!