DEV Community

Discussion on: August 6th, 2020: What did you learn this week?

Collapse
 
vonheikemen profile image
Heiker

I learned that Debian has an "alternatives" system. Is like a symlinks manager but for commands that are interchangeable in some way.

For example, I installed neovim and without doing anything I already have the commands vi and vim pointing to a neovim symlink. Nodejs also has one, it's called js, I can run a script like this js ./path-to-script.js. To see what commands have "alternatives" check the /etc/alternatives folder.

ls -l /etc/alternatives

And for more details read the manpage.

man update-alternatives
Collapse
 
nickytonline profile image
Nick Taylor

Noice!

Noice!

Collapse
 
atomxplus profile image
AtOmXpLuS

💘👻🌷🙊