LinuxQuestions.org
Register a domain and help support LQ
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 12-14-2005, 10:31 AM   #1
placster
LQ Newbie
 
Registered: Dec 2005
Posts: 8

Rep: Reputation: 0
Saving History


I am learning linux using Fedora and I would like to save my history so I can go back and reference it. I tried this command:

history >> history.txt

Error:

history.txt: Permission denied

I am thinking that root has the permission to this but is there any easy way to save my history?
 
Old 12-14-2005, 10:40 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
which user's history are you trying to save and as which user?

Looks like you don't have permissions to write history.txt file where you are trying to write it.

Tux,
 
Old 12-14-2005, 10:45 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Do you have write permissions to history.txt?

Edit: beaten to it
 
Old 12-14-2005, 11:05 AM   #4
placster
LQ Newbie
 
Registered: Dec 2005
Posts: 8

Original Poster
Rep: Reputation: 0
I am logged in as myself and the history file relates to me. I thought that I would have the right permissions on it since it is my history.
 
Old 12-14-2005, 11:08 AM   #5
placster
LQ Newbie
 
Registered: Dec 2005
Posts: 8

Original Poster
Rep: Reputation: 0
I found my solution or atleast one way of doing it:

history |less
s to save
and saved it as a file.

Thanks for your help.
 
Old 12-14-2005, 10:22 PM   #6
gdivens51
Member
 
Registered: Aug 2003
Location: Asheville,NC
Distribution: Vector
Posts: 58

Rep: Reputation: 15
history | less > filename

that might save u a few mouse clicks
 
  


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
history junaid18183 Linux - General 14 11-07-2009 08:01 AM
history saipraveen Linux - Newbie 5 06-10-2005 08:04 PM
How to find back "history" database after "history -c" ? san_lss Linux - Newbie 1 01-07-2004 12:53 PM
saving and not saving sessions on desktop ergo_sum Linux - Newbie 2 09-26-2003 08:27 AM
History neohybrid1 Linux - General 1 12-03-2002 05:53 AM


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