TMD Vision

Avatar

Searching in Linux

This is my first post in the Tips & Tricks category. It is the intention to regularly post some interesting articles about how to accomplish certain tasks. You can look at them as micro howto’s if you will :).

Anyway, I regularly encounter some problems when configuring our servers or implementing some web application. Maybe some of you encounter the same problems as I sometimes do. If anyone has an interesting tip or article please let me know and I will link to it.

As my knowledge is not anywhere near a “Linux guru”  I regularly forgot how to perform searches on Linux systems. Actually it is very easy and I should remember it ;).

To search for a file named ‘myfile.ext’ you simply enter

> find / -name myfile.ext

It will give you a list of all found matches on your file system. The above example searches your whole filesystem tree (from the root). To search in a specific directory only you may enter

> find /home/myuser/docs/ -name mydocument.odf

For a complete list of handy tricks for the ‘find’ command please see http://content.hccfl.edu/pollock/Unix/FindCmd.htm

Laatste 5 berichten door Jeroen

Share and Enjoy:
  • del.icio.us
  • Twitter
  • Google Bookmarks
  • RSS
  • Facebook
  • eKudos
  • email
  • NuJIJ
blog comments powered by Disqus

TwoMenDesign

Bezoek ook eens TwoMenDesign.nl