GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

Unix Interview Questions


Unix Interview Questions

Questions: 72
Comments: 213
 Unix Tags
 Showing Questions 61-70 of 73 Questions
<< Previous 3 4 5 6 [7] 8 Next >>
 Sponsored Links

 
 Unix Interview Questions
Sorting Options :  

Which command is used to delete all files in the current directory and all  its sub-directories?
rm -r * 

Kill $! 
Latest Answer: To kill the last background job, the following command is used:$ kill $!The system variable $! stores the PID of the last background job.The other method is first find the PID using the ps command, then use kill command to do the job. ...

Cat displays file contents. If the file is large the contents scroll off the screen before we view it. So command 'more' is like a pager which displays the contents page by page. 
Latest Answer: The cut command cuts bytes, characters, or fields from each line of a file and writes these bytes, characters, or fields to standard output. If you do not specify the File parameter, the cut command reads standard input.The more command reads files and ...

‘grep’ is a pattern search command. It searches for the pattern, specified in the command line with appropriate option, in a file(s). Syntax :      grep Example :    
Latest Answer: Grep - stands for Globally Search a Regular Expression and Print. It is used to search a given string/pattern under the given path and list out all the occurances of it in a file or set of files. Following are the options available for grep ...

cmp - Compares two files byte by byte and displays the first mismatchdiff - tells the changes to be made to make the files identical  
Latest Answer: 'cmp' and 'diff' both command are used to list the differences, the difference between both the command is that 'cmp' is used to find the difference between files whereas 'diff' is used to find the difference between directories.cmp ...

After the command line is terminated by the key, the shel goes ahead  with processing the command line in one or more passes. The sequence is well defined and assumes the following order.Parsing: 
Latest Answer: when processing a command the searchs for the utility for the command in the directories specified in the PATH varible and it in invokes that utility. That utility will execute the command with help of kernel and the output is given to shell. And then ...

is the output redirection operator when used it overwrites while >> operator appends into the file. 
Latest Answer: ">" operator redirects the output to a file, if the file already existst and contains some data in it, the ">" would cause the data over written with new data.">>" Redirects the output to be appened to the end ...

How is the command “$cat file2 “ different from “$cat >file2
Both the commands mean the same , the file file1 is read and its contents are copied to file2 

Ans:  manA filter is a program which can receive a flow of  data from std input, process (or filter) it and send the result to the std output. 
Latest Answer: man and cat ...

ls becomes the input to wc which counts the number of lines it receives as input and instead of displaying this count , the value is stored in file1. 
Latest Answer: first ls command will list all the files in the current dir.thenthat result is fed to wc -l which will count the number of lines fed by the input(ie ls ),now finally the result which is the number of lines is fed to the file1. ...

View page << Previous 3 4 5 6 [7] 8 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Expert Members
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
Sponsored Links

 
Free White Papers & Software


Vulnerability Management
for Dummies eBook

 


 

Request Your Copy
 



Free: 60-Day Trial
Microsoft Office Project

 


 

Request Now
 



The 7 Things that
IT Security Professionals
MUST KNOW!

 


 

Request Your Free eBook

 
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape