Tuesday, January 8, 2008

Linux Tip 3

The find command is very useful in a unix environment when one needs to find a certain category of files.For example if you have to find all the files and folders that match a pattern you can use it like that :
find /ThePathToTheSearchedDirectory -name 'picture*'
This way you can find all the files that start with 'picture'. You can find files like
picture01.png , picture02.png, picture03.png ... and you can take further actions on them.
The find command is far more complex than that.In order to learn more about a command use the man command :
Examples:

man find
man grep

etc.

No comments: