Search for files in Unix
How-to, Linux, Mac OS X February 7th. 2008, 10:11amI am always having to search for the exact syntax on this command, so I want to document it. This command works on almost any any linux/unix including MacOS X/
find / -name “MyFavoriteFile”
Find is the actual command. The / is the start location. In this case, it means root of the drive, so find will search the entire volume. If you know the files is in a subdirectory, you can specify that. -name specifies to look for a name and then the filename must be in quote. Variables can be used like “*.txt”.
Related posts:
- Create a web filtering firewall with IPcop and URFilterWith the URLfilter addon installed, an IPcop firewall can be...
Related posts brought to you by Yet Another Related Posts Plugin.
