Monday, September 21, 2015

Nitheen Kumar

Unix Interview Questions

 
1) What is UNIX?

It is a portable operating system that is designed for both efficient multi-tasking and mult-user functions. Its portability allows it to run on different hardware platforms. It was written is C and lets user do processing and control under a shell.

2) What is the output of this command?

$who | sort –logfile > newfile In this command, the output from the command “who” becomes the input to the “sort” command. At the same time, “sort” opens logfile, arranges it together with the output from the command “who”, and places the final sorted output to the file newfile.

3) What is a typical syntax being followed when issuing commands in shell?

Typical command syntax under the UNIX shell follows the format: Command [-argument] [-argument] [–argument] [file]

4) Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

Yes, that is possible. Use “rm –r *” for this purpose. The rm command is for deleting files. The –r option will erase directories and subdirectories, including files within. The asterisk represents all entries.

5) What is the chief difference between the –v and –x option s to set?

The –v option echoes each command before arguments and variables have been substituted for; the –x option echoes the commands after substitution has taken place.

6) What is Kernel?

Kernel is the UNIX operating system. It is the master program that controls the computer’s resources, allotting them to different users and to different tasks. However, the kernel doesn’t deal directly with a user. Instead, it starts up a separate, interactive program, called a shell, for each user when he/she logs on.

7) What is Shell?

A shell acts as an interface between the user and the system. As a command interpreter, the shell takes commands and sets them up for execution.

8) What are filters?

The term Filter is often used to refer to any program that can take input from standard input, perform some operation on that input, and write the results to standard output. A Filter is also any program that can be used between two other programs in a pipeline.

9) What are some common shells and what are their indicators?

sh – Bourne shell csh – C SHell bash – Bourne Again Shell tcsh – enhanced C Shell zsh – Z SHell ksh – Korn SHell

10) Differentiate multiuser from multitask.?

Multiuser means that more than one person can use the computer at the same time. Multitask means that even a single user can have the computer work on more than one task or program at the same time.


Prv 1  2 3  4  5 Next

Subscribe to get more Posts :