![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics 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-20-2007 01:52 AM |
| 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 11:20 AM |
| Network Path Not Found Error "Sunfire V100" | louisd11 | SUN Solaris | 4 | 12-13-2006 01:20 PM |
| Why is it Bad Idea to insert "." (Dot) to PATH ? | amitbern | UNIX for Dummies Questions & Answers | 2 | 11-07-2005 12:12 PM |
| Adding "Private" to path name | roadrunnerray | UNIX for Dummies Questions & Answers | 5 | 10-15-2004 11:33 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate 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? |
|
|||||
|
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 07:50 AM.. |
|
||||
|
Quote:
If you want to know which Shell use now ,you can enter : echo $SHELL then modfiy this shell's configure file(.bashrc,.cshrc....) and soruce(.) it ! |
|
||||
|
"which" searches the directories in your PATH for the mysql command and reports:
Code:
no mysql in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /Users/timo/usr/local/ /usr/local/bin Code:
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" hope this helps |
|
||||
|
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. ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|