如何撤消~v(详细)bash命令?
所以我无意中在bash中键入了~v,它将LogLevel更改为Verbose。我认为这可能是一个切换,所以我再次按下它,日志级别设置为DEBUG。现在一切似乎都在输出某种调试信息。如何禁用此功能如何撤消~v(详细)bash命令?,bash,shell,logging,ssh,Bash,Shell,Logging,Ssh,所以我无意中在bash中键入了~v,它将LogLevel更改为Verbose。我认为这可能是一个切换,所以我再次按下它,日志级别设置为DEBUG。现在一切似乎都在输出某种调试信息。如何禁用此功能 ~v和~v是ssh客户端用于分别提高和降低日志记录级别的转义序列。要撤消一个(或多个)增加,请使用适当的次数~V。不同的层次是 安静的 致命的 错误 信息 详细(明显的默认值) 调试 调试1 调试2 调试3 注意,~如果是一行中按下的第一个字符,则它只是一个转义字符。如果您只是在命令行上获取~,请删
~v
和~v
是ssh
客户端用于分别提高和降低日志记录级别的转义序列。要撤消一个(或多个)增加,请使用适当的次数~V
。不同的层次是
- 安静的
- 致命的
- 错误
- 信息
- 详细(明显的默认值)
- 调试
- 调试1
- 调试2
- 调试3
~
如果是一行中按下的第一个字符,则它只是一个转义字符。如果您只是在命令行上获取~
,请删除该行并按Enter键以启动新的命令行
有关更多详细信息,请参阅
ssh
手册页的转义字符部分。因此,您在ssh
客户端中偶然发现了转义序列(它与bash
或shell无关)
要减少日志记录的详细程度,请键入~V
从manssh
:
也可通过转义序列获得
其他几个有趣的序列:
谢谢完整的等级列表真的很有用。我忘了提到它们记录在哪里;请参阅
ssh\u config
中的LogLevel
选项。(并不是说它给出了每个级别记录的内容的任何指示…)
~V Decrease the verbosity (LogLevel) when errors are being written to stderr.
~v Increase the verbosity (LogLevel) when errors are being written to stderr.
~C Open command line. Currently this allows the addition of port forwardings using the -L, -R and -D options (see
above). It also allows the cancellation of existing port-forwardings with -KL[bind_address:]port for local,
-KR[bind_address:]port for remote and -KD[bind_address:]port for dynamic port-forwardings. !command allows the
user to execute a local command if the PermitLocalCommand option is enabled in ssh_config(5). Basic help is avail‐
able, using the -h option.
~R Request rekeying of the connection (only useful if the peer supports it).