Monday, 11 November 2013

Unix Interview Questions and Answers for freshers and experienced pdf

1) What is UNIX?
2) What are filters?
3) What is a typical syntax being followed when issuing commands in shell?
4) Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
5) What is the chief difference between the –v and –x option s to set?
6) What is Kernel?
7) What is Shell?
8) What are the key features of the Korn Shell?
9) What are some common shells and what are their indicators?
10) Differentiate multiuser from multitask.
11) What is command substitution?
12) What is a directory?
13) What is inode?
14) You have a file called tonky in the directory honky. Later you add new material to tonky. What changes take place in the directory, inode, and file?
15) Write a shell script that requests the user’s age and then echoes it, along with some suitable comment.
16) Differentiate relative path from absolute path.
17) Explain the importance of directories in a UNIX system?
18) Briefly describe the Shell’s responsibilities
19) What are shell variables?
20) What are the differences among a system call, a library function, and a UNIX command?
21) What is Bash Shell?
22) Enumerate some of the most commonly used network commands in UNIX
23) Differentiate cmp command from diff command.
24) What is the use of -l when listing a directory?
25) What is piping?
26) What is a superuser?
27) How do you determine and set the path in UNIX?
28) Is it possible to see information about a process while it is being executed?
29) What is the standard convention being followed when naming files in UNIX?
30) Why is it that it is not advisable to use root as the default login?
31) What is the use of the tee command?
32) Differentiate cat command from more command.
33) What is parsing?
34) What is pid?
35) How does the system know where one command ends and another begins?
37) What is wild-card interpretation?
38) What is the output of this command? $who | sort –logfile > newfile
39) How do you switch from any user type to a super user type?
40) What would be the effect of changing the value of PATH to:
.:/usr/della/bin: /bin: /usr/bin
41) Write a command that will display files in the current directory, in a colored, long format.
42) Write a command that will find all text files in a directory such that it does not contain the word “amazing” in any form (that is, it must include the words Amazing, AMAZING, or aMAZINg)
43) Write a command that will output the sorted contents of a file named IN.TXT and place the output in another file named OUT.TXT, while at the same time excluding duplicate entries.
44) Write a command that will allow a UNIX system to shut down in 15 minutes, after which it will perform a reboot.
45) What command will change your prompt to MYPROMPT: ?
46) What does this command do? cat food 1 > kitty
47) What is wrong with this interactive shell script?
echo What month is this?
read $month
echo $month is as good a month as any.

No comments: