LinuxCommandLibrary

away

Lock terminal with an away message

TLDR

Lock terminal and set an away message

$ away [message]
copy
Lock terminal and enable mail check
$ away -c [message]
copy
Lock terminal and disable mail check
$ away -C [message]
copy
Lock terminal and sleep background tasks for seconds
$ away -t [seconds] [message]
copy
Lock terminal and check mail persistently
$ away -p [message]
copy

SYNOPSIS

away [options] message

DESCRIPTION

away locks the terminal and displays an away message to anyone who sees the screen. It optionally monitors for new mail and can manage background task timing.
The terminal remains locked until the user authenticates. The away message is visible to other users who may access the terminal.

PARAMETERS

-c, --mail

Enable mail checking
-C, --nomail
Disable mail checking
-t, --time seconds
Sleep background tasks for the specified number of seconds
-p, --persist
Check mail until at least one inbox receives new mail
-P, --nopersist
Check mail even if no new mail has arrived
-h, --help
Display help information
-v, --version
Display version information

CAVEATS

The lock mechanism relies on system authentication. Mail checking requires properly configured mail spool directories. The away message is visible to anyone with physical access to the terminal.

SEE ALSO

vlock(1), lock(1), screen(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community