ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well it will only run with ./conversion if you are in the same directory as the executable. If instead your executable is in ~/blah, and when you start your console you are in ~, you can type blah/conversion of ~/blah/conversion.
Or... you can always copy it over to one of the paths in the PATH variable and just type conversion. (Type echo $PATH to see your current path. And you can also add that as well if you want. e.g. export PATH=$PATH:~/bin)
i wanna say the path is boxerboy/home/projects if i open my home folders there is a folder called projects in there thats wherre i put them. im assuming thats right path. not real sure what the ~ is. if you can please give me an example with the path i have shown. i have been studing the file system but i still get lost in it easy. i blame M$ for that with their point nad click file system. but i guess its my fault for no learning sooner.
Heheh, well. ~ is a special character that expands to your home directory. (Usually something like /home/username)
If say your home is /home/boxerboy and you have the conversion in your projects folder, you can do any of the following:
/home/boxerboy/projects/conversion (This works no matter what your current directory is)
projects/conversion (This works if your current directory is /home/boxerboy)
./conversion (If your current directory is /home/boxerboy/projects/)
Some other commands you might find useful:
pwd (prints the current working directory)
cd (changes to a directory e.g. cd projects, cd /home/boxerboy/projects)
ls (list contents of directory)
The following are common shortcut symbols for paths
. (Current directory)
.. (Up one directory)
~ (Your home directory)
~username (username's home directory)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.