3 ms·
You need to enter ~ after pressing return (or else you have a bad time editing command lines involving home directories), so in practice only the first ~ each S
by barrkel 9y ago
You need to enter ~ after pressing return (or else you have a bad time editing command lines involving home directories), so in practice only the first ~ each SSH instance sees needs escaping.
- schoen 9y agoIt's convenient there (and probably not accidental!) that Unix usernames are usually lowercase, so if you want to run a command like ~otheruser/bin/cat it won't conflict with an ssh escape sequence (although you won't see the ~ appear until you've typed ~o). On the other hand, ~Randomuser/bin/cat would be impossible to type immediately at a new command prompt over an ssh connection (though of course it's possible to run such a command by typing anything such as "x<Backspace>" first).