Krishna Logo
Divied
Call: Sana @ (571) 386-2972

 

Loading
Latest News
Home Navigation Divied
INTERVIEW Navigation Divied UNIX INTERVIEW QUESTIONS
Showing 21 - 30 of 323 Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Next
UNIX INTERVIEW QUESTIONS
 
21What Does The Command “$who | Sort –log File > New File” Do?
Date Posted: 07/02/2012

Ans: The input from a pipe can be combined with the input from a file. The trick is to use the special symbol “-“(a hyphen) for those commands that recognize the hyphen as std input.
In the above command the output from who becomes the std input to sort , meanwhile sort opens the file log file, the contents of this file is sorted together with the output of who (rep by the hyphen) and the sorted output is redirected to the file new file.

 
 
22Is It Possible To Count Number Char, Line In A File; If So, How
Date Posted: 07/02/2012

Ans: Yes, wc-stands for word count.
WC -c for counting number of characters in a file.
WC -l for counting lines in a file.

 
 
23Is ‘du’ A Command? If So, What Is Its Use?
Date Posted: 07/02/2012

Ans:  Yes, it stands for ‘disk usage’. With the help of this command you can find the disk capacity and free space of the disk.

 
 
24What Will The Following Command Do?
Date Posted: 07/02/2012

Ans: $ echo *
It is similar to ‘ls command and displays all the files in the current directory.

 
 
25Write A Command To Display A File’s Contents In Various Formats?
Date Posted: 07/02/2012

Ans: $od -cbd file_name c – character, b – binary (octal), d-decimal, od=Octal Dump

 
 
26Which Command Is Used To Delete All Files In The Current Directory And All Its Sub-directories
Date Posted: 07/02/2012

Ans: rm -r *

 
 
27Write A Command To Kill The Last Background Job?
Date Posted: 07/02/2012

Ans: Kill $!

 
 
28What Scheme Does The Kernel In UNIX System V Follow While?
Date Posted: 07/02/2012

Ans: Choosing a swap device among the multiple swap devices?
Kernel follows Round Robin scheme choosing a swap device among the multiple swap devices in Unix System V.

 
 
29In What Way The Protection Fault Handler Concludes?
Date Posted: 07/02/2012

Ans: After finishing the execution of the fault handler, it sets the modify and protection bits and clears the copy on write bit. It recalculates the process-priority and checks for signals.

 
 
30At What Mode The Fault Handler Executes?
Date Posted: 07/02/2012

Ans: At the Kernel Mode.

 
Showing 21 - 30 of 323 Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Next
Shadow Bottom
 
 
© 2005 - 2018 Krishna Training.
Designed & Developed By BitraNet