WHICH(1) General Commands Manual WHICH(1)NAME
which - locate a command
SYNOPSIS
which [-a] filename ...
DESCRIPTION
which returns the pathnames of the files (or links) which would be executed in the current environment, had its arguments been given as
commands in a strictly POSIX-conformant shell. It does this by searching the PATH for executable files matching the names of the argu-
ments. It does not canonicalize path names.
OPTIONS -a print all matching pathnames of each argument
EXIT STATUS
0 if all specified commands are found and executable
1 if one or more specified commands is nonexistent or not executable
2 if an invalid option is specified
Debian 29 Jun 2016 WHICH(1)
Check Out this Related Man Page
ldd(1) General Commands Manual ldd(1)NAME
ldd - List dynamic dependencies of executable files or shared objects
SYNOPSIS
ldd [-rdV] filename
OPTIONS
Prints warnings for any unresolved data symbol references that would occur as a result of filename being executed. (Checks references to
only data objects, not functions.) Prints warnings for any unresolved symbol references that would occur as a result of filename being
executed. (Checks references to both data objects and functions.) Displays the version of the ldd command.
DESCRIPTION
The ldd command lists the dynamic dependencies of an executable file or shared object: If filename is an executable file, ldd lists the
pathnames of all shared objects that would be loaded as a result of executing filename. If filename is a shared object, ldd lists the
pathnames of all shared objects that would be loaded as a result of loading filename. The ldd command expects shared objects to have exe-
cute permission, and if this is not the case, it will issue a warning before attempting to process the file.
NOTES
The ldd command does not list shared objects explicitly attached by using dlopen().
The ldd command prints the record of shared object pathnames to stdout. The optional list of symbol resolution problems are printed to
stderr.
EXIT STATUS
If filename is not an executable file or a shared object, a non-zero exit status is returned.
EXAMPLES
The following command lists the static dependencies of libXm.so: ldd /usr/shlib/libXm.so The following command lists the static dependen-
cies of libXm.so as well as any unresolved symbol in libXm.so or any of its dependents: ldd -r /usr/shlib/libXm.so
SEE ALSO loader(5)ldd(1)
hii all.
I have to get the date of the 7th day past from the current date.
if i give the current date as sep 3 then i must get the date as 27th of august.
can we get the values from the "cal" command.
cal | awk '{print $2}' will this type of command work.
actually my need is
if today is... (17 Replies)
hey every1, i am a very new shell programmer. what i am trying to do is to rename a music file using its metadata(using mminfo)
the problem is, mminfo's output is very weird:
my final filename should be "$artist - $title"
however, when i use
artist=` mminfo ~/Desktop/It\'s\ Not\ My\... (16 Replies)
I am on Solaris 10
cat /etc/release
Solaris 10 10/09 s10x_u8wos_08a X86
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 September 2009 (16 Replies)
Hi,
I've got a query regarding which of the following is more efficient & why -
cat <filename>|cut -d'*' -f2- > <newfilename>
or
cut -d'*' -f2- <filename> > <newfilename>
Thanks. (17 Replies)
Hi, Im not a unix person but need to analyse some data.
This is bat data (animals) from large roosts using data loggers.
I think AWK is probably the best thing to use but dont really know so any help appreciated.
(python, grep) whichever it is, I'll have to learn it!
here is an example of... (27 Replies)
SunOS 5.10 Generic_142900-15 sun4v sparc SUNW,T5240
how can i check the storage type being used in unix solaris sparc system?
please help me its urgnet..
thank you (22 Replies)
Hello,
I tried searching through lot of threads for a solution but couldn't fetch the exact solution, so I am creating a new thread.
I am trying to connect to a FTP server
1) using a simple FTP command, it gives the error :
534 Policy requires SSL.
Login failed.
2) using SFTP... (19 Replies)
Hi ,
I wants to create the bash script for deleting the specified 2gb file and wants to take the backup before doing that.
please help me how to do the same,I use RHEL5 server (22 Replies)
Hello
I am using a grep command with two patterns in my KSH script. File has line breaks in it and both the patterns are in different lines. Here is the command grep -l 'RITE AID.*ST.820' natriter820u.20140914
Pattern1 - RITE AID
Pattern2 - ST*820
I am not getting any results from... (24 Replies)
I have a test file a.txt
001 123 456 789
002 This is just a
001 test data
003 file.
I want to clear columns 5 and 6 if the first 3 characters are 001 using awk.
I tried following but does not work. Any suggestions?
awk 'BEGIN{OFS=FS=""} {if (substr($0,1,3)=="123") $5=" "; $6="... (20 Replies)
I have Linux x86_64 x86_64 x86_64 GNU/Linux
I thought that Linux can use only bash shell
however, when I wrote the code:
#!/bin/sh
NAME=`basename $0 .sh`
Today=`date '+%Y%m%d'`
TIMESTAMP=`date +%H:%M:%S`
LOCAL_SERVER=`hostname`
let countcla=0
countcla=`expr ${countcla} + 1`
... (18 Replies)
Remove duplicate lines which has been repeated 4 times attached test.txt
below command tried and not getting expect output.
for i in `cat test.txt | uniq`
do
num=`cat test.txt | grep $i | wc -l`
echo $i $num
done
test.txt
... (17 Replies)
Hello All,
I was thinking to start this POLL, sometime back but couldn't get time so starting it today. So we all work either as an Admin or as a Developer or as a QA etc. So let's have a thread(POLL) where we could share our experiences(if it doesn't come anyone's privacy category) so that we... (17 Replies)
Most of the people think that they can not use Unix as desktop.
By this poll we gone tell them that we not just use Unix as desktop but also love different display managers like GNOME, KDE etc..... (35 Replies)