SlideShare a Scribd company logo
1 of 9
Download to read offline
KMS
Unix Test
1. Which vi command should one use to delete the first 10 lines of a file
a. gg10dd
b. 10ggdd
c. 10dw
d. 10dd
2. Which vi command should one use to quit vi without saving any changes made?
a. :q
b. :q!
c. :quit
d. u
3. Assume m=100, n=25.5. choose the appropriate command for doing the calculation
1. $(m+n)
2. expr $m * $n
3. expr $m * $n
4. Error
4. When in Normal mode of vi, which command would you use to search for a word in a
file?
a. s
b. /
c. i
d. Esc
5. / command is used to search text in the ______ in Vi editor
a. forward direction
b. backward direction
c. any direction
d. reversed direction
KMS
6. Which of the following is not a file attribute in Unix?
a. file location
b. file size
c. creation time
d. file owner
7. What does the first character in the output of command “ls -l” represent?
a. Owner Read access
b. File Permission
c. File Type
d. None of the options
8. Which of the following is not a mode for tar
a. list
b. create
c. compress
d. extract
9. Which directory in UNIX usually stores the configuration files?
a. /bin
b. /conf
c. /etc
d. /home
10. Superuser can change only the following permissions on the file
1. owner
2. group owner
3. other users
4. all of the above
11. Which option of ls sorts the files according to their size?
a. ls -s
b. ls -S
c. ls -t
d. ls –h
KMS
12. Which command would you use to replicate a complete directory structure from one
location to another?
a. mv -r
b. cp
c. mv
d. cp –r
13. Which of the following Unix command is used to create an empty file?
a. ls
b. touch
c. chown
d. du
14. Which command can I use to modify the timestamp of a file?
a. touch
b. chmod
c. chtime
d. chown
15. Which of the following commands cannot be used to view the contents of a file?
a. ls
b. cat
c. vi
d. sort
16. Which of the following commands is used to list the contents of a directory ?
a. ls
b. mkdir
c. v
d. dirls
KMS
17. Which command can I used to change the owner and also the group of a file?
a. chgrp
b. chown
c. chmod
d. umask
18. Which command is used to delete an empty directory?
a. deldir
b. del
c. rm
d. rmdir
19. Which of the following is represented as a file on UNIX
a. directory
b. Shell script
c. printer
e. All of these
20 Which command is used to set the default permissions of a newly created file on
UNIX?
a. .bashrc
b. chown
c. chmod
d. umask
21. / command is used to search text in the ______ in Vi editor
a. forward direction
b. backward direction
c. any direction
d. reversed direction
KMS
21. Which UNIX command is used to convert a file to a read only file
a. readonly
b. chown
c. chmod
d. vi
22. ___ used to change the permissions of a file on UNIX
a. chrun
b. chown
c. chmod
d. vi
23. Which command need to give write permissions to a file emp.txt to all the users
belong to particular group ?
a. chmod a+w emp.txt
b. chmod g+w emp.txt
c. chmod u+w emp.txt
d. chmod u+gw emp.txt
24. What is the octal representation of the file owner’s mode : rw-
a. 5
b. 6
c. 42
d. 420
25. write permission is represented as _____ in octal system
a. 5
b. 6
c. 2
d. 4
26. What is the main purpose of an Operating System?
a. Connect me to internet
b. Install software
KMS
c. Interact with the user
d. Manage all system resources
27 Which of these is not a feature of UNIX
a. Consistency
b. Security
c. Multi-Tasking
d. Multi-user
28. This is not a type of Loop in Unix
1. while
2. for
3. do while
4. until
29. Which of the following are variants of UNIX?
a. System V
b. BSD
c. both of the above
d. Fedora
e. Ubuntu
30. Which of the foll. Command will list the output on screen as well as store output in
file
1. cat
` 2. more
3. tee
4. grep
31. Which of the following is not a UNIX shell
a. bash
b. wash
KMS
c. ksh
d. csh
32. This Shell Variable prints all the Arguments given on command line
1. $#
2. $*
3. $?
4. $9
33. This command of Unix displays arguments one by one when used in loop
1. seq
2. shift
3. exit
4. do…….done
34. Unix Command used to display matching pattern is
1. find
2. grep
3. search
4. All of the above
35. The pid of first Process in Unix is
1. 1
2. 4
3. 8
4. 10
36. Which of the foll. Command is used to terminate a process
1. quit
2. cancel
3. kill
KMS
4. remove
37. ppid is
1. Previous Process id
2. Parent Process id
3. Parent Previous id
4. none of the above
38. Which command for sorting a datafile in reverse
1. sh
2. srt
3. sort
4. sort -r
39. This Command can be used to extract a specific column from file
1. grep
2. cut
3. cat
4. paste
40. This Command will send the word count of file myfile into newfile
1. wc myfile
2. wc myfile | newfile
3. wc myfile > newfile
4. wc infile - newfile
41. Which of the following is not a communication command in unix
1. write
2. wall
KMS
3. speak
4. None of the above
42. This command in unix is used to remove an empty file
1. remove
2. del
3. rm
4. mv

More Related Content

Similar to KMS Unix Test: Top 40 Commands

Which of the following files are stored in the -bin directory in Linux.pdf
Which of the following files are stored in the -bin directory in Linux.pdfWhich of the following files are stored in the -bin directory in Linux.pdf
Which of the following files are stored in the -bin directory in Linux.pdfshaktisaini8
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptPDhivyabharathi2
 
POS 433 Inspiring Innovation/tutorialrank.com
 POS 433 Inspiring Innovation/tutorialrank.com POS 433 Inspiring Innovation/tutorialrank.com
POS 433 Inspiring Innovation/tutorialrank.comjonhson152
 
Exp_3_20BCA1066 Linux.docx
Exp_3_20BCA1066 Linux.docxExp_3_20BCA1066 Linux.docx
Exp_3_20BCA1066 Linux.docxApkaAmitbro
 
Exp_3_20BCA1311 Linux Labbyharshdeep.docx
Exp_3_20BCA1311 Linux Labbyharshdeep.docxExp_3_20BCA1311 Linux Labbyharshdeep.docx
Exp_3_20BCA1311 Linux Labbyharshdeep.docxApkaAmitbro
 
Quize on scripting shell
Quize on scripting shellQuize on scripting shell
Quize on scripting shelllebse123
 
Linux Command.pptx
Linux Command.pptxLinux Command.pptx
Linux Command.pptxSaileshB5
 
Tổng hợp câu hỏi ôn tập android có đáp án
Tổng hợp câu hỏi ôn tập android có đáp ánTổng hợp câu hỏi ôn tập android có đáp án
Tổng hợp câu hỏi ôn tập android có đáp ánbsb_2209
 
Linux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScITLinux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScITvignesh0009
 
91703144 latihan-soal-bahasa-inggris-ii-semester-2
91703144 latihan-soal-bahasa-inggris-ii-semester-291703144 latihan-soal-bahasa-inggris-ii-semester-2
91703144 latihan-soal-bahasa-inggris-ii-semester-2Saybia Himma
 
Linux admin interview questions
Linux admin interview questionsLinux admin interview questions
Linux admin interview questionsKavya Sri
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2Knowledge Center Computer
 
Operating System Multiple Choice Questions
Operating System Multiple Choice QuestionsOperating System Multiple Choice Questions
Operating System Multiple Choice QuestionsShusil Baral
 

Similar to KMS Unix Test: Top 40 Commands (20)

Which of the following files are stored in the -bin directory in Linux.pdf
Which of the following files are stored in the -bin directory in Linux.pdfWhich of the following files are stored in the -bin directory in Linux.pdf
Which of the following files are stored in the -bin directory in Linux.pdf
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .ppt
 
Linux final exam
Linux final examLinux final exam
Linux final exam
 
POS 433 Inspiring Innovation/tutorialrank.com
 POS 433 Inspiring Innovation/tutorialrank.com POS 433 Inspiring Innovation/tutorialrank.com
POS 433 Inspiring Innovation/tutorialrank.com
 
Exp_3_20BCA1066 Linux.docx
Exp_3_20BCA1066 Linux.docxExp_3_20BCA1066 Linux.docx
Exp_3_20BCA1066 Linux.docx
 
Exp_3_20BCA1311 Linux Labbyharshdeep.docx
Exp_3_20BCA1311 Linux Labbyharshdeep.docxExp_3_20BCA1311 Linux Labbyharshdeep.docx
Exp_3_20BCA1311 Linux Labbyharshdeep.docx
 
Linux test paper2
Linux test paper2Linux test paper2
Linux test paper2
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
 
Quize on scripting shell
Quize on scripting shellQuize on scripting shell
Quize on scripting shell
 
Linux Command.pptx
Linux Command.pptxLinux Command.pptx
Linux Command.pptx
 
RTOS.docx
RTOS.docxRTOS.docx
RTOS.docx
 
Tổng hợp câu hỏi ôn tập android có đáp án
Tổng hợp câu hỏi ôn tập android có đáp ánTổng hợp câu hỏi ôn tập android có đáp án
Tổng hợp câu hỏi ôn tập android có đáp án
 
Linux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScITLinux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScIT
 
91703144 latihan-soal-bahasa-inggris-ii-semester-2
91703144 latihan-soal-bahasa-inggris-ii-semester-291703144 latihan-soal-bahasa-inggris-ii-semester-2
91703144 latihan-soal-bahasa-inggris-ii-semester-2
 
Linux admin interview questions
Linux admin interview questionsLinux admin interview questions
Linux admin interview questions
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
 
Operating System Multiple Choice Questions
Operating System Multiple Choice QuestionsOperating System Multiple Choice Questions
Operating System Multiple Choice Questions
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 

More from Ganesh Bhosale

More from Ganesh Bhosale (12)

KMSUnix and Linux.pptx
KMSUnix and Linux.pptxKMSUnix and Linux.pptx
KMSUnix and Linux.pptx
 
RDBMS_Concept.ppt
RDBMS_Concept.pptRDBMS_Concept.ppt
RDBMS_Concept.ppt
 
CLI.pptx
CLI.pptxCLI.pptx
CLI.pptx
 
Exam_Questions.docx
Exam_Questions.docxExam_Questions.docx
Exam_Questions.docx
 
AWS WAF.pptx
AWS WAF.pptxAWS WAF.pptx
AWS WAF.pptx
 
Python_Final_Test.docx
Python_Final_Test.docxPython_Final_Test.docx
Python_Final_Test.docx
 
Machine learning
Machine learningMachine learning
Machine learning
 
Python programming
Python programmingPython programming
Python programming
 
Module 1 introduction to aws demo 4
Module 1 introduction to aws demo 4Module 1 introduction to aws demo 4
Module 1 introduction to aws demo 4
 
Setup ip address manually using nmcli command
Setup ip address manually using nmcli commandSetup ip address manually using nmcli command
Setup ip address manually using nmcli command
 
Workshops
WorkshopsWorkshops
Workshops
 
Day4
Day4Day4
Day4
 

Recently uploaded

Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Recently uploaded (20)

Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

KMS Unix Test: Top 40 Commands

  • 1. KMS Unix Test 1. Which vi command should one use to delete the first 10 lines of a file a. gg10dd b. 10ggdd c. 10dw d. 10dd 2. Which vi command should one use to quit vi without saving any changes made? a. :q b. :q! c. :quit d. u 3. Assume m=100, n=25.5. choose the appropriate command for doing the calculation 1. $(m+n) 2. expr $m * $n 3. expr $m * $n 4. Error 4. When in Normal mode of vi, which command would you use to search for a word in a file? a. s b. / c. i d. Esc 5. / command is used to search text in the ______ in Vi editor a. forward direction b. backward direction c. any direction d. reversed direction
  • 2. KMS 6. Which of the following is not a file attribute in Unix? a. file location b. file size c. creation time d. file owner 7. What does the first character in the output of command “ls -l” represent? a. Owner Read access b. File Permission c. File Type d. None of the options 8. Which of the following is not a mode for tar a. list b. create c. compress d. extract 9. Which directory in UNIX usually stores the configuration files? a. /bin b. /conf c. /etc d. /home 10. Superuser can change only the following permissions on the file 1. owner 2. group owner 3. other users 4. all of the above 11. Which option of ls sorts the files according to their size? a. ls -s b. ls -S c. ls -t d. ls –h
  • 3. KMS 12. Which command would you use to replicate a complete directory structure from one location to another? a. mv -r b. cp c. mv d. cp –r 13. Which of the following Unix command is used to create an empty file? a. ls b. touch c. chown d. du 14. Which command can I use to modify the timestamp of a file? a. touch b. chmod c. chtime d. chown 15. Which of the following commands cannot be used to view the contents of a file? a. ls b. cat c. vi d. sort 16. Which of the following commands is used to list the contents of a directory ? a. ls b. mkdir c. v d. dirls
  • 4. KMS 17. Which command can I used to change the owner and also the group of a file? a. chgrp b. chown c. chmod d. umask 18. Which command is used to delete an empty directory? a. deldir b. del c. rm d. rmdir 19. Which of the following is represented as a file on UNIX a. directory b. Shell script c. printer e. All of these 20 Which command is used to set the default permissions of a newly created file on UNIX? a. .bashrc b. chown c. chmod d. umask 21. / command is used to search text in the ______ in Vi editor a. forward direction b. backward direction c. any direction d. reversed direction
  • 5. KMS 21. Which UNIX command is used to convert a file to a read only file a. readonly b. chown c. chmod d. vi 22. ___ used to change the permissions of a file on UNIX a. chrun b. chown c. chmod d. vi 23. Which command need to give write permissions to a file emp.txt to all the users belong to particular group ? a. chmod a+w emp.txt b. chmod g+w emp.txt c. chmod u+w emp.txt d. chmod u+gw emp.txt 24. What is the octal representation of the file owner’s mode : rw- a. 5 b. 6 c. 42 d. 420 25. write permission is represented as _____ in octal system a. 5 b. 6 c. 2 d. 4 26. What is the main purpose of an Operating System? a. Connect me to internet b. Install software
  • 6. KMS c. Interact with the user d. Manage all system resources 27 Which of these is not a feature of UNIX a. Consistency b. Security c. Multi-Tasking d. Multi-user 28. This is not a type of Loop in Unix 1. while 2. for 3. do while 4. until 29. Which of the following are variants of UNIX? a. System V b. BSD c. both of the above d. Fedora e. Ubuntu 30. Which of the foll. Command will list the output on screen as well as store output in file 1. cat ` 2. more 3. tee 4. grep 31. Which of the following is not a UNIX shell a. bash b. wash
  • 7. KMS c. ksh d. csh 32. This Shell Variable prints all the Arguments given on command line 1. $# 2. $* 3. $? 4. $9 33. This command of Unix displays arguments one by one when used in loop 1. seq 2. shift 3. exit 4. do…….done 34. Unix Command used to display matching pattern is 1. find 2. grep 3. search 4. All of the above 35. The pid of first Process in Unix is 1. 1 2. 4 3. 8 4. 10 36. Which of the foll. Command is used to terminate a process 1. quit 2. cancel 3. kill
  • 8. KMS 4. remove 37. ppid is 1. Previous Process id 2. Parent Process id 3. Parent Previous id 4. none of the above 38. Which command for sorting a datafile in reverse 1. sh 2. srt 3. sort 4. sort -r 39. This Command can be used to extract a specific column from file 1. grep 2. cut 3. cat 4. paste 40. This Command will send the word count of file myfile into newfile 1. wc myfile 2. wc myfile | newfile 3. wc myfile > newfile 4. wc infile - newfile 41. Which of the following is not a communication command in unix 1. write 2. wall
  • 9. KMS 3. speak 4. None of the above 42. This command in unix is used to remove an empty file 1. remove 2. del 3. rm 4. mv