JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 2
Unix interview questions part 2
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. When we can access a file with multiple filenames, it is said that the file has multiple _____
A. names
B. inode number
C. links
D. uid
Show Correct Answer
Correct Answer is :
links
2. Which command is used to link a file with multiple filenames?
A. ln
B. link
C. hl
D. sl
Show Correct Answer
Correct Answer is :
ln
3. Which option is used with ln command to create a soft link?
A. -a
B. -l
C. -s
D. -e
Show Correct Answer
Correct Answer is :
-s
4. A hard-linked file is assigned the same inode number as the original value.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
5. If we want to link files across the file systems, we have to use only soft links.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
6. The default permissions for a regular file are ____ and for directories are ____
A. 777, 666
B. 666, 777
C. 000, 000
D. 777, 777
Show Correct Answer
Correct Answer is :
666, 777
7. We can change the default permission set for files and directories using ______
A. umask
B. um
C. perm
D. touch
Show Correct Answer
Correct Answer is :
umask
8. Which command is used to change timestamps associated with a file?
A. touch
B. time
C. umask
D. ls
Show Correct Answer
Correct Answer is :
touch
9. When touch command is used without any options or expression, both times are set to current time and the file is created if it doesn’t exist.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
10. Which option is used with touch command to change the time of last file modification?
A. -a
B. -m
C. -r
D. -i
Show Correct Answer
Correct Answer is :
-m
11. -a option is used with touch command to alter the time of last access.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
12. When touch command is used without any option but with an expression, which of the following timestamps are changed?
A. modification time
B. last access time
C. last inode modification
D. modification time and last access time
Show Correct Answer
Correct Answer is :
modification time and last access time
13. ____ statement matches an expression for more than one alternative.
A. for
B. while
C. elif
D. case
Show Correct Answer
Correct Answer is :
case
14. Every pattern in case statement in terminated with a _____
A. ;
B. :
C. ;;
D. //
Show Correct Answer
Correct Answer is :
;;
15. case statement should have a corresponding closing esac.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
16. The ___ option in case statement matches any option not matched by the previous options.
A. ^
B. $
C. *
D. //
Show Correct Answer
Correct Answer is :
*
17. case can also be used for matching multiple patterns.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
18. case can also use wildcards to pattern matching.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
19. Which command is used for computation and string handling?
A. expr
B. case
C. if
D. read
Show Correct Answer
Correct Answer is :
expr
20. expr can perform ____ arithmetic operations.
A. 2
B. 4
C. 5
D. 3
Show Correct Answer
Correct Answer is :
5
Similar Interview Questions
Search for latest jobs
Find Jobs