HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lastcomm — Show last commands executed. More information: <https://manned.org/lastcomm>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandlastcommcommandsshowclilastexecutedmore

Problem

How to use the lastcomm command: Show last commands executed. More information: <https://manned.org/lastcomm>.

Solution

lastcomm — Show last commands executed. More information: <https://manned.org/lastcomm>.

Print information about all the commands in the acct (record file):
lastcomm


Display commands executed by a given user:
lastcomm --user {{user}}


Display information about a given command executed on the system:
lastcomm --command {{command}}


Display information about commands executed on a given terminal:
lastcomm --tty {{terminal_name}}

Code Snippets

Print information about all the commands in the acct (record file)

lastcomm

Display commands executed by a given user

lastcomm --user {{user}}

Display information about a given command executed on the system

lastcomm --command {{command}}

Display information about commands executed on a given terminal

lastcomm --tty {{terminal_name}}

Context

tldr-pages: common/lastcomm

Revisions (0)

No revisions yet.