I
I
Ivasoft2016-06-01 15:14:26
CentOS
Ivasoft, 2016-06-01 15:14:26

How to see the entire history of the Centos command line?

How to view the entire history of the Centos command line The history command displays the history only for the current day, (1114 lines) but how can I view the entire history?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Kuzin, 2016-06-01
@Bobson8

Look in your home directory for the .bash_history file, open it with any editor.

S
Sergey, 2016-06-24
@hamnsk

it can be easier, on the command line, type history by first pressing a space (if there is a space before the command, then it is not written to the command history)
if sent to the pipeline, then you can select the history, for example
history | grep yum install
history | grep iptables
and so on

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question