2485 shaares
83 private links
83 private links
Tilde (~) goes beyond just denoting the user's home directory in bash:
~fred/foo
# The subdirectory foo of the home directory of the user fred
~+/foo
# $PWD/foo
~-/foo
# ${OLDPWD-'~-'}/foo
~N
# The string that would be displayed by ‘dirs +N’
~+N
# The string that would be displayed by ‘dirs +N’
~-N
# The string that would be displayed by ‘dirs -N’