SlideShare a Scribd company logo
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_Questions.pdf

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
shaktisaini8
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .ppt
PDhivyabharathi2
 
Linux final exam
Linux final examLinux final exam
Linux final exam
Andrew Ibrahim
 
POS 433 Inspiring Innovation/tutorialrank.com
 POS 433 Inspiring Innovation/tutorialrank.com POS 433 Inspiring Innovation/tutorialrank.com
POS 433 Inspiring Innovation/tutorialrank.com
jonhson152
 
Exp_3_20BCA1066 Linux.docx
Exp_3_20BCA1066 Linux.docxExp_3_20BCA1066 Linux.docx
Exp_3_20BCA1066 Linux.docx
ApkaAmitbro
 
Exp_3_20BCA1311 Linux Labbyharshdeep.docx
Exp_3_20BCA1311 Linux Labbyharshdeep.docxExp_3_20BCA1311 Linux Labbyharshdeep.docx
Exp_3_20BCA1311 Linux Labbyharshdeep.docx
ApkaAmitbro
 
Linux test paper2
Linux test paper2Linux test paper2
Linux test paper2
Ganesh Bhosale
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
vamsikrishna204239
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
vamsikrishna204239
 
Quize on scripting shell
Quize on scripting shellQuize on scripting shell
Quize on scripting shell
lebse123
 
Linux Command.pptx
Linux Command.pptxLinux Command.pptx
Linux Command.pptx
SaileshB5
 
RTOS.docx
RTOS.docxRTOS.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
bsb_2209
 
Linux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScITLinux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScIT
vignesh0009
 
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
Saybia Himma
 
Linux admin interview questions
Linux admin interview questionsLinux admin interview questions
Linux admin interview questions
Kavya 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 - 2
Knowledge Center Computer
 
Operating System Multiple Choice Questions
Operating System Multiple Choice QuestionsOperating System Multiple Choice Questions
Operating System Multiple Choice Questions
Shusil Baral
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
Teja Bheemanapally
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
Teja Bheemanapally
 

Similar to KMS_Unix_Test_Questions.pdf (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

KMSUnix and Linux.pptx
KMSUnix and Linux.pptxKMSUnix and Linux.pptx
KMSUnix and Linux.pptx
Ganesh Bhosale
 
RDBMS_Concept.ppt
RDBMS_Concept.pptRDBMS_Concept.ppt
RDBMS_Concept.ppt
Ganesh Bhosale
 
CLI.pptx
CLI.pptxCLI.pptx
CLI.pptx
Ganesh Bhosale
 
Exam_Questions.docx
Exam_Questions.docxExam_Questions.docx
Exam_Questions.docx
Ganesh Bhosale
 
AWS WAF.pptx
AWS WAF.pptxAWS WAF.pptx
AWS WAF.pptx
Ganesh Bhosale
 
Python_Final_Test.docx
Python_Final_Test.docxPython_Final_Test.docx
Python_Final_Test.docx
Ganesh Bhosale
 
Machine learning
Machine learningMachine learning
Machine learning
Ganesh Bhosale
 
Python programming
Python programmingPython programming
Python programming
Ganesh Bhosale
 
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
Ganesh Bhosale
 
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
Ganesh Bhosale
 
Workshops
WorkshopsWorkshops
Workshops
Ganesh Bhosale
 
Day4
Day4Day4

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

THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
nitinpv4ai
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
RandolphRadicy
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
Nguyen Thanh Tu Collection
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
Celine George
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
Nguyen Thanh Tu Collection
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
Kalna College
 

Recently uploaded (20)

THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
 

KMS_Unix_Test_Questions.pdf

  • 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