Who

Shows your username, the time you logged on and your IP address. Other sessions than yours are not displayed.

Command line interface

Syntax

  1. $ who

Arguments

This command takes no arguments.

Example

who.js

  1. /**
  2. * Who
  3. **/
  4. TinyShell.plugins.who = new Class({
  5. description: "Show detailed user information",
  6. run : function(terminal, args) {
  7. terminal.print(terminal.user+"\tpts/1\t<?=date("Y-m-d H:i")?> (<?=gethostbyaddr($_SERVER["REMOTE_ADDR"])?>)");
  8. terminal.resume();
  9. }
  10. });

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>