Unix Interview Questions - 11 | Snaprecruit.com
Unix Interview Questions - 11 | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
Unix interview questions part 11
Unix interview questions part 11
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which command is used for mapping keys of a keyboard?
A. set
B. map
C. abbr
D. autowrite
Show Correct Answer
Correct Answer is :
map
2. /* and f* are same.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
3. For compiling a C program without leaving the editor, which command will be used?
A. cc %
B. :! Cc
C. :!cc %
D. :!c
Show Correct Answer
Correct Answer is :
:!cc %
4. Which of the following statement is not true?
A. f and t commands are used for searching a character
B. y and yy are same
C. vi has 26 named buffers
D. :e# is used for toggling between files
Show Correct Answer
Correct Answer is :
y and yy are same
5. Which command is used for removing/deleting files in UNIX?
A. rmdir
B. rm
C. del
D. mv
Show Correct Answer
Correct Answer is :
rm
6. We can delete multiple files using a single rm command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
7. To delete all files in a directory we use ______________
A. rmdir *
B. mv *
C. rm *
D. del *
Show Correct Answer
Correct Answer is :
rm *
8. Some files cannot be deleted using rm command because of the permissions associated with it.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
9. Which option is used with rm command for interactive deletion?
A. -i
B. -f
C. -r
D. -R
Show Correct Answer
Correct Answer is :
-i
10. Which option performs recursive deletion?
A. -r
B. -R
C. *
D. -r and -R
Show Correct Answer
Correct Answer is :
-r and -R
11. Which one of the following command can delete a directory which is not empty?
A. rm -r
B. rmdir
C. rm *
D. del *
Show Correct Answer
Correct Answer is :
rm -r
12. If we wish to delete a remove a file forcefully, we can use ____ option with rm command.
A. -i
B. -r
C. -R
D. -f
Show Correct Answer
Correct Answer is :
-f
13. Which command is used for removing file named -file.txt?
A. rm -file.txt
B. rm file.txtrm
C. rm — -file.txt
D. rm -f file.txt
Show Correct Answer
Correct Answer is :
rm — -file.txt
14. Which command is used for renaming files?
A. rename
B. mv
C. cp
D. move
Show Correct Answer
Correct Answer is :
mv
15. If the destination file does not exists, then mv command creates it.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
16. What if the destination file specified in mv command already exists?
A. it will be deleted
B. it will not be affected
C. it will be overwritten
D. an error will be produced
Show Correct Answer
Correct Answer is :
it will be overwritten
17. Apart from renaming files, mv command can also
A. move a file
B. move a group of files
C. rename a directory
D. move a group of files and rename a directory
Show Correct Answer
Correct Answer is :
move a group of files and rename a directory
18. The inode number associated with a file is changed after renaming it.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
19. Which option is used for backing up destination file in mv command?
A. -b
B. -f
C. -v
D. -i
Show Correct Answer
Correct Answer is :
-b
20. Which option is used with mv command so that the destination file does not get overwritten?
A. -n
B. -f
C. -b
D. -i
Show Correct Answer
Correct Answer is :
-n
Similar Interview Questions
Search for latest jobs
Find Jobs