← 返回命令列表

Linux command

away 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Lock terminal

away [message]

Example

away -c message

Example

away -C message

Example

away -t seconds message

Example

away -p message

说明

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.

参数

-c, --mail
Enable checking of mail
-C, --nomail
Disable checking of mail
-f, --rcfile=_FILE_
Specify an alternative configuration file instead of ~/.awayrc
-F, --norcfile
Ignore user configuration file
-m, --message
Treat the remainder of the command line as the message
-t, --time=_SECONDS_
Set the number of seconds away sleeps before performing background tasks
-T, --notime
Ignore time interval options and use the default
-p, --persist
Continue checking mail as long as at least one mailbox has not received new mail
-P, --nopersist
Stop checking mail if any mailbox is found to have new mail
-h, --help
Display help information
-v, --version
Display version information

FAQ

What is the away command used for?

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.

How do I run a basic away example?

Run `away [message]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c, --mail do in away?

Enable checking of mail