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 06-24-2006, 03:52 PM   #1
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
Deleting Terminal log!! A.S.A.P!


Hello,
How can I delete the terminal log?
If I click on the UP button I can see my previous script line
and I would like to delete it

how can I do that?

Thanks.
 
Old 06-24-2006, 03:56 PM   #2
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
nevermind... found out how to do that

rm -rf ~/.bash_history
 
Old 06-24-2006, 04:04 PM   #3
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
I fscked bash up!!!!!!!!! damn!!!!!


please help
I deleted some of ~/.bash files and now when I open bash it doesn't show in which directory I am
etc
it writes
Code:
bash-3.00$
damn
what can I do?
 
Old 06-24-2006, 04:19 PM   #4
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by itz2000
I fucked bash up!!!!!!!!! damn!!!!!


please help
I deleted some of ~/.bash files and now when I open bash it doesn't show in which directory I am
etc
it writes
Code:
bash-3.00$
damn
what can I do?
I've fixed it ( i think)
I've done this (tell me if I didn't screw up
Code:
su
cat ~/.bashrc > /home/zuki/.bashrc
exit
vi ~/.bashrc
[editing ROOT --> zuki]
I restarted bash, and it went good... but was my solution okay? or I need another .bashrc file (and not root's .bashrc... or is it the same?)

Thanks!
 
Old 06-24-2006, 05:18 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You're probably OK. For your reference, the appearance of the prompt is determine by the PS1 environment variable. if you unset the HISTFILE environment variable, no history information will be saved.
 
  


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
deleting 100 rows in text file (1-100) via terminal itz2000 Linux - Newbie 5 01-18-2006 12:19 AM
Removing a Directory from the Terminal without deleting each file or folder lennysokol Linux - General 4 05-31-2005 12:30 AM
Log in terminal as Root ron126 Linux - Newbie 3 03-22-2005 11:45 AM
terminal log? iLLuSionZ Linux - General 8 11-24-2003 09:06 PM
how to log off x-window from terminal ? johnyy Linux - Software 1 10-25-2003 09:04 PM


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