09-26-2006
Looks like that is a command specific to FreeBSD - you can use one of the following as replacements.
find
which
whereis
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
In our unix environment I'm not able to locate where ssh is located.
can any one guide me in finding the location of this tool. (5 Replies)
Discussion started by: bishweshwar
5 Replies
2. Shell Programming and Scripting
I am a newbie in shell scripting and I need to produce a script to work and achieve the following:
1) Look into the file /etc/defaultrouter , and store the value in it
2) If the value is a number, go to LIST and print out the second column corresponding to the value.(eg London)
3) If the... (5 Replies)
Discussion started by: ibroxy
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am aware of the command locate/slocate. But when I try to search the file which is located in /tmp. Its not able to get it. I tried by updating the database also with the command updatedb.
Is there any consern that the command 'locate' dont check /tmp???
And I knew that locate is the... (5 Replies)
Discussion started by: praveen_b744
5 Replies
4. Linux
I m new to the linux environment.Help me with ur suggestions.
How can i obtain the file names alone from ls -ltr output??
And those files should have been created before three months and earlier than that..
Thanks and wishes,
Rupaa. (8 Replies)
Discussion started by: Rupaa
8 Replies
5. AIX
Hello to all,
Can I use the "locate" command on AIX 5.3 like on Linux.
If yes what packages should I install and where can I find them.
Thanks,
Enid (9 Replies)
Discussion started by: enux
9 Replies
6. UNIX for Dummies Questions & Answers
Hi
The locate command searches the pattern in all the directories.
How can i make it look in for a specific directory because i know the
directory in which the file exists.
Thanks (1 Reply)
Discussion started by: 2002anand
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am a frequent user of loacate in linux and really impressed with its speed and accuracy.
I would like to know if there is any such equivalent in UNIX. (not the find, which is relatively very slow)
Any locate packages which can be made available in UNIX(HP-UX) for this?
TIA,... (4 Replies)
Discussion started by: pradebban
4 Replies
8. Red Hat
my os details as follow
bash-3.2$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
I run the following and encounter the following error
bash-3.2$ mysqlhotcopy -?
Can't locate DBI.pm in @INC (@INC contains:... (5 Replies)
Discussion started by: jediwannabe
5 Replies
9. UNIX for Advanced & Expert Users
Hello,
We have a process on our Linux RedHat machine creating symbolic links and moving around some files from domain to domain. The issue is that the programmer has left a long time ago and nobody knows how the program is called, where it is and how the scheduling is setup. It runs every day for... (7 Replies)
Discussion started by: Indalecio
7 Replies
10. Shell Programming and Scripting
I making a script to restore apache from a configuration_backup tar.
For now i want at the beginning of the script that you can make a choice to choose one of the configuration_backup tars.
I use this code now:
`locate /restore/configuration/configuration_backup*`
But if i use this i get... (1 Reply)
Discussion started by: dannyvdberg
1 Replies
WHICH(1) BSD General Commands Manual WHICH(1)
NAME
which -- locate a program file in the user's path
SYNOPSIS
which [-as] program ...
DESCRIPTION
The which utility takes a list of command names and searches the path for each executable file that would be run had these commands actually
been invoked.
The following options are available:
-a List all instances of executables found (instead of just the first one of each).
-s No output, just return 0 if any of the executables are found, or 1 if none are found.
Some shells may provide a builtin which command which is similar or identical to this utility. Consult the builtin(1) manual page.
SEE ALSO
builtin(1), csh(1), find(1), locate(1), whereis(1)
HISTORY
The which command first appeared in FreeBSD 2.1.
AUTHORS
The which utility was originally written in Perl and was contributed by Wolfram Schneider <wosch@FreeBSD.org>. The current version of which
was rewritten in C by Daniel Papasian <dpapasia@andrew.cmu.edu>.
BSD
June 21, 2002 BSD