Krishna Logo
qa training in canada now
Divied
Call: Anusha @ 1 (877) 864-8462

 

Latest News
Home Navigation Divied
INTERVIEW Navigation Divied UNIX INTERVIEW QUESTIONS
Showing 261 - 270 of 324 Previous | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Next
UNIX INTERVIEW QUESTIONS
 
261What Is 'inode'?
Date Posted: 07/02/2012

Ans: Each file in UNIX has a unique number called as an inode. Using this number the file information like user, group, ownership and access mode information can be found. A files inode number can be found using the following command:
Ls –i
If the inode number is known, the following command can be used to get details of the file:
Ls –l

 
 
262What Is Use Of Sed Command?
Date Posted: 07/02/2012

Ans:
Sed command in UNIX is commonly used for processing of files. Sed stands for Stream Editor which parses text files and used for making textual transformations to a file. The command specified to Sed, is applied on the file line by line.
Example:
To replace all matching occurrences of some text to another.
sed -e 's/old data/new data/g' input Filename > output Filename
Here, g is global which replaces ALL occurrence

 
 
263What Are The Process States In Unix?
Date Posted: 07/02/2012

Ans:

Process states in Linux:
Running: Process is either running or ready to run
Interruptible: a Blocked state of a process and waiting for an event or signal from another process
Uninterruptible:- a blocked state. Process waits for a hardware condition and cannot handle any signal
Stopped: Process is stopped or halted and can be restarted by some other process
Zombie: process terminated, but information is still there in the process table.

 
 
264Brief About The Directory Representation In UNIX
Date Posted: 07/02/2012

Ans:
A directory in UNIX is a special file that the kernel maintains. Only the kernel modifies the directory while the processes read them. A directory in UNIX is a association between file names and I node and hence the directory content is nothing but a list of filename and inode number pairs. When a directory is created by the kernel, two entries are made; '.' referring to the directory itself) and '..' referring to parent directory.

 
 
265How Are Devices Represented In UNIX?
Date Posted: 07/02/2012

Ans:
Devices in UNIX are represented by files. These are special files located in the) dev directory. Hence in UNIX, every piece of hardware is a file. This device file allows us to access the hardware. For instance, the following command.
Less –f /dev/hda is not a file in the ‘real’ sense. When read, it is actually reading directly from the first physical hard disk of your machine.

 
 
266What Is Wild-card Interpretation?
Date Posted: 07/02/2012

Ans: When a command line contains wild-card characters such as ‘*’ or ‘?’, these are replaced by the shell with a sorted list of files whose pattern matches the input command. Wild-card characters are used to setup a list of files for processing, instead of having it specified one at a time.

 
 
267Write A Command That Will Allow A UNIX System To Shut Down In 15 Minutes, After Which It Will Perform A Reboot?
Date Posted: 07/02/2012

Ans: /sbin/shutdown –r +10.

 
 
268What Command Will Change Your Prompt To MYPROMPT?
Date Posted: 07/02/2012

What command will change your prompt to MYPROMPT?
Ans: To change a prompt, we use the PS1 command, such as this:
PS1 = ‘MYPROMPT:’
 

 
 
269What Does This Command Do? Cat Food 1 > Kitty?
Date Posted: 07/02/2012

What does this command do? cat food 1 > kitty?
Ans: it redirects the output of cat food into the file kitty; the command is the same as:
cat food > kitty

 
 

  Write a shell script that requests the user’s age and then echoes it, along with some suitable comment? Ans:  Echo Hello! What\’s your age\? Read age echo $age! I\’ll be obsolete by that age! ...  

 
Showing 261 - 270 of 324 Previous | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Next
Shadow Bottom
 
 
© 2005 -