Question

In Linux, how to get the last N bash commands from history?


Annonce
Ad

Answer

Use history [N]. The following example lists the ten last commands:
history 10


[source]
# ID Query