.profile

in .profile why need' ' in setting PATH?

TERM=VT100
export TERM
PATH='.:$HOME/bin:/bin:.......'
ww111697Asked:
Who is Participating?
 
ahoffmannConnect With a Mentor Commented:
you don't need single quotes, in your example it probably inhibits to do what you want. Better use double quotes instead.
0
 
griesshCommented:
You don't need the "'"
0
 
dkloesCommented:
Not related but you should put the . at the end of the PATH rather than the beginning to prevent spoofing of real Unix programs.  Takes a little longer to run but better for security.
0
 
ww111697Author Commented:
I am sorry, but what do you mean by "to prevent spoofing of real Unix programs"?
0
 
ahoffmannCommented:
> .. prevent spoofing of real programs ..
means that if you have . first in your PATH, some bad people might place programs like  ls, pwd, pws, etc.
somewhere in the filesystem, and these progs might do what *they* want and what you expect, 'cause they are found in PATH first before the real programs in /bin or /usr/bin

That's all, off-topic ...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.