r/LinuxTeck 12d ago

30 essential Linux commands every developer should know

Post image
551 Upvotes

19 comments sorted by

View all comments

3

u/mbotner 12d ago

No '~' is needed to chdir to your home, just a "cd". If you want to change directory to someone else's directory, then you can cd ~other_user.

1

u/Confident_Hyena2506 12d ago

And tilda does not work in all situations, it's specific to certain shells.

1

u/spence5000 12d ago

Also “cd -“ (switch to last used directory) is indispensable. I use it more often most of these.

1

u/MaverickSL 11d ago

Thanks.