LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-05-2013, 11:53 PM   #1
TechJay
LQ Newbie
 
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27

Rep: Reputation: Disabled
Double check this ?


Code:
mkdir data
su -
chown jb:users data
chmod g+s /home/jb/data
exit
i checked
Code:
echo $path
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
Code:
echo $PATH
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 ?
 
Old 03-06-2013, 12:02 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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.
Old 03-06-2013, 12:06 AM   #3
TechJay
LQ Newbie
 
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27

Original Poster
Rep: Reputation: Disabled
Thumbs up

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
 
Old 03-06-2013, 12:10 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Thanks.

Hope you're following some guides. If not, find here some best guides for learning.
 
1 members found this post helpful.
Old 03-06-2013, 12:14 AM   #5
TechJay
LQ Newbie
 
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-06-2013, 01:00 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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.
Old 03-06-2013, 01:16 AM   #7
TechJay
LQ Newbie
 
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27

Original Poster
Rep: Reputation: Disabled
well hopefully someone benefits from my questions... i feel like they are to simple and not worthy of a post haha
 
Old 03-06-2013, 01:19 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
This is a good tutorial http://rute.2038bug.com/index.html.gz
 
1 members found this post helpful.
Old 03-06-2013, 01:50 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by shivaa View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please double check my partitioning scheme aquaboot Debian 8 12-18-2012 01:04 PM
double check malikah Programming 1 07-13-2008 07:10 PM
can someone double check these computer components for me please Nonc Linux - Hardware 5 01-10-2008 07:48 PM
Could someone double check my plan? rayber2000 Linux - Networking 2 03-02-2005 08:20 AM
Partition check, check double check Vincentius Linux - General 0 12-25-2004 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration