Unix command?

Posted on 2004-03-30
Last Modified: 2013-12-23

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.

Question by:marou
  • 2

Accepted Solution

Alf666 earned 50 total points
ID: 10722582
You should find all these commands in a history file (depending on your shell).

The best is to type the following shell internal :


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

For sh : .history
For bash : .bash_history


Expert Comment

ID: 10722589
try echo $HISTFILE

It should give you the right file.

Author Comment

ID: 10724174
Many thanks Alf666.

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
2 Subnets, 2 routes, failover routing ? 3 41
Botnet detection help me please 21 115
Clarification on Network "Usage" for ESXi host. 13 68
nexus filter logs 3 44
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question