Saturday, 10 January 2015

UNIX

UNIX


1.Command used to display name of path in prompt is Ans: ls
2. Which directory contains the directory and blocks special files in unix ? Ans: etc
3. mv command will change Ans: i-node no
4. Which of the following metacharacters holds their special status within double quotes?
?
*
$
&
Ans: $ &
5. Which is not a file stream opened automatically in a unix? Ans:Std terminal
6. which command is used to interactively delete files?
7. wc command when used with arguments will?
Ans: wait for user to type in as i/p and displays count for that i/p
8. cat x?  Ans : read from file x
9. which of these commands is not a filter?
1 sort
2 grep
3 cal
4 cut
Ans : cal
10. cd will return the exit status as
Options:
1for success
1for failure
 0for failure
none            
 Ans:none(doubt)
11.Which of the followinng unix command will not take the user student5 to this personal home directory?
1 cd
2 cd/~
3 cd ~
4 cd~ student5                optn2 (not sure check it)
12. COMMANDS TO FIND ALL PROCESSES RUNNING ALONG colonel process  Ans: ps-ef
13. the open mode of a file can combine two or more parameters by using ?
a. bitwise or
b. bitwise and
c. both of the above
d. open mode cant combine two parameters
Ans:
14. unix command to display the names of all users have currently logged in
a. who
b.who am i
c.whoami
d.su
Ans:who am I
15. Used to indicate mark elememt is deprecated and no longer used..
 Ans: @deprecated
16. ecursive listing of all
opn;4ls-r 4IS-R 4IS-a 4ls-F               
Ans: 4IS-R














No comments:

Post a Comment