If a software is installed on a Linux system, we can determine it through the following three methods.
I. Which command
The shell's which command can be used to find out whether the command is already in the search path. For example:
[Root @ localhost ~] # Which gcc
/Usr/bin/GCC
Ii. whereis command
The whereis command searches for a wider range of System directories, regardless of the shell search path. Note that the which command On some systems does not display files that the user has no execution permission.
[Root @ localhost ~] # Which ipppd
/Sbin/ipppd
[Root @ localhost ~] # Whereis ipppd
Ipppd:/sbin/ipppd/usr/share/man/man8/ipppd.8.gz
Iii. Locate command
This command first examines the index of a pre-compiled file system to determine the file name that matches the specific pattern. It does not search for specific commands or software packages, but any types of files that can be found.
The database library of locate is usually regenerated by the updatedb command every night. This command is run by cron. Therefore, the result of executing a locate operation does not always reflect recent changes in the file system.
For example, view the header file signal. h.
[Oracle @ localhost ~] $ Locate signal. h
Warning: locate: cocould not open database:/var/lib/slocate. DB: no such file or directory
Warning: You need to run the 'updatedb' command (as root) to create the database.
Please have a look at/etc/updatedb. conf to enable the daily cron job.
[Oracle @ localhost ~] $ Su-Root
Password:
[Root @ localhost ~] # Updatedb
[Root @ localhost ~] # Locate signal. h
/Usr/src/kernels/2.6.9-78. EL-i686/include/Linux/signal. h
/Usr/src/kernels/2.6.9-78. EL-i686/include/asm-i386/signal. h
/Usr/src/kernels/2.6.9-78. EL-smp-i686/include/Linux/signal. h
/Usr/src/kernels/2.6.9-78. EL-smp-i686/include/asm-i386/signal. h
/Usr/src/kernels/2.6.9-78. EL-hugemem-i686/include/Linux/signal. h
/Usr/src/kernels/2.6.9-78. EL-hugemem-i686/include/asm-i386/signal. h
/Usr/share/doc/SDL-devel-1.2.7/html/sdlcondsignal.html
/Usr/share/man/man0p/signal.h.0p.gz
/Usr/include/valgrind/pub_tool_libcsignal.h
/Usr/include/ASM/signal. h
/Usr/include/sys/signal. h
/Usr/include/Linux/signal. h
/Usr/include/glib-2.0/gobject/gsignal. h
/Usr/include/Boost/signal. HPP
/Usr/include/signal. h
Compiled from Linux System Management Manual
------------------------------------------------------------------------------
Blog: http://blog.csdn.net/tianlesoftware
Online Resources: http://tianlesoftware.download.csdn.net
Video: http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx
Dba1 group: 62697716 (full); dba2 group: 62697977 (full)
Dba3 group: 62697850 super DBA group: 63306533;
Chat group: 40132017
-- Add the group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, the application is rejected.