LinuxCommandLibrary

away

Set user's away status

TLDR

Lock terminal and set away message

$ away [message]
copy

Lock terminal and enable mail check
$ away [[-c|--mail]] [message]
copy

Lock terminal and disable mail check
$ away [[-C|--nomail]] [message]
copy

Lock terminal and sleep background tasks for number of seconds
$ away [[-t|--time]] [seconds] [message]
copy

Lock terminal and check mail if at least one inbox hasn't received new mail
$ away [[-p|--persist]] [message]
copy

Lock terminal and check mail until at least one inbox has received new mail
$ away [[-P|--nopersist]] [message]
copy

Display help
$ away [[-h|--help]]
copy

Display version
$ away [[-v|--version]]
copy

SYNOPSIS

away [-clear] [message]

PARAMETERS

-clear
    Clears the 'away' status by removing the .away file from the user's home directory, indicating the user is no longer away.

message
    (Optional) A text string that will be used as the 'away' message. This message is typically written into the .away file and displayed by `finger`.

DESCRIPTION

The `away` command, historically found on some Unix-like systems, was used to indicate a user's presence status, primarily for the `finger` utility. When a user was marked 'away,' `finger` would report this status, optionally displaying a custom message provided by the user. This was typically achieved by creating or manipulating a hidden file named .away in the user's home directory.

The existence of this file would signal the 'away' status, and its content (if any) would be displayed as the away message. Clearing the away status involved removing this .away file. While not commonly available as a standalone command on modern Linux distributions, the concept of an .away file persists in some `finger` implementations.

CAVEATS

This `away` command is not a standard or widely available utility on most modern Linux distributions. Its functionality is largely superseded or managed indirectly (e.g., by manually creating/removing a ~/.away file, or through more advanced user presence systems). It was more common on older Unix and BSD systems and is primarily relevant in contexts where the `finger` daemon is still actively used for user status.

FILE INTERACTION

The `away` command typically creates or removes a hidden file named .away in the user's home directory. The mere presence of this file signifies an 'away' status. If the file contains text, that text is used as the 'away' message by utilities like `finger`.

MODERN USAGE CONTEXT

In most modern Linux environments, the `away` command as a standalone utility is absent. If an 'away' status is desired for `finger`, users typically create or remove the ~/.away file manually using commands like touch ~/.away or rm ~/.away, potentially piping a message into it (e.g., echo 'On vacation' > ~/.away).

HISTORY

The `away` command concept emerged in earlier Unix environments, closely tied to the `finger` protocol and daemon. Its primary role was to allow users to self-report their availability, particularly useful in multi-user mainframe or workstation environments where direct communication might not always be immediate. It pre-dates modern instant messaging or presence services. The specific `away` utility has largely faded from common Linux installations, with its core functionality either becoming less relevant or being absorbed into more complex presence systems or handled by direct file manipulation.

SEE ALSO

finger(1), who(1), w(1)

Copied to clipboard