Ubuntu Questions
Difference b/w find and locate command in ubuntu
Ans: Locate uses an internal database to look up indexed files. This database needs to be updated using the command 'updatedb' at regular intervals, so that you'll get more accurate results. Find just does a "normal" search, ie. it just goes through the given path(s) just when you want it to.
What is pipe command
Ans: It is used to filter the output of command, which then will be served as input to another command
eg. gem list | grep "r"
Will list all gems which contains "r" alphabet.You can perform more adequate search by including the regular expression using grep.
Wednesday, May 26, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment