有时我在命令提示符中键入一个冗长的命令,然后注意到在实际按下回车键并执行命令之前我需要检查一些东西。我按ctrl+c
,执行新命令,然后再次键入取消的命令并执行它。
有没有办法“保存”我要取消的命令,ctrl+c
并在我完成“检查某事”命令后恢复它?
请注意,我不想打开另一个终端,因为我通过 ssh 在远程服务器上。
炮弹:
$ git commit -am 'FOO-123: fix issue with dorks around bars'^C
$ git status
# On branch foo
modified: foo.php
$ git commit -am 'FOO-123: fix issue with dorks around bars'
1 file changed, 46 deletions(-)
$
Run Code Online (Sandbox Code Playgroud) 执行xrandr
显示了我的显卡的输出,但也是VIRTUAL1
一个:
$ xrandr
Screen 0: minimum 8 x 8, current 4160 x 1024, maximum 32767 x 32767
eDP1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
1600x900 60.0*+
1440x900 59.9
...
DP2 disconnected (normal left inverted right x axis y axis)
DP2-1 connected primary 1280x1024+1600+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x1024 60.0*+ 60.0*
1024x768 60.0
...
VIRTUAL1 connected (normal left inverted right x axis y …
Run Code Online (Sandbox Code Playgroud) 我尝试将聊天日志文件通过管道传输到某些语音输出,并希望cut
使用tr
. 不幸的是,cut
将它与tail -f
结合使用时似乎停止了tr
:
//works
$ tail /path/to/chatlogs | cut -b18-
test
test
//works, too
$ tail /path/to/chatlogs | tr -C -d '[:alnum:][:cntrl:] '
test
test
// does not work
$ tail -f /path/to/chatlogs | tr -C -d '[:alnum:][:cntrl:] ' | cut -b18-
//no output
Run Code Online (Sandbox Code Playgroud)
为什么?我该如何解决这个问题?
它甚至在管道两次进入时挂起cut
:
$ tail -f file | cut -b5- | cut -b5-
//no output
Run Code Online (Sandbox Code Playgroud) Claws Mail 根据其手册使用 MH 格式。
Unix 世界有两种存储邮件消息的方式:传统的 mbox 格式和较新的 maildir 格式。Postfix 和 Dovecot 支持两种邮件存储格式,因此您可以使用任何格式,但我强烈建议您使用 maildir 格式。
Claws Mail 使用的 MH 格式与 Mbox 和 Maildir 不同吗?
是特殊设计的格式吗?