Unix Interview Questions

 
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 Shell?
7.
What are the key features of the Korn Shell?
8.
What are some common shells and what are their indicators?
9.
Differentiate multiuser from multitask.
10.
What is command substitution?
11.
What is a directory?
12.
What is inode?
13.
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?
14.
Describe file systems in UNIX
15.
Differentiate relative path from absolute path.
16.
Explain the importance of directories in a UNIX system
17.
Briefly describe the Shell's responsibilities
18.
What are shell variables?
19.
What are the differences among a system call, a library function, and a UNIX command?
20.
What is Bash Shell?
21.
Enumerate some of the most commonly used network commands in UNIX
22.
Differentiate cmp command from diff command.
23.
What is the use of -l when listing a directory?
24.
What is piping?
25.
What is a superuser?
26.
How do you determine and set the path in UNIX?
27.
Is it possible to see information about a process while it is being executed?
28.
What is the standard convention being followed when naming files in UNIX?
29.
Why is it that it is not advisable to use root as the default login?
30.
What is the use of the tee command?
31.
Differentiate cat command from more command.
32.
What is parsing?
33.
What is pid?
34.
How does the system know where one command ends and another begins?
35.
What is wild-card interpretation?
36.
What is the output of this command? $who | sort -logfile > newfile
37.
How do you switch from any user type to a super user type?
38.
What would be the effect of changing the value of PATH to:
.:/usr/della/bin: /bin: /usr/bin
39.
Write a command that will display files in the current directory, in a colored, long format.
40.
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)
41.
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.
42.
Write a command that will allow a UNIX system to shut down in 15 minutes, after which it will perform a reboot.
43.
What command will change your prompt to MYPROMPT: ?
44.
What does this command do? cat food 1 > kitty
45.
What is wrong with this interactive shell script? echo What month is this?
read $month
echo $month is as good a month as any.
46.
Write a shell script that requests the user's age and then echoes it, along with some suitable comment.
47.
Write a script that prints out date information in this order: time, day of week, day number, month, year
(sample output: 17:34:51 PDT Sun 12 Feb 2012)
48.
Write a script that will show the following as output:
Give me a U!
U!
Give ma a N!
N!
Give me a I!
I!
Give me a X!
X!