JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 17
Unix interview questions part 17
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which option is used with the tail command for extracting bytes instead of lines?
A. -f
B. -n
C. -c
D. -a
Show Correct Answer
Correct Answer is :
-c
2. To extract specific columns from a file, ____ command is used.
A. tail
B. head
C. pr
D. cut
Show Correct Answer
Correct Answer is :
cut
3. The expression cut -c -3 emp.lst will cut columns number _____
A. 3
B. 1
C. 45294
D. 0
Show Correct Answer
Correct Answer is :
45294
4. ____ option is used with the cut command for cutting fields.
A. -c
B. -n
C. -f
D. -a
Show Correct Answer
Correct Answer is :
-f
5. What is the default delimiter used by the cut command for cutting fields?
A. space
B. tab
C. double tab
D. underscore
Show Correct Answer
Correct Answer is :
tab
6. Which option is used with the cut command for cutting field base on the value of our specified delimiter?
A. -a
B. -f
C. -d
D. -e
Show Correct Answer
Correct Answer is :
-d
7. We have to specify whether we want to cut fields or columns while using cut command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
8. The following command will produce an error. $ cut -d “|” -f 1,4 emp.lst
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
9. Which one of the following commands is incorrect?
A. $ cut -d “|” -f 1,4 emp.lst
B. $ cut -c -3 emp.lst
C. $ tail -c -511 foo
D. $ tail -c 500 foo
Show Correct Answer
Correct Answer is :
$ tail -c 500 foo
10. Which command is used for pasting files?
A. cut
B. paste
C. tail
D. head
Show Correct Answer
Correct Answer is :
paste
11. Whatever we have cut using cut command can be pasted back using paste command but vertically.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
12. paste command uses space as the default field delimiter.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
13. _____ option is used with paste command if we want to specify our own delimiter.
A. -d
B. -c
C. -a
D. -e
Show Correct Answer
Correct Answer is :
-d
14. Which option is used with paste command for joining lines?
A. -s
B. -c
C. -a
D. -e
Show Correct Answer
Correct Answer is :
-s
15. echo command is used for _________
A. displaying errors
B. displaying operating system details
C. displaying diagnostic messages
D. displaying date and time
Show Correct Answer
Correct Answer is :
displaying diagnostic messages
16. What are escape sequences?
A. special characters beginning with a \ (backslash)
B. special commands
C. special utilities
D. a sequence of characters
Show Correct Answer
Correct Answer is :
special characters beginning with a \ (backslash)
17. Which of the following is not a valid escape sequence in UNIX?
A. \n
B. \t
C. \v
D. \d
Show Correct Answer
Correct Answer is :
\d
18. Which command is used as an alternative to echo command?
A. ls
B. printf
C. wc
D. ps
Show Correct Answer
Correct Answer is :
printf
19. For what purpose bc command is used?
A. as a calculator
B. as an editor
C. as a process table viewer
D. for copying files
Show Correct Answer
Correct Answer is :
as a calculator
20. script command is used for___________
A. recording history
B. recording our session
C. recording passwords
D. recording scripts
Show Correct Answer
Correct Answer is :
recording our session
Similar Interview Questions
Search for latest jobs
Find Jobs