LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-17-2006, 08:40 AM   #1
uv2005
LQ Newbie
 
Registered: Dec 2005
Posts: 8

Rep: Reputation: 0
Adding directory to $PATH


Hi. I have Suse 9.1, and I'm new to Unix. I would like to add permanently a new directory to $PATH. When I write PATH=$PATH:/home/.... it remains only for the current session. I want it to be both in my normal login and in the su mode. What would be the way to do do that? Also (it may sound really dumb)- how can I use emacs (or any other programme) with a super user mode, so I can manipulate all kinds of files? I don't know how to use the KDE interface as a su. Thanks a lot.
 
Old 03-17-2006, 08:50 AM   #2
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
If you are using bash then (most common):
"/etc/profile" (global settings)
"~/.bash_profile" (user settings)
 
Old 03-17-2006, 09:39 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
And for using "kde as su":
Code:
kdesu


For an X-window general command (with gnome, Xfce,...):
Code:
sux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to rsynce the actual directory path instead of just the directory at the end of Niceman2005 Linux - General 5 04-08-2005 08:58 PM
adding to $PATH poiuytrewq Linux - Newbie 3 10-27-2004 02:32 AM
adding to path hamish Linux - Software 8 02-05-2004 11:03 PM
Adding to the $PATH chri5 Linux - Newbie 8 11-14-2003 11:38 AM
adding to $PATH snocked Slackware 17 08-26-2003 01:12 AM


All times are GMT -5. The time now is 04:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration