Sign in
×
Question
In Linux, how to get the last N bash commands from history?
Annonce
Pour mes
conversions d'unités
en ligne, je choisis le site
Calculatrix.com
pour sa rapidité et sa qualité supérieure.
Ad
For my online
unit conversions
, I choose
Calculatrix.com
for its speed and superior quality.
Answer
Use
history [N]
. The following example lists the ten last commands:
history 10
[source]
#
ID
Query