Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-28-2006, 08:04 AM   #1
Registered: Sep 2004
Location: Navi Mumbai
Distribution: Ubuntu 14.04 64-bit
Posts: 230

Rep: Reputation: 30
History commands files

On typing history I get the commands history - are these stored in some file ? I want to download these commands to my PC to go through each one of them.

Old 05-28-2006, 08:14 AM   #2
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
they are stored in the file ~/.bash_history
Old 05-28-2006, 10:40 AM   #3
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
Originally Posted by verdeboy2k
they are stored in the file ~/.bash_history
Or in ~/.history, depends on the shell. Just being a Pedantic Ass(TM).

Bash shell command 'history -w' will write out the current history list to the history file. When you're in the shell the history list is stored in memory and isn't written to the file until a logout.
Force the write with the above command.


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
Download history and copy history? inverted.gravity Linux - Newbie 1 02-21-2006 01:31 PM
where is my history of commands? learnfast Linux - Newbie 3 03-14-2005 10:28 AM
adding my own commands to rc files SizofreNICK Slackware 8 11-07-2004 03:30 AM
Need help with some commands to prune files... smeenge Linux - Software 2 05-21-2004 06:10 PM
How to forcely dump the history of user commands to the admin dump file. mcp_achindra Linux - Security 1 03-19-2004 01:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration