Today I accidentally typed
I wanted to type
~bak - that's my junk backup folder, but
~b<tab> deceived me.
Instead I got this:
$ ls ~bin core_perl fogcoord lftp pcmanfm snmpvacm site_perl fold lftpget ... many miles of output ...
Could anyone kindly explain what the hell happened here? Works also with
cd, for example.
There is no such folder (or symlink) in pwd - it's the real /bin. I also tried
ls ~etc, but that didn't work.
Here's my ls:
$ alias ls alias ls='ls --color=auto --group-directories-first -h'
tilde expansion; so
tilde-prefix. If none of the characters in the tilde-prefix are quoted, the characters in the tilde-prefix following the
~are treated as a possible login name from the user database. See also Does ~ always equal $HOME