Solved

PATH for COMMAND

Posted on 2000-02-14
6
247 Views
Last Modified: 2010-04-21
How can I get the full path for a command if it is in the PATH ?

Andrew
0
Comment
Question by:andrewyu
6 Comments
 
LVL 3

Accepted Solution

by:
slok earned 0 total points
ID: 2521130
type
echo $PATH

it will show you everything inside
the path.
0
 
LVL 84

Expert Comment

by:ozo
ID: 2521910
`which command`
0
 

Author Comment

by:andrewyu
ID: 2522554
YES, I want to get "which" !

Thank you very much !

Andrew
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 3

Expert Comment

by:slok
ID: 2523041
personally, I think the marks should go to ozo as well.

his suggestion is definitely better and more useful.
0
 

Expert Comment

by:cartoon022100
ID: 2551429
"whereis" will also show
0
 

Author Comment

by:andrewyu
ID: 2552597
Thank you very much !

Andrew
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question