I had recently messed up my $PATH variable so I thought if fixing it by removing the /etc/paths but I found out online solutions to fix the $PATH variable by just editing the ~/.bash_profile so I moved the /etc/paths to the trash but then I accidentally emptied the trash so now its gone so now should I worry about some critical system apps to stop working if yes how should I fix this?
/etc/paths file is used as an initial value for the PATH variable. It should contain:
/usr/local/bin /usr/bin /bin /usr/sbin /sbin
Its protection, owner and group should be:
-rw-r--r-- root wheel
/etc/paths is used by
man path_helper says "default PATH and MANPATH values are obtained from the files /etc/paths and /etc/manpaths respectively." The file should exist so that PATH is set correctly.