On some tutorials over the internet they can run a script on the current directory without doing:
./script
How do you omit this? I am using CentOS 5.6 x64. I want to run it this way
script
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityOn some tutorials over the internet they can run a script on the current directory without doing:
./script
How do you omit this? I am using CentOS 5.6 x64. I want to run it this way
script
Any of:
PATH=${PATH}:.
(this is considered a security risk)The last option is possibly the best.