unix path details


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers unix path details
# 1  
Old 07-22-2008
MySQL unix path details

Greetings to everyone,
iam a new unix learner. i just jumped from windows to unix.
in my office iam accessing unix machine thro telnet.
i got this path details after executing the following command echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/mipl/bin.

can anyone explain, why this lengthier path, and what it means and in which location this path is saved.

/usr/kerberos/bin: ?
/usr/local/bin: ?
/bin: ?
/usr/bin:?
/usr/X11R6/bin:?
/home/mipl/bin. ?

please give me full details regarding path. so that i can understand the need of path.

Thanks in advance
Vijay,Smilie
# 2  
Old 07-22-2008
/bin is the traditional original location of executables. On modern systems, it is kept fairly small, mostly utilities which are absolutely essential.

/usr/bin is where most day-to-day utilities are installed. Traditionally, /usr was a separate partition, and you could not rely on it being mounted during early start-up.

/usr/local/bin is for locally installed binaries, as opposed to ones installed with the system, or (on modern Unices) via the package management system.

/usr/X11R6/bin is for graphical (X11) programs. I believe it is being phased out in favor of /usr/bin (at least on Debian/Ubuntu).

/home/mipl is probably your home directory, and if you add a bin subdirectory, any utilities you install there will be available to you without an explicit path.

/usr/kerberos is not well standardized, but seems to be a local or platform-specific directory for the Kerberos authentication system (possibly a local directory of binaries recompiled with Kerberos support)?
# 3  
Old 07-22-2008
Basically.....

The path is saved in the environment. Each shell will have some inherited copy of an environment which sets numerous parameters that affect the user. When you execute a command, the path determines where the system looks in order to find the executable. So, in your case, if you execute some command named checkHlrID.pl, the system will look for, in order,
/usr/kerberos/bin/checkHlrID.pl
/usr/local/bin/checkHlrID.pl
/bin/checkHlrID.pl
/usr/bin/checkHlrID.pl
/usr/X11R6/bin/checkHlrID.pl
/home/mipl/bin/checkHlrID.pl
./checkHlrID.pl

In your example that you gave, I believe there should be a : before the last . in the path. The . represents the current directory (where you are at that moment).

It will execute the first instance of the executable that it encounters. So, for instance, if checkHlrID.pl exists in /usr/local/bin and in /usr/X11R6/bin, the system will run the one in /usr/local/bin. If it gets through the entire path without finding a file by the name checkHlrID.pl then it will report that the command was not found. If a file is found by the name checkHlrID.pl but you do not have permission to execute it, then it will report that permission is denied.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Is it possible to get the database details in UNIX?

Hi, Sorry i can't find what particular forum should i post my question. I was given a username and password for the database, but i was not given the hostname, SID and the port to were i can connect to with. Is there a way for me to get the following details in unix, by the way i am using... (5 Replies)
Discussion started by: reignangel2003
5 Replies

2. UNIX for Dummies Questions & Answers

at -l doesnt give details of the scheduled job. How to get the details?

I have scheduled couple of shell scripts to run using 'at' command. The o/p of at -l is: $ at -l 1320904800.a Thu Nov 10 01:00:00 2011 1320894000.a Wed Nov 9 22:00:00 2011 1320876000.a Wed Nov 9 17:00:00 2011 $ uname -a SunOS dc2prcrptetl2 5.9 Generic_122300-54 sun4u sparc... (2 Replies)
Discussion started by: superparticle
2 Replies

3. UNIX for Advanced & Expert Users

UNIX / LINUX OS CPU configuration details

Hi, How to find the cpu configuration details of Cores, Speed MHz, virtual processors for the following servers: LINUX OS Servers: Linux 2.6.9-89.0.3.ELsmp #1 SMP Sat Jun 13 07:05:54 EDT 2009 i686 i686 i386 GNU/Linux. (Cores, Speed, Processor) Linux 2.6.18-164.el5 #1 SMP Tue Aug 18... (5 Replies)
Discussion started by: jagtheesh
5 Replies

4. UNIX for Dummies Questions & Answers

how to check SMTP server details on Unix

Hi All, I am trying to figure out how to check SMTP server details on Unix enviornment? I tried using echo "hello" | sendmail -v abc@xyz.com and got following error: -bash: sendmail: command not found -bash: echo: write error: Broken pipe Any help will be much appreciated regarding... (2 Replies)
Discussion started by: palak08
2 Replies

5. UNIX for Dummies Questions & Answers

cut file details from the path given

Hi, Filenames come as /DataStage/temp/ERT/infile/RU.ER.09.0106.txt in a file. I want to cut first 2 chars of the filename like RU, then next 2 like ER and next like 09 I tried using var=/DataStage/temp/ERT/infile/RU.ER.09.0106.txt echo $var|cut -f 1 -d .(dot) this gives... (2 Replies)
Discussion started by: harshada
2 Replies

6. Shell Programming and Scripting

Disk space details from Unix to Outlook

Hi Friends, I am using sun Solaris . I want to find the disk space (df -k) for the Unix box and the data has to be sent to an email id. Can u please find me a code that checks the disk space 6 times a day, loads the data into an excel sheet and sends to an email id. Can u also tell me how to... (2 Replies)
Discussion started by: sridharnr
2 Replies

7. Solaris

PATH details

I am using Solaris 10 Please tell me which path values are necessary for PATH= MANPATH= LD_LIBRARY_PATH= (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

8. Filesystems, Disks and Memory

how to find out unix server details

I like to find out Server Drive/Storage Specifications like Drive Size? Storage Type: Local or SAN ? Number of Processors: Processor Speed: Memory: please someone help me out how I can get from command line? Thanks you in advance (4 Replies)
Discussion started by: thopputhurai
4 Replies

9. UNIX for Advanced & Expert Users

missing Path(in UNIX) when i launch a job on to unix machine using windows SSh

hi i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies

10. UNIX for Dummies Questions & Answers

IP details for Unix/Linux login clients?

Hi there, I am wondering if by logging in to a unix system, if it is possible to get the IP address of the machine I am connecting FROM. I know how I can do this using the name server, but is this possible without a host lookup?:confused: Thanks, -ghoti (15 Replies)
Discussion started by: ghoti
15 Replies
Login or Register to Ask a Question