Unix/Lunux/Unix MCQS Set 2 Sample Test,Sample questions

Question:
 
The chmod ugo+rw note command can be represented in octal notation as

1.chmod 555 note

2.chmod 666 note

3.chmod 444 note

4.chmod 333 note

Posted Date:-2021-02-20 06:56:18


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-02-20 06:56:18


Question:
 
Which command is used to print a file?

1.print

2.prn

3.pg

4.lp

Posted Date:-2021-02-20 06:56:18


Question:
  
Which command will be used with vi editor to replace single character under cursor with any number of characters?

1.s

2.S

3.a

4.i

Posted Date:-2021-02-20 06:56:18


Question:
  
Which of the following commands is used to count the total number of lines, words, and characters contained in a file.

1.count p

2.wc

3.wcount

4.countw

Posted Date:-2021-02-20 06:56:18


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-02-20 06:56:18


Question:
  
Which shell's wild-cards is used to match a single character?

1.*

2.?

3.[ijk]

4.[!ijk]

Posted Date:-2021-02-20 06:56:18


Question:
Which of the following files contains information related to password aging?

1.Shadow

2.password

3.profile

4.All the three

Posted Date:-2021-02-20 06:56:18


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-02-20 06:56:18


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-02-20 06:56:18


Question:
The commonly used UNIX commands like date, ls, cat, etc. are stored in

1./dev directory

2./bin and /usr/bin directories

3./tmp directory

4./unix directory

Posted Date:-2021-02-20 06:56:18


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-02-20 06:56:18


Question:
Which command is used to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory?

1. copy wb ../misc collect ../misc mon ../misc

2.cp wb collect mon ../misc

3. copy wb collect mon /misc

4.tar wb collect mon /misc

Posted Date:-2021-02-20 06:56:18


Question:
Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?

1.rm *

2.rm -r *

3.rm all

4.rm *.*

Posted Date:-2021-02-20 06:56:18


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-02-20 06:56:18


Question:
Which command is used to list out all the hidden files along with the other files?

1.ls -l

2.ls -x

3. ls -F

4.ls -a

Posted Date:-2021-02-20 06:56:18


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

1./

2.?

3.//

4.??

Posted Date:-2021-02-20 06:56:18


Question:
Which command will be used with vi editor to replace text from cursor to right?

1.r

2.R

3.s

4.S

Posted Date:-2021-02-20 06:56:18


Question:
Which commands is used to assign executable permission to all of the files named "letter"?

1. chmod ugo+r letter

2.chmod ugo+rw letter

3.chmod u+x letter

4.chmod ugo+x letter

Posted Date:-2021-02-20 06:56:18


Question:
Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?

1.chmod 761 note

2.chmod 671 note

3.chmod 167 note

4.chmod 4=rwx, g=rw note

Posted Date:-2021-02-20 06:56:18


Question:
Which of the following commands is used to assign executable permission to the owner of the file named "note"?

1.chmod g+x note

2.chmod u+w note

3.chmod u+x note

4. chmod ugo+x note

Posted Date:-2021-02-20 06:56:18


Question:
Which of the following commands is used to change the working directory?

1.cd

2.changedir

3.chdir

4.cdir

Posted Date:-2021-02-20 06:56:18


Question:
Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?

1.copy programs/wb misc/wbx

2.cp programs/wb misc/wbx

3.tar programs/wb misc/wbx

4. copy a:programs/wb b:misc/wbx

Posted Date:-2021-02-20 06:56:18


Question:
Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?

1. ls -F -x

2.ls -l

3.ls ~ x

4.Ip

Posted Date:-2021-02-20 06:56:18


Question:
Which of the following commands is used to get directory one level up?

1.cd

2.cd ..

3.cd/

4.chdir

Posted Date:-2021-02-20 06:56:18


Question:
Which of the following commands is used to rename a file?

1.rename

2.remove

3.mv

4.ren

Posted Date:-2021-02-20 06:56:18


Question:
Which of the following is invalid filename?

1.shutry

2.TRY

3.trial

4. None of the above

Posted Date:-2021-02-20 06:56:18


Question:
Which of the following is not a filter?

1.cat

2.grep

3. wc

4. None of the above

Posted Date:-2021-02-20 06:56:18


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-02-20 06:56:18


Question:
Which set option is used with vi editor to display line numbers on screen?

1.nm

2.nu

3.ic

4.li

Posted Date:-2021-02-20 06:56:18


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
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!