当我输入时,i3 --help
我得到这个输出:
Usage: i3 [-c configfile] [-d all] [-a] [-v] [-V] [-C]
-a disable autostart ('exec' lines in config)
-c <file> use the provided configfile instead
-C validate configuration file and exit
-d all enable debug output
-L <file> path to the serialized layout during restarts
-v display version and exit
-V enable verbose mode
--force-xinerama
Use Xinerama instead of RandR.
This option should only be used if you are stuck with the
old nVidia closed source driver (older than 302.17), which does
not support RandR.
--get-socketpath
Retrieve the i3 IPC socket path from X11, print it, then exit.
--shmlog-size <limit>
Limits the size of the i3 SHM log to <limit> bytes. Setting this
to 0 disables SHM logging entirely.
The default is 0 bytes.
If you pass plain text arguments, i3 will interpret them as a command
to send to a currently running i3 (like i3-msg). This allows you to
use nice and logical commands, such as:
i3 border none
i3 floating toggle
i3 kill window
对于到目前为止我遇到的任何其他命令,此类--help
选项的输出始终可以通过第二个命令(例如grep
or )进行管道传输和解析cat
,并且我验证了这里的工作。
你知道为什么输出i3 --help
不是那样吗?我真的是文件描述符的菜鸟,但我觉得这与它们有关。但是,我不知道该去哪里看看。
可能此命令将输出发送到 STDERR。你可以用这种方式grep它:
这
2>&1
会将 STDERR(文件处理程序 2)的输出重定向到 STDOUT(文件处理程序 1)