Skip to content

Latest commit

 

History

History
85 lines (44 loc) · 1.55 KB

whoami_statistics.md

File metadata and controls

85 lines (44 loc) · 1.55 KB
layout title tags
manual
whoami - Statistics of command combinations using pipe
statistic

Before

The commands before whoami: Pipe the result of the given command to whoami.

Command percentage
ps 33%
finger 33%
last 33%

After

The commands after whoami: Pipe the result of whoami to the given command.

Command Percentage
grep 33%
awk 22%
w 22%
head 11%
echo 11%

Related Scenarios

Below are the scenarios for all command combinations above.

The description in the table is referenced from and can be used to search the one-line-command or the scripts in the website of CommandLineFu.

Pipe ps to whoami

  • Check processes runed not by you

Pipe finger to whoami

  • Prints out, what the users name, notifyed in the gecos field, is

Pipe last to whoami

  • See how much time you've spent logged in

Pipe whoami to grep

  • Safely store your gpg key passphrase.
  • Get user's full name in Mac OS X
  • See how much time you've spent logged in

Pipe whoami to awk

  • Get user's full name in Mac OS X
  • Get user's full name in Mac OS X

Pipe whoami to w

  • Get user's full name in Mac OS X
  • Get user's full name in Mac OS X

Pipe whoami to head

  • Prints out, what the users name, notifyed in the gecos field, is

Pipe whoami to echo

  • Create a QR code image in MECARD format