Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.


  Search this Thread
Old 12-03-2012, 01:42 PM   #1
LQ Newbie
Registered: Dec 2012
Posts: 2

Rep: Reputation: Disabled
How to remove a "single dot" entry in $PATH on openSuSe 11.4 ?

Hello @ all !

Iīm using openSuSE 11.4 and would like to remove the entry " . " in $PATH.
I donīt know how it came in there ...

by searching several files in the /etc dir like bash.bashrc, profile... i did not find the entry for the single dot ( that is to make any programs / scripts executable from the working directory)

May anybody help me up to find the entry that loads the . in $PATH ?


Old 12-03-2012, 02:08 PM   #2
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,235

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
you can maybe look in the home dir for files like .profile, .bash_profile, .bashrc, ...

else maybe you can re-assign $PATH by adding a line to the end of your .bash_profile.
Old 12-03-2012, 02:38 PM   #3
LQ Veteran
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,340
Blog Entries: 36

Rep: Reputation: Disabled
per the man page:
check /etc/profile

I found one, YMMV:
# For non-root users, add the current directory to the search path:
if [ ! "`id -u`" = "0" ]; then

Last edited by Habitual; 12-03-2012 at 02:39 PM.
Old 12-03-2012, 02:58 PM   #4
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
See /etc/profile.d/ which reads from /etc/sysconfig/suseconfig
1 members found this post helpful.
Old 01-04-2013, 12:28 PM   #5
LQ Newbie
Registered: Dec 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up

Exactly that was it. In /etc/sysconfig/suseconfig they ( the suse people) say that was the standard setting since years. I didn`t know that.

Thank you very much for all replies !!!



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
[SOLVED] Grabbing the last field of a delimited entry without using "awk" or "sed" drandre Linux - Newbie 17 04-18-2012 11:54 PM
remove "Suspend" and "Hibernate" from the "Shut Down" applet cccc Debian 2 05-02-2011 11:05 AM
[URGENT]how to remove "../.." from a path vikashtulsiyan Programming 3 08-29-2008 08:00 PM
Remove a "ghost" entry in Devices Honkeychops Mandriva 1 08-27-2007 01:25 AM
No UTMPX entry, You must EXEC "login" for the lowest "shell" ooihc Solaris / OpenSolaris 7 03-12-2007 03:09 PM > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 01:14 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