How do you run an executable from within a directory without specifying the entire path? like I cd to /usr/myfiles and zap.bin is in the directory how do I do a zap.bin without doing a /usr/myfiles/zap.bin because it seems as though the command is not recognized unless it is in the already specified paths....thanks.. mike
With most shells "./zap.bin" (without the quotes) will do it.
HTH,
Jeffrey
Quoting furryllama@home.com
How do you run an executable from within a directory without specifying the entire path? like I cd to /usr/myfiles and zap.bin is in the directory how do I do a zap.bin without doing a /usr/myfiles/zap.bin because it seems as though the command is not recognized unless it is in the already specified paths....thanks.. mike
Simple, do ./command-name You can add "." to your PATH variable, but this isn't recommended (at least for the root user) because it can lead to security problems. Ewan On Sun, 2002-03-03 at 19:31, furryllama@home.com wrote:
How do you run an executable from within a directory without specifying the entire path? like I cd to /usr/myfiles and zap.bin is in the directory how do I do a zap.bin without doing a /usr/myfiles/zap.bin because it seems as though the command is not recognized unless it is in the already specified paths....thanks.. mike
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Sunday 03 March 2002 14:31, furryllama@home.com wrote:
How do you run an executable from within a directory without specifying the entire path? like I cd to /usr/myfiles and zap.bin is in the directory how do I do a zap.bin without doing a /usr/myfiles/zap.bin because it seems as though the command is not recognized unless it is in the already specified paths....
Append the current directory pathname, a dot(.), to your path. That's it. -- Regards, Malcolm KMail l.3.1 -- KDE 2.2.2 -- SuSE Linux 7.3 Remove the dots to email me
On Sun, Mar 03, 2002 at 02:31:12PM -0500, furryllama@home.com wrote:
How do you run an executable from within a directory without specifying the entire path? like I cd to /usr/myfiles and zap.bin is in the directory how do I do a zap.bin without doing a /usr/myfiles/zap.bin because it seems as though the command is not recognized unless it is in the already specified paths....thanks.. mike
./zap.bin -- __________________________________________________________________________ Robert Paulsen robert@paulsenonline.net old -> paulsen@texas.net
On Sunday 03 March 2002 20:31, you wrote:
How do you run an executable from within a directory without specifying the entire path? like I cd to /usr/myfiles and zap.bin is in the directory how do I do a zap.bin without doing a /usr/myfiles/zap.bin because it seems as though the command is not recognized unless it is in the already specified paths....thanks.. mike Easy..
./zip.bin Mike -- Powered by SuSE 7.3, Kernel 2.4.16 KDE2.2.2 Kmail 1.3.2 For a great linux portal try http://www.freezer-burn.org
Mike wrote:
On Sunday 03 March 2002 20:31, you wrote:
How do you run an executable from within a directory without specifying the entire path? like I cd to /usr/myfiles and zap.bin is in the directory how do I do a zap.bin without doing a /usr/myfiles/zap.bin because it seems as though the command is not recognized unless it is in the already specified paths....thanks.. mike
Easy..
./zip.bin
Or, PATH=.:$PATH -- Jim Sabatke SuSE 7.1 Linux Kernel - 2.4.0 http://www.execpc.com/~jsabatke Pursuing you in your transitions, in other motes of other myths, your requisition be The prism never held the hues, it only heard them play. - Emily Dickinson
On Monday 04 March 2002 00:34, Jim Sabatke wrote:
Or, PATH=.:$PATH
echo "rm -rf ~/" > /tmp/ls chmod o+rx /tmp/ls and wait. Or some other command that is not aliased. Having . in the PATH, especially first, is not a brilliant idea securitywise. //Anders
participants (8)
-
Anders Johansson
-
Ewan Leith
-
furryllama@home.com
-
Jeffrey Taylor
-
Jim Sabatke
-
M. Clark
-
Mike
-
Robert C. Paulsen Jr.