![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-19-2007 09:52 PM |
| Same ol "no acceptable cc found in $PATH" but I'm not clueless... just still a noob | SloYerRoll | UNIX for Dummies Questions & Answers | 4 | 10-22-2007 07:20 AM |
| Network Path Not Found Error "Sunfire V100" | louisd11 | SUN Solaris | 4 | 12-13-2006 09:20 AM |
| Why is it Bad Idea to insert "." (Dot) to PATH ? | amitbern | UNIX for Dummies Questions & Answers | 2 | 11-07-2005 08:12 AM |
| Adding "Private" to path name | roadrunnerray | UNIX for Dummies Questions & Answers | 5 | 10-15-2004 07:33 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hello,
I am new to this board and I have several questions: For two days now I've been trying to add a variable to my "path" -- without any success. What I want to do is add the path for my MySQL database to my "path" so I can access it from anywhere. Why is this such a hard thing to do in UNIX? Everybody recommends something else. WHERE do I have to add the path. Is the file called ".bash-profile" or ".cshrs" or ".shrs" or ".profile" or what? And, if you can give me an ultimate answer to my question, where exactly is this file located on the system? I have been a computer science student at uni for 3 years now, but nothing has ever caused me so much trouble. Such an easy task, but so hard to do, so many possible combinations!! Why?? Can anybody tell me how to do it? |
| Forum Sponsor | ||
|
|
|
||||
|
About UNIX shell differences and overview pls read THIS And about .profile, .login files, these files are located in user's home directory, which is most probably /home/username, list the contents of user's home directry with ls -a and you can see these files there. And which file to modify, its very simple not so complex, check the login shell of user with command:
Code:
cat /etc/passwd | grep username admin:x:101:1:Tayyab:/home/username:/usr/bin/ksh Hope it helps! Best Regards, Tayyab Last edited by tayyabq8 : 05-22-2006 at 03:50 AM. |
|
|||
|
Quote:
PATH=$PATH:$HOME/usr/local/ But when I type "which mysql" <enter> I still get this: no mysql in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /Users/timo/usr/local/ /usr/local/bin Can it be that there are different files setting my path? I can't really see a connection between the path I set and the error message I get. ![]() |
|||
| Google UNIX.COM |