Solved

Unix command?

Posted on 2004-03-30
3
296 Views
Last Modified: 2013-12-23
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
Comment
Question by:marou
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
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 :

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
 
LVL 9

Expert Comment

by:Alf666
ID: 10722589
try echo $HISTFILE

It should give you the right file.
0
 

Author Comment

by:marou
ID: 10724174
Many thanks Alf666.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

730 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