我在 SUSE Linux Enterprise 10 sp1 上使用 bash shell。
有人禁用了 bash 历史记录。这意味着我无法通过按 UP 键来获取上一个命令。我想启用命令历史记录。
我怎样才能做到这一点?
ssh 命令在我之前的 cygwin 中工作得很好。但今天不行。它总是显示一个用法。但我的命令是正确的。
$ ssh root@10.0.0.1
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-I pkcs11] [-i identity_file]
[-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]
$ ssh -V
OpenSSH_5.6p1, OpenSSL 0.9.8o 01 Jun 2010
Run Code Online (Sandbox Code Playgroud)
cygwin 版本是 1.7
唐斯