Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-17-2006, 07:40 AM   #1
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, 07:50 AM   #2
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, 08:39 AM   #3
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 56
And for using "kde as su":

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


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 07:58 PM
adding to $PATH poiuytrewq Linux - Newbie 3 10-27-2004 01:32 AM
adding to path hamish Linux - Software 8 02-05-2004 10:03 PM
Adding to the $PATH chri5 Linux - Newbie 8 11-14-2003 10:38 AM
adding to $PATH snocked Slackware 17 08-26-2003 12:12 AM > Forums > Linux Forums > Linux - Newbie

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

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