JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 12
Unix interview questions part 12
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. -f option when used with mv command overwrites existing files without prompting any messages.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
2. Which command is used for displaying contents of a file?
A. cp
B. rm
C. cat
D. mkdir
Show Correct Answer
Correct Answer is :
cat
3. Apart from displaying file contents, cat command is also used for _____ files.
A. displaying
B. deleting
C. copying
D. creating
Show Correct Answer
Correct Answer is :
creating
4. Multiple arguments as filenames can be specified in cat command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
5. Which symbol is used with cat command for creating files?
A. >
B. <
C. *
D. /
Show Correct Answer
Correct Answer is :
>
6. If we create a file using cat command with the same filename which already exists in the current directory then,
A. existing file is deleted
B. new file will be created separately
C. existing file will be overwritten
D. an error will be produced
Show Correct Answer
Correct Answer is :
existing file will be overwritten
7. Which symbol is used to append an existing file?
A. >
B. <
C. >>
D. $
Show Correct Answer
Correct Answer is :
>>
8. Which option is used with cat command for displaying non-printable characters?
A. -v
B. -n
C. -x
D. -a
Show Correct Answer
Correct Answer is :
-v
9. Which option is used with the cat command for displaying file with line numbers?
A. -n
B. -v
C. -a
D. -x
Show Correct Answer
Correct Answer is :
-n
10. Which of the following cannot be performed by cat command?
A. displaying files
B. creating files
C. appending files
D. deleting files
Show Correct Answer
Correct Answer is :
deleting files
11. What does cat file01 file01 file01 display?
A. error
B. blank terminal
C. contents of file01 three times successively
D. contents of file01 single time
Show Correct Answer
Correct Answer is :
contents of file01 three times successively
12. Which files will be displayed by the following command: cat *file*
A. all files in the directory
B. all files with filename containing ‘file’
C. no files will be displayed
D. a single file
Show Correct Answer
Correct Answer is :
all files with filename containing ‘file’
13. Which command is used to create empty files?
A. cp
B. cat
C. touch
D. create
Show Correct Answer
Correct Answer is :
create
14. Which option is used with touch command which forces the command not to create file, if it does not exists.
A. -h
B. -c
C. -t
D. -f
Show Correct Answer
Correct Answer is :
-c
15. Which one of the following commands is incorrect?
A. cat file01
B. cat > file01
C. cat >> file1
D. cat -a file01
Show Correct Answer
Correct Answer is :
cat -a file01
16. Copying is referred to as yanking in vi editor.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
17. Which key is used for deleting text?
A. d
B. y
C. k
D. f
Show Correct Answer
Correct Answer is :
d
18. Which command is used for deleting a single character?
A. d
B. dd
C. x
D. w
Show Correct Answer
Correct Answer is :
x
19. Which command is used for deleting the character on the left of the cursor?
A. x
B. X
C. dd
D. d
Show Correct Answer
Correct Answer is :
X
20. Which of the following command is used to delete a single line?
A. dd
B. x
C. X
D. d
Show Correct Answer
Correct Answer is :
dd
Similar Interview Questions
Search for latest jobs
Find Jobs