Solved

Unix command?

Posted on 2004-03-30
3
292 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux as a middle box 7 62
Shoretel Edge Gateway 5 42
DHCP Server 14 62
Cannot browse to favorite website apologeticspress.org but friends can 20 32
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now