LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-14-2006, 05:43 AM   #1
frontlinedr
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
which file contains a list of all commands that have been typed


I am just trying to locate the file that contains all commands that have been typed.
 
Old 07-14-2006, 05:56 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
This depends on your shell. If you use bash, then its ~/.bash_history.
 
Old 07-14-2006, 06:58 AM   #3
frontlinedr
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
thanks. that helped, but I still need more.

I am booting from one installation of linux and have mounted the drives on a different drive/installation of redhat, and that is the drive that I am trying to get all commands run.
 
Old 07-14-2006, 07:02 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
~/.bash_history contains a history of commands entered into the interactive bash shell. You second post indicates that you want to automate an installation on another machine, but I'm not sure if that is what you want.
 
Old 07-14-2006, 07:24 AM   #5
frontlinedr
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
sorry for confusion. I will try and explain it better.

I have 2 drives running in which redhat has been installed on. I am booting from drive-1 and am able to list all commands that have been ran using "history". Now I can no longer get drive-2 to boot. I always get a kernel panic and am not good enough to resolve that issue. However, I am able to boot from drive-1 and mount all volumes on drive-2. I am trying to locate if possible a list of all the commands that were run from drive-2 when I was still able to boot from it.

I am looking for the specific file name which contains all previously commands that have been typed and where that file might be located. I cannot locate a file called history other than history.h and that is not the correct file.

I hope this now makes since.

thanks

Last edited by frontlinedr; 07-14-2006 at 07:28 AM.
 
Old 07-14-2006, 07:35 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Mount the partitions on drive 2 somewhere on drive 1 and you will be able to look at the files on drive 2 whilst logged into the OS on drive 1.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo Installer Reboots Before Any Commands Typed In sdexp Linux - Software 1 03-01-2006 08:30 AM
list of commands eric2000 Linux - Newbie 6 01-06-2006 03:17 AM
how to see typed commands with date? vaoc Linux - Security 1 08-06-2004 02:43 PM
show all terminal typed commands joulupukki Linux - Newbie 6 05-10-2004 05:42 AM
list of commands JROCK1980 Linux - General 2 02-16-2004 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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