snippetbashTip
lastcomm — Show last commands executed. More information: <https://manned.org/lastcomm>.
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):
lastcommDisplay 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)
lastcommDisplay 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.