Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undo sudo ln -sf

Tags:

shell

sudo

ln

I was having an issue pushing a git commit, so I ran sudo ln -sf /usr/bin/nodejs /usr/local/bin/node now when running node -v or nodejs -v terminal tells me -bash: node: command not found.

How can I 'undo' the sudo ln -sf

like image 998
Simon Cooper Avatar asked May 11 '26 14:05

Simon Cooper


1 Answers

Try this:

sudo unlink /usr/bin/nodejs
like image 143
brunomarks7 Avatar answered May 14 '26 10:05

brunomarks7