Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-05-2013, 11:53 PM
|
#1
|
|
LQ Newbie
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27
Rep: 
|
Double check this ?
Code:
mkdir data
su -
chown jb:users data
chmod g+s /home/jb/data
exit
i checked and saw the data directory
i checked
Code:
cat /etc/group | cut -d: -f1
and saw the users group
are these valid ways to check ?
also
Code:
export PATH=$PATH:/HOME/jb/data
i checked and got:
sbin:/home/jb/bin:/HOME/jb/data
is this correct ?
and if so how do i put it in .bash_profile ?
manually write with VIM ?
|
|
|
|
03-06-2013, 12:02 AM
|
#2
|
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,617
|
Take a note, that Unix is a case-sensitive operating system, so home and HOME both have different meanings.
Code:
~$ export PATH=$PATH:/HOME/jb/data
...is wrong. Instead use:
Code:
~$ export PATH=$PATH:/home/jb/data
OR
~$ export PATH=$PATH:$HOME/data
As already suggested you in your previous thread, in order to make it permanant, just add this line (either manually using vi or vim or use below cmd) at the end of .bashrc or .bash_profile or even .profile, as follow:
Code:
~$ echo "export PATH=$PATH:/home/jb/data" >> .bashrc
OR
~$ echo "export PATH=$PATH:/home/jb/data" >> .bash_profile
Rest thing you've done seems ok.
Last edited by shivaa; 03-06-2013 at 12:06 AM.
Reason: Little typo
|
|
|
1 members found this post helpful.
|
03-06-2013, 12:06 AM
|
#3
|
|
LQ Newbie
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27
Original Poster
Rep: 
|
i wasnt sure if that was legal since i did the echo $SHELL and i was bash.. i dont know my way around enough to experiment a whole lot because im still learning how to verify everything im doing. Appreciate your help... you always answer my stuff quick, thanks
|
|
|
|
03-06-2013, 12:10 AM
|
#4
|
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,617
|
Thanks.
Hope you're following some guides. If not, find here some best guides for learning.
|
|
|
1 members found this post helpful.
|
03-06-2013, 12:14 AM
|
#5
|
|
LQ Newbie
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27
Original Poster
Rep: 
|
Ive been mainly google'N and asking you for 2 nights haha... i have some practice stuff im going through from an intro class i took as an elective... I have a book called Guide to linux+ certification ive been reading some.
you should msg me on sykpe: JDzSaVaGe so i dont have to keep posting threads
Anyhow, thanks for the link
Last edited by TechJay; 03-06-2013 at 12:15 AM.
|
|
|
|
03-06-2013, 01:00 AM
|
#6
|
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,617
|
Thanks. To be honest, I don't use skype and don't even know how to use it. Also instead of any personal messaging, you should keep posting your doubts or problems here on LQ itself, so others can also be benefited.
We will be happy to help you.
|
|
|
1 members found this post helpful.
|
03-06-2013, 01:16 AM
|
#7
|
|
LQ Newbie
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27
Original Poster
Rep: 
|
well hopefully someone benefits from my questions... i feel like they are to simple and not worthy of a post haha
|
|
|
|
03-06-2013, 01:19 AM
|
#8
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 14,996
|
|
|
|
1 members found this post helpful.
|
03-06-2013, 01:50 AM
|
#9
|
|
Senior Member
Registered: Jan 2009
Location: Japan
Distribution: Debian
Posts: 3,600
|
Hi,
Quote:
Originally Posted by shivaa
As already suggested you in your previous thread, in order to make it permanant, just add this line (either manually using vi or vim or use below cmd) at the end of .bashrc or .bash_profile or even .profile, as follow:
Code:
~$ echo "export PATH=$PATH:/home/jb/data" >> .bashrc
OR
~$ echo "export PATH=$PATH:/home/jb/data" >> .bash_profile
|
Oops, be careful with your quotes here: Eg
Code:
echo 'export PATH="$PATH:/home/jb/data"' >> .somewhere
You probably also don't want to hard code the home dirctory. So:
Code:
echo 'export PATH="$PATH:$HOME/data"' >> .somewhere
Evo2.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:34 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|