because you're running the linux command test and not your own test program. linux doesn't look in the directory by default. it first looks in /bin, then /usr/bin (and any other predefined directories) but never the current directory. to tell it to run the file from the current directory, use note the ./ and not just /
the . tells linux to look in the current directory. you can also give the pathname relative to the directory. say you are in /home/user and the file is in /home/user/prog/test you will run to execute the code.
__________________
Here's why Linux is easier than Windows:
Package Managers! Apt-Get and Portage (among others) allow users to install programs MUCH easier than Windows can.
Hardware Drivers. In SuSE, ALL the hardware is detected and installed automatically! How is this harder than Windows' constant disc changing and rebooting?
|