logoalt Hacker News

gjvc • today at 1:35 PM • 1 reply • view on HN

bad example in the article:

  export PATH="$PATH:$HOME/.local/bin/"
better:

  export PATH="$HOME/.local/bin/:$PATH"

Replies

Backslasher • today at 1:56 PM

Afaik it's habit to give system paths precedence so a malicious script can't shadow e.g. sudo and steal your password, escalating a local file write into root

➕ show 5 replies