JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 25
Unix interview questions part 25
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. c operator is used for changing the text.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
2. To change entire lines, ____ is used.
A. cc
B. CC
C. dd
D. c$
Show Correct Answer
Correct Answer is :
cc
3. Which operator is used in vi to filter text?
A. %%
B. &&
C. $
D. !
Show Correct Answer
Correct Answer is :
!
4. To delete from current cursor upto the first occurrence of }, which of the following will be used?
A. dd$}
B. d /
C. d / }
D. }
Show Correct Answer
Correct Answer is :
d / }
5. The command df. will _____
A. deletes entire line
B. deletes entire paragraph
C. deletes from current cursor up to first occurrence of
D. deletes zero lines
Show Correct Answer
Correct Answer is :
deletes from current cursor up to first occurrence of
6. To yank from current cursor up to first occurrence of string str in reverse direction, we can use:
A. y?str
B. y!str
C. yy str
D. yy ! str
Show Correct Answer
Correct Answer is :
y?str
7. The following command will_________ !! tr ‘[a-z]’ ‘[A-Z]’
A. throw an error
B. undefined behavior
C. changes the case of the current line from lower to uppercase
D. changes the case of current line from upper to lowercase
Show Correct Answer
Correct Answer is :
changes the case of the current line from lower to uppercase
8. The command c0 will change the text from current cursor to the end of line.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
9. To sort all lines from current cursor to end of line, ____ can be used.
A. sort .,$
B. sort !G
C. sort !,G
D. !Gsort
Show Correct Answer
Correct Answer is :
!Gsort
10. Which of the following is not a valid operator-command combination?
A. 5dd
B. yy5
C. cc
D. yG
Show Correct Answer
Correct Answer is :
yy5
11. Wildcards are special characters which are used to replace or represent one or more characters.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
12. Which of the following is not a wild-card?
A. *
B. ?
C. $
D. %
Show Correct Answer
Correct Answer is :
$
13. What does the following command do? $ echo *
A. error
B. undefined behavior
C. displays “*”
D. lists all filenames in the current directory
Show Correct Answer
Correct Answer is :
lists all filenames in the current directory
14. Which command would be most suitable to remove the following files? dirx diry dirz dirzw
A. rm dir?
B. rm dirx diry dirz dirzw
C. rm *
D. rm dir*
Show Correct Answer
Correct Answer is :
rm dir?
15. Which of the following files will not be deleted using “rm chap??” ?
A. chap01
B. chap02
C. chaptd
D. chactd
Show Correct Answer
Correct Answer is :
chactd
16. Which of the following command will list all the hidden filenames in our directory having at least three characters after the dot (.)?
A. ls
B. ls -a
C. ls .???*
D. ls *
Show Correct Answer
Correct Answer is :
ls .???*
17. * and ? cannot match ____
A. /
B. $
C. .
D. / and .
Show Correct Answer
Correct Answer is :
/ and .
18. rm chap0[1234] will delete all of the following files. chap01 chap02 chap03 chap04
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
19. Which of the following files will not be listed using the following command? ls chap0[1-4]
A. chap02
B. chap05
C. chap01
D. chap04
Show Correct Answer
Correct Answer is :
chap05
20. Which of the following symbol is used for negating the character class?
A. .
B. *
C. !
D. %
Show Correct Answer
Correct Answer is :
!
Similar Interview Questions
Search for latest jobs
Find Jobs