Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
145 views2 pages

Unix Paper

This document contains a 10 question quiz on UNIX commands and concepts. The questions cover commands like cut, wc, vi editor keys, sort options, file permissions with chmod, piping commands together, reading from and writing to files, creating aliases, and printing subsets of lines from a file. The quiz also asks about concepts like job control operators, streams, greedy pattern matching and classes in Atom.

Uploaded by

garuda1982
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views2 pages

Unix Paper

This document contains a 10 question quiz on UNIX commands and concepts. The questions cover commands like cut, wc, vi editor keys, sort options, file permissions with chmod, piping commands together, reading from and writing to files, creating aliases, and printing subsets of lines from a file. The quiz also asks about concepts like job control operators, streams, greedy pattern matching and classes in Atom.

Uploaded by

garuda1982
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

GAYATRI VIDYA PARISHAD COLLEGE OF ENGINEERING (A)

Department of COMPUTER SCIENCE AND ENGINEERING


UNIX QUIZ EXAM -1
ROLL NUMBER: CSE-2 V SEM DATE:6/08/2018

1. Which command is used to extract specific columns from the file? [ ]


a. cut b. cat c. paste d. read

2. Which command sends the word count of the file infile to the newfile. [ ]

a. wc >infile <newfile b. wc <newfile >infile

c. wc <infile <newfile d. wc infile >newfile

3. Which of the following keystrokes can delete the current character in vi editor? [ ]

a. d b. x c. dd d. delete

4. How many files are used for representing different streams? [ ]

a. 1 b.2 c.3 d.4

5. Which option is used with sort command to specify the field delimiter? [ ]

a. –t b. –d c. –a d. -k

6. What does the following command do? And write similar command for this

tr “AB” “*?” <file1.txt | tr “*?” “BA”

7. List of the duplicate lines in file1.txt and count only more than twice occurrence in a file.

8. Create a file and extract only 3 to 5 fields from that file and copy the content in file2
horizontally.

9. Copy the file from present directory to another working directory using relative path.

10. What is class in atom.


GAYATRI VIDYA PARISHAD COLLEGE OF ENGINEERING (A)
Department of COMPUTER SCIENCE AND ENGINEERING
UNIX QUIZ EXAM -1
ROLL NUMBER: CSE-2 V SEM DATE:6/08/2018

1. Which of the following files will displayed by this command cat *ch*. [ ]

a. patch b. catch c. .ch d. all the above

2. The Octal number to be given a login with chmod command to make a file readable,
writable and executable to the owner, readable and executable to group and others is:

[ ]

a. 777 b. 755 c. 744 d. 555

3. Which symbol is used to separate more than one command in the same command line?
[ ]

a. $ b. : c.| d. ;

4. Shell ___ operator is used for running jobs in the background. [ ]

a. * b. & c. % d. #

5. Which option is used with uniq command for selecting non-repeated lines? [ ]

a. –i b. –c c. –u d. –a

6. Print the following sentence

“This is a fact “Unix vs .Others” in our life”

7. Take the input data from standard input stream using cat command and copy this to
file1.txt

8. Create an aliasing for cut and sort commands in vi editor and use it.

9. Print the top 10 lines and last 5 lines from a file and this one copy to another file (Use
only one command and use tee command).

10. What is greedy pattern matching in operators?

You might also like