LinuxQuestions.org
Review your favorite Linux distribution.
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 03-07-2008, 09:38 AM   #1
linuxFNG
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
SUSE10.1 : bash query : saving input to file


Can anyone advise me of a script or command that would allow me to save typed commands from my command line buffer into a file so I could view at a later date.

May sound mad but curious to see if it was viable?
 
Old 03-07-2008, 10:02 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Bash maintains a history of commands in your home directory. It' .bash_history (on my system). It's a rolling history,meaning the oldest commands roll out as new commands roll in.

To see the history, in a terminal, type history and press enter.
 
Old 03-07-2008, 11:52 AM   #3
caddr
LQ Newbie
 
Registered: Nov 2006
Posts: 11

Rep: Reputation: 0
see script

man script ->

script - make typescript of terminal session
 
Old 03-07-2008, 01:23 PM   #4
niceguy_81333
Member
 
Registered: Mar 2008
Location: India
Distribution: RHEL5
Posts: 34

Rep: Reputation: 15
By default 1000 commands are stored in .bash_history!
I feel its quite a number.
rgds
bil
 
  


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
Can't input a login name or passworsd for suSe10.2 bob@wyrs.org Linux - Newbie 5 02-27-2008 05:01 AM
Problem with comparing user input to result of a query php orfiyus Programming 3 07-11-2007 12:08 AM
No input ALSA 1.0.14rc2 SUSE10.2 pdeman2 Linux - Hardware 11 03-20-2007 06:37 PM
Saving to XP partition from SuSE10...possible? cbjhawks SUSE / openSUSE 2 03-09-2006 06:04 PM
my mouse input is takes as keyboard input in BASH e1000 Slackware 5 12-08-2003 04:00 PM


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