Solution Concepts

OS - Linux - Search

 

"Making IT happen on the
Information Superhighway"

 

2600 | Antionline | Astalavista | Blacklisted 411 | Crypto-Gram | Defcon | Geeks Are Sexy | IT Conversations | Shoutwire | Slashdot | Tech Tales | The Daily WTF |

Forums | Linux | News |Telephone | Windows |

 
Software
Step-By-Step
Werzit
Linux Documentation Project > How To Documents
Linux TCO calculator

 

Find

Find Options
  • -name (Search for files with a given name)
  • -perm (Search for files with given permissions)
  • -type (Search for files of a certain type)
  • -print (Tells find to output the location to the screen)

 

Grep

 

 

Is Something Installed?

 
  • Need to be root
    Type application name then -V
  • This will report the version
  • It cannot work if the application is not installed
  • # smbd -V
  •  

 

Locate

 
  • The locate command is faster and causes less of a strain on the system because it searches through an index of all files stored on the hard drive in a file called locatedb.
  • This file is usually updated daily by a cron job that runs the updatedb command. The database may be refreshed at any time by running updatedb as well. The downside to this command is that new files may not be in the database yet, or the updating of the database may consume vital system resources to bring it up to date.

 

Searching in Linux

also see Grep

 

View Files

 
  • Less
    The less command allows you to scroll through data, searching for values, moving up and down through the data. The less command is far more powerful than the more command

 

Whereis  
  • Whereis identifies command locations
  • $ whereis calc.exe
  • $ whereis mspaint.exe
  •