Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

.profile

Posted on 2002-07-21
5
Medium Priority
?
250 Views
Last Modified: 2010-04-21
in .profile why need' ' in setting PATH?

TERM=VT100
export TERM
PATH='.:$HOME/bin:/bin:.......'
0
Comment
Question by:ww111697
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 11

Expert Comment

by:griessh
ID: 7168386
You don't need the "'"
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 7168937
you don't need single quotes, in your example it probably inhibits to do what you want. Better use double quotes instead.
0
 
LVL 1

Expert Comment

by:dkloes
ID: 7173113
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
 

Author Comment

by:ww111697
ID: 7179247
I am sorry, but what do you mean by "to prevent spoofing of real Unix programs"?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7179518
> .. 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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question