Solved

Unix command?

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I was recently sitting at a desk at work with one of my colleagues and needed some information on my home computer. He watched as I turned on my home computer, established a remote session into it, got the information I needed and then shut it down …
What is IRC? IRC (Internet Relay Chat) is a form of communication between multiple users. It is available freely to anyone with inernet access. IRC is a great way to communicate with others e.g. There is an IRC channel for Ubuntu Linux, which is fo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

11 Experts available now in Live!

Get 1:1 Help Now