ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
   
 
Categories  >>  Software  >>  Operating Systems  >>  Unix  >>  Unix Commands
 
 


 

 
 Unix Commands interview questions  Unix Commands Interview Questions
 Unix Threads interview questions  Unix Threads Interview Questions
 Unix IPC interview questions  Unix IPC Interview Questions
 Unix Socket Programming interview questions  Unix Socket Programming Interview Questions
 Unix System Calls interview questions  Unix System Calls Interview Questions
 Unix General interview questions  Unix General Interview Questions
 Unix AllOther interview questions  Unix AllOther Interview Questions
Question
what is the function of grep command?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the function of grep command?
Answer
# 1
grep command is used to search a string or a keyword in a
file.
syntax:
grep 'keyword' file
 
Is This Answer Correct ?    5 Yes 3 No
Bharath
 
  Re: what is the function of grep command?
Answer
# 2
grep command let us find the desire pattern in given
statements or from contents of file.
SYNOPSIS:
$grep <pettern to search> <file name>
this will find the particular pattern.
 
Is This Answer Correct ?    7 Yes 0 No
Khemnath Chauhan
 
 
 
  Re: what is the function of grep command?
Answer
# 3
Grep will help us to display the particular information from
a file. For example.

grep apple fruitlist.txt

In this case, grep prints all lines containing 'apple' from
the file fruitlist.txt
 
Is This Answer Correct ?    3 Yes 0 No
Dhina
 
  Re: what is the function of grep command?
Answer
# 4
grep is used to filter or search for a pattern in the given
file.

for example
grep student class

will display only the lines that contains the word student
in it.
 
Is This Answer Correct ?    4 Yes 1 No
Kavin
 

 
 
 
Other Unix Commands Interview Questions
 
  Question Asked @ Answers
 
How do you find which version and name of unix you are using at the command prompt?  7
distinguish between user mode and kernel mode? Infosys4
what is the difference between relative path and absolute path?  7
How does a user get the current date, time in UNIX? IBM4
How to install scsi driver in unix? give me explanation clearly? HCL1
Briefly, how do you install Oracle software on UNIX.  2
Give command that will make the file "run.sh" executable? IBM9
in UNIX,How to copy file into directory?  4
what is the difference between npar and vpar in HP-UX? CSC1
Assume that a file’s permissions give you read and write access. What operations can you perform on the file if it is in a directory which has “r”(read) only process? What operations can you perform on the file if it is in a directory which has “x”(execute) only access?  1
what is difference between unix and linux? Shell6
what is telnet?  5
 
For more Unix Commands Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com