![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get the path of a file in UNIX? | smr_rashmy | UNIX for Dummies Questions & Answers | 14 | 05-14-2008 07:34 AM |
| Unix Career Path | NycUnxer | What's on Your Mind? | 5 | 10-23-2007 11:48 AM |
| How to set path for java in UNIX | subhotech | UNIX for Dummies Questions & Answers | 2 | 07-12-2007 11:57 AM |
| missing Path(in UNIX) when i launch a job on to unix machine using windows SSh | megastar | UNIX for Advanced & Expert Users | 1 | 11-04-2005 07:36 AM |
| UNIX PATH info required PLEASE HELP (I'm new to unix) | akitachi | UNIX for Dummies Questions & Answers | 1 | 05-10-2002 03:37 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
PATH issue
thanks for reply, but i want to know what is defect precedence between /usr/local/bin and /usr/bin as per unix standard. because i have 2 different env with different precedence and tar is different in both these bins.
|
|
||||
|
There is no standard default precedence. Every Unix based OS have their own PATH preferences. Typically /bin will have higher precedence than the /usr/bin which in turn will have a higher precedence that /usr/local/bin. In order to find out what is the value of the PATH variable in your case you can type the following command at your shell prompt.
Code:
echo $PATH |
|
|||||
|
Here is some story on using command from diferent path ---
I am not agree on precedence of path ,It is all how your OS is (64 bit/32 bit) and how your file system size. Example -- I have ls , and rm command in /bin directory also in /usr/bin directory If you will try to remove a file or list a file which is more then 2GB with simple using the ls or rm command you wont be able to do that if your path sequence is /bin:/usr/bin Your command will fail. But when the sequence will /usr/bin:/bin the command will work ? Reason : --- Command from /usr/bin directory are large file aware and can access size more then 2^31 -1 While command of /bin directory can access a file size of max 2^31-1 size that is around 2GB not more then that. It all depend your requirement and put the file in PATH for precedence . Hope you got some idea |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|