LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 12-03-2003, 02:52 PM   #1
jsfour
Member
 
Registered: Dec 2003
Posts: 32

Rep: Reputation: 15
rewriting my files


hey guys slackware keeps rewriting my profile file...how do i get it so i can keep the aliases i put in there?
 
Old 12-03-2003, 02:53 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
What exactly do you mean by
"keeps rewriting my profile file"?

Which file, how do you modify it?


Cheers,
Tink
 
Old 12-03-2003, 03:05 PM   #3
jsfour
Member
 
Registered: Dec 2003
Posts: 32

Original Poster
Rep: Reputation: 15
ok mabie not rewriting...the lines are still there its just not executing when i log in..btw i use the Xlogin manager. What happens is none of my aliases work in aterm...and the prompt is 'bash-2.05b$' unless i . /etc/profile

Last edited by jsfour; 12-03-2003 at 03:10 PM.
 
Old 12-03-2003, 03:07 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
*sigh*

Which file are you talking about?



Cheers,
Tink
 
Old 12-03-2003, 03:11 PM   #5
jsfour
Member
 
Registered: Dec 2003
Posts: 32

Original Poster
Rep: Reputation: 15
Re: rewriting my files

Quote:
Originally posted by jsfour
profile file
/etc/profile
 
Old 12-03-2003, 03:19 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
That a problem of your terminal program, or rather
how you invoke it....


Try
man bash
/\/etc\/profile

Read that, continue with n

The fool-proof approach would be to have your
customisations in ~/.bashrc, and create a ./bash_profile
that only checks for the existence of ~/.bashrc
and sources it.


Or, if you want the aliases systemwide, leave them
in /etc/profile and source that from ~/.bashrc


Cheers,
Tink
 
Old 12-03-2003, 04:19 PM   #7
jsfour
Member
 
Registered: Dec 2003
Posts: 32

Original Poster
Rep: Reputation: 15
thanks it worked....
 
Old 12-03-2003, 04:24 PM   #8
jsfour
Member
 
Registered: Dec 2003
Posts: 32

Original Poster
Rep: Reputation: 15
is there any way for me to change the localhost to the current directory
 
Old 12-03-2003, 04:30 PM   #9
jsfour
Member
 
Registered: Dec 2003
Posts: 32

Original Poster
Rep: Reputation: 15
oh
nevermind i figured it out
 
Old 12-03-2003, 05:06 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Well done!


Cheers,
Tink
 
  


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
/etc/fstab rewriting itself? logosys Linux - Hardware 1 09-17-2005 10:08 PM
rewriting mesg GarroteYou Programming 1 05-16-2005 11:38 AM
rewriting lilo into the mbr Smokey Slackware 4 08-05-2004 06:37 PM
mod_rewrite not rewriting urls chr15t0 Linux - General 1 11-09-2003 05:45 AM
Rewriting MBR to 0's? Dren Linux - General 6 04-10-2003 10:05 PM


All times are GMT -5. The time now is 04:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration