Ans : $echo $shell
Ans: printenv
Ans: !!
Ans: %%
Ans: du file name
Ans: sed
Ans: Finger was a way to get information about a user from another system Who is used to find who all are using current machine.
Ans: SSH ,RSH ,FTP
Ans: FTP
Ans: touch
Ans: cut filename
Ans: df filename
Ans: cmp file A file B
Ans: ls | wc -l
Ans: tcsh
Ans: using chmod
Ans: Locate uses an internal database to look up indexed files. This database need to be updated using a command “updatedb”.
Find does only a normal search.
Ans: grep “string” filename
Ans: 1. ps = It will list all processes on that shells
2. kill process IDAns: rm -i filename
Ans: rm -rf dirname
Ans:su means switch user it changes the shell we to key a exit to come back to previous shell.
Ans:50 dd in escape mode.
Ans: ?pattern
Ans: dd for cut p for paste
Ans: ls -S
Ans : sed -i s/word/firstword/
A. % B. $ C. ^ D. ~
Ans : C
A. -n B. "0 1 2 3 4 5 6 7 8 9" C. [0-9] D. [^0-9]
Ans : C
A. back slash (\) B. forward slash (/) C. pipe (|) D. ampersand (&)
Ans : C
A. Sam(antha)* B. Sam[antaha] C. Sam|antha D. Sam\(antha\)\?
Ans : B
A. % B. $ C. ^ D. ~
Ans : B
A. 123456789ABCDabcd B. 123456789ABCD C. 19ADad D. 19AD
Ans : B
A. -n B. "\0 \1 \2 \3 \4 \5 \6 \7 \8 \9" C. [0-9] D. [^0-9]
Ans : D
A. $# B. $$ C. $! D. $?
Ans : D
A. -i B. -v C. -c D. -n
Ans : B
A. 15 B. 125 135 145 C. 12345 D.1{2,3,4}5
Ans : B
A. -i B. -v C. -c D. -n
Ans : A
A. -i B. -v C. -c D. -n
Ans : C
A. grep B. egrep C. fgrep
Ans : The fgrep utility does not have the same regular expression set as the other two, and is thus able to execute the fastest hence ans is C.
A."" B. ^$ C. ^" "$ D. [ ]
Ans : B
A. $MPC B. MPC C. ALT D. $ALT
Ans : D
Ans : mkdir -p dir1/dir2/dir3
Ans : vim -o filename1 filename2
Ans : It will list all the currently running processes on CPU.
Ans : sed “5q” filename
Ans : Kacper will get replaced my another string Kacpertech in all the lines of the file.
a. Utility b. Application c. Shell d. Command
Ans : C
Ans : foreach variable name (some
list)
command1
command2
.........
end
Ans : using touch operator