Unix Questions and Answers – Copying a File: cp Command

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Copying a File: cp Command”. 1. What is the function of cp command in UNIX? a) list all the available files in the current directory b) delete a given file c) cp is a command used for copying files and directories d) change … Read more

advertisement

Unix Questions and Answers – Displaying and Creating Files: cat Command

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Displaying and Creating Files: cat Command”. 1. Which command is used for displaying contents of a file? a) cp b) rm c) cat d) mkdir 2. Apart from displaying file contents, cat command is also used for _____ files. a) displaying b) deleting … Read more

advertisement

Unix Questions and Answers – Listing Directory Contents: Is Command

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Listing Directory Contents: Is Command”. 1. Which command is used for listing files in a directory? a) ps b) list c) ls d) wc 2. Which option is used with ls command for long listing of files with seven attributes? a) -a b) … Read more

advertisement

Unix Questions and Answers – Absolute and Relative Pathnames

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Absolute and Relative Pathnames”. 1. Pathname is a sequence of symbols and directories indicating the location of a file. a) True b) False 2. What is an absolute pathname? a) pathname relative to a parent directory b) pathname relative to the root (/) … Read more

advertisement

Unix Questions and Answers – File Handling Commands: pwd, cd

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “File Handling Commands: pwd, cd”. 1. Which command is used for printing the current working directory? a) HOME b) cd c) pwd d) dir 2. Which command is used for changing the current directory? a) cd b) cp c) pwd d) rm 3. … Read more

advertisement

Unix Questions and Answers – Categories of Files

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Categories of Files”. 1. A file is a container for storing information. a) True b) False 2. In how many broad categories, files are divided into UNIX? a) 2 b) 4 c) 5 d) 3 3. In UNIX, the file name and file … Read more

advertisement

Unix Questions and Answers – General Purpose Commands – 2

This set of Unix Interview Questions and Answers focuses on “General Purpose Commands – 2”. 1. history command displays the log of recently used commands. a) True b) False 2. Which command is used by the user to change their login password in UNIX? a) man b) reset c) passwd d) cp 3. Which command … Read more

advertisement

Unix Questions and Answers – General Purpose Commands – 1

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “General Purpose Commands – 1”. 1. echo command is used for _________ a) displaying errors b) displaying operating system details c) displaying diagnostic messages d) displaying date and time 2. What are escape sequences? a) special characters beginning with a \ (backslash) b) … Read more

advertisement

Unix Questions and Answers – Commands

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “Commands”. 1. What are Commands? a) specific instructions for performing a particular task b) part of the operating system c) part of the shell d) special instructions 2. In how many categories, commands of UNIX operating system classified? a) 1 b) 2 c) … Read more

advertisement

Unix Questions and Answers – Introduction to UNIX

This set of Unix Multiple Choice Questions & Answers (MCQs) focuses on “UNIX”. 1. What is UNIX? a) an operating system b) a text editor c) programming language d) software program 2. In which language UNIX is written? a) JAVA b) Python c) C++ d) C 3. Which of the following is not a feature … 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.