LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2005, 11:01 PM   #16
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32

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)
 
Old 08-24-2005, 05:50 AM   #17
boxerboy
Member
 
Registered: Jul 2005
Distribution: ubuntu5.04, ubuntu5.10, suse9.3, mandrake10.1, mandriva2006(beta), FC1-4, redhat9.0, debian sarge
Posts: 519

Rep: Reputation: 32
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.
 
Old 08-24-2005, 09:48 AM   #18
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
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)
 
Old 08-24-2005, 01:00 PM   #19
boxerboy
Member
 
Registered: Jul 2005
Distribution: ubuntu5.04, ubuntu5.10, suse9.3, mandrake10.1, mandriva2006(beta), FC1-4, redhat9.0, debian sarge
Posts: 519

Rep: Reputation: 32
thank you that is very helpful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Laptop Temperature boxxa Linux - Laptop and Netbook 6 08-19-2005 10:01 AM
Temperature sensors iron_rich General 2 03-30-2005 11:46 AM
Temperature Monitoring scott.holmes Linux - Software 2 09-02-2004 02:42 PM
how to get cpu temperature taoweijia Linux - Software 3 02-13-2004 06:04 PM
Temperature monitoring objorkum Linux - Software 2 12-07-2003 07:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration