Unix Questions and Answers – Vi Basics and Modes – 1

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Vi Basics and Modes – 1”. 1. Which editor is used by the UNIX system to edit files? a) vi b) notepad c) word d) notepad++ 2. What does the following command do? $ vi file001 a) open file named file001 b) edit … Read more

advertisement

Unix Questions and Answers – Changing File Ownership and Permissions – 2

This set of Unix Questions and Answers for Experienced people focuses on “Changing File Ownership and Permissions – 2”. 1. While changing permissions in an absolute manner, we explicitly set all the nine bits irrespective of the previous permissions of the file. a) True b) False 2. What are the permission of file01 after executing … Read more

advertisement

Unix Questions and Answers – Changing File Ownership and Permissions – 1

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Changing File Ownership and Permissions – 1”. 1. Which command is used to change the permissions of a file? a) chmod b) ch c) chown d) chgrp 2. chmod command can take multiple filenames as arguments. a) True b) False 3. chmod command … Read more

advertisement

Unix Questions and Answers – File Ownership and Permissions

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “File Ownership and Permissions”. 1. A file can be recognized as an ordinary file or directory by ____ symbol. a) $ b) – c) * d) / 2. How many types of permissions a file has in UNIX? a) 1 b) 2 c) … Read more

advertisement

Unix Questions and Answers – Listing File and Directory Attributes

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Listing File and Directory Attributes”. 1. An attribute is a specification of an object that defines its property. a) True b) False 2. Which command is used to list the attributes of a file? a) cp b) list c) ls d) attr 3. … Read more

advertisement

Unix Questions and Answers – Compressing and Archiving Files – 2

This set of Unix Interview Questions and Answers for freshers focuses on “Compressing and Archiving Files – 2”. 1. Which of the following key options is used with tar to create an archive? a) -c b) -x c) -t d) -f archive name 2. To create an archive named abc.tar consisting of two files, file01 … Read more

advertisement

Unix Questions and Answers – Compressing and Archiving Files – 1

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Compressing and Archiving Files – 1”. 1. Which of the following is used to compress files? a) cmp b) gzip c) gunzip d) comm 2. Which one of the following extension is provided by gzip to the compressed filename? a) .cm b) .gz … Read more

advertisement

Unix Questions and Answers – Counting File Data: wc Command

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Counting File Data: wc Command”. 1. Which command is used for counting words, lines and characters in a file? a) diff b) count c) man d) wc 2. wc command cannot take multiple filenames as arguments. a) True b) False 3. Which option … Read more

advertisement

Unix Questions and Answers – Comparing Files:comm, cmp and diff Command

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Comparing Files: comm, cmp and diff Command”. 1. Which command is used for comparing two files? a) cmp b) comp c) diff d) comm 2. What is the exit status of cmp command if both the files are identical? a) 0 b) 1 … Read more

advertisement

Unix Questions and Answers – Deleting and Renaming files: rm and mv Command

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Deleting and Renaming files: rm and mv Command”. 1. Which command is used for removing/deleting files in UNIX? a) rmdir b) rm c) del d) mv 2. We can delete multiple files using a single rm command. a) True b) False 3. To … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.