• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

Unix command?

Hi!

Is there a command or settings to be done in unix that will saved all the commands to file typed at command prompt? I will need this for future reference without recreating all those commands again.

Any help would be appreciated.

Thanks.
 
0
marou
Asked:
marou
  • 2
1 Solution
 
Alf666Commented:
You should find all these commands in a history file (depending on your shell).

The best is to type the following shell internal :

history

Bu if you want to find a file, it will be located in your home dir :

For sh : .history
For bash : .bash_history

...etc.
0
 
Alf666Commented:
try echo $HISTFILE

It should give you the right file.
0
 
marouAuthor Commented:
Many thanks Alf666.
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now