LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-06-2005, 12:18 PM   #1
AQG
Member
 
Registered: Jun 2005
Distribution: SuSE, Red Hat
Posts: 162

Rep: Reputation: 30
Erasing the bash profile?


Hi, how can i erase the bash profile in fedora?
 
Old 07-06-2005, 12:50 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I hope you realize this could seriously break your machine. To remove your user's bash profile, you can just do 'rm ~/.bash_profile'.
 
Old 07-06-2005, 02:10 PM   #3
AQG
Member
 
Registered: Jun 2005
Distribution: SuSE, Red Hat
Posts: 162

Original Poster
Rep: Reputation: 30
how can it break my machine?
 
Old 07-06-2005, 02:23 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I guess break your machine was stated a little too strongly. But, if you deleted the bash profile (especially if you delete the system-wide /etc/profile) things would stop running how you expected. For example, your PATH variable would not be set at login, commonly used aliases and other variables would remain unset, etc.

That being said, it's not quite as bad as I may have made it seem, but I am curious why you would want to delete the profile.
 
Old 07-06-2005, 02:36 PM   #5
AQG
Member
 
Registered: Jun 2005
Distribution: SuSE, Red Hat
Posts: 162

Original Poster
Rep: Reputation: 30
Ok, i'm sorry i explained my self incorrectly, i ment the bash history!!!

as you can see i'm still learning...
thanks once again
 
Old 07-06-2005, 03:18 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
OH, LOL.

Ok. In that case, just do 'rm ~/.bash_history'. If you want to never have a history, you can then do 'ln -s /dev/null ~/.bash_history'
 
Old 07-06-2005, 03:31 PM   #7
AQG
Member
 
Registered: Jun 2005
Distribution: SuSE, Red Hat
Posts: 162

Original Poster
Rep: Reputation: 30
Thank you very much
till next time!!!!
 
  


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
bash: /etc/profile: Permission denied Zero-0-Effect Linux - General 3 03-28-2005 04:47 AM
bash and user profile maxoo Slackware 1 08-05-2004 06:19 AM
/etc/profile vs. /etc/bash.bashrc jbrashear Debian 3 03-11-2004 03:49 PM
bash profile stuff gauge73 Linux - Newbie 7 01-05-2004 01:54 AM
where is my bash profile? bandofmercy Linux - General 3 04-08-2003 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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