Hi all hope you are well.
I am interested in a quick method (besides cut 'n' paste) of extracting my command history from a putty session (Linux version Red Hat Enterprise Linux ES release 3 (Taroon Update 9)) to a windows text file. Any ideas on that? Thanks for your time.

Recommended Answers

All 5 Replies

Well, wherever your history log is stored, just use echo "whateverthehistoryis" > "XXX.txt" Or find the history log and copy and paste the file into a new directory.

commented: Thanks for the help will try it tomorrow! +2

That simple ? lol Thanks a lot for your response, very helpful!

Even better try this:

echo |history > history.txt

Yeah, I was stating that echo something > file.txt would do that.

oh I didnt realise you meant with the pipe!lol

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.