LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 02: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, 02: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, 03: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, 03: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, 04:18 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:43 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
Open Source Consulting | Domain Registration