Description using last command

Hello Experts,

I need the description (like if user has done sudo,logging from winscp termial or ssh from other machine) using the last command.Can someone help me out please.

Thanks.

last really isn't for that.

You'll either have to use something based of a user's history or use some kind of wrapper. Sudo has logging capabilities (not complete logging, but command logging anyhow).

Note: last is a database of login entries that are logged to wtmp (subnote: you can do operations on a host even interactively without showing up in wtmp).

1 Like

Thank you cjcox for prompt response.

Can you elaborate what do you mean wrapper?

It means the user uses some sort of interface which logs, instead of the prompt directly.