mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Oct. 13 2005,16:00 |
|
The "locate" command is a good way to find all paths containing a particular string. Unfortunately there is no locate database in DSL, due to disk space concerns. You can build one with the updatedb command (might require gnu-utils.dsl?) and then use "locate firefox" to find all files that include the string "firefox" in their paths.
Another way is to use the "find" command, which is similar to locate but does not use a database so it will be slower. find /path -name *firefox*
Still another way is using "type -p" or "which" to find program executables in your path. Once you find where the executable is, it's faily easy to find the rest of its files. For example, if you did "which xmms", it would return "/usr/bin/xmms" which tells you that the program is installed in /usr instead of /usr/local or /opt. From there you can look in the etc, share, and lib subdirectories of /usr for files (usually folders) named "xmms".
There are also some personal config files in /etc/skel...i forgot to mention that earlier.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|