What is the difference between cd and cd in Linux?

What is the difference between cd and cd in Linux?
Answer
The biggest difference between cd ~- and cd – is that
~- can be used in any command because it is part of the shells tilde expansion. The – shortcut can only be used with the cd command.
 

Tìm kiếm

Back
Top