Meaning of periods and forward slashes in regards to file locations.

More
16 Aug 2023 06:46 #278125 by beefy
My INI file has this section:

[RS274NGC]
PARAMETER_FILE = linuxcnc.var
RS274NGC_STARTUP_CODE = o<metric_startup> call
SUBROUTINE_PATH = ./:./qtplasmac:../../nc_files/subroutines
USER_M_PATH = ./:./qtplasmac

I know that a colon is a separator of different paths.
I can also find information on Google about the single period followed by the forward slash (./)

However, the last path of SUBROUTINE_PATH which is 
../../nc_files/subroutines
has me a bit stumped, and I can't find any information on that.
What is the meaning of ../.. before the /nc_files/subroutines
 

Please Log in or Create an account to join the conversation.

More
16 Aug 2023 06:57 #278126 by cmorley
../ move back one folders
../../ move back two folders

Paths with these are known as relative paths.

You could change these to absolutes paths.
either way - they need to point to the expected folder.

Hope that helps.

Please Log in or Create an account to join the conversation.

More
16 Aug 2023 07:02 #278128 by beefy
Thanks Cmorley,

easy once I know.

Since I posted I actually managed to find a bit more info on them but your description is much simpler. Most Google results talk about parent directory.
I like the way you tell it, move back one or two folders.

Keith

Please Log in or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
16 Aug 2023 07:59 #278135 by rodw
Beefy, I thought you were old enough to remember! 
This is the same as  the good old DOS days. 
. means this folder eg execute ./myscript.sh
.. means parent folder but you can chain them together eg  cd ..

Linux also adds ~ for your home folder. I had to Google that one at the beginning.
eg. cd ~

Please Log in or Create an account to join the conversation.

More
16 Aug 2023 19:07 #278195 by beefy

Beefy, I thought you were old enough to remember! 

DOS   (said coughing and gagging).
I think PTSD made me block it out of my mind. Don't remind me about it or I'll have to reach for the meds.

I'll never forget my first laptop with that nasty 3 letter system on it. Cost me $4K and had a "whopping" 120 Megabyte (not a typo) hard drive LOL.
How things have changed.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
16 Aug 2023 19:21 #278197 by tommylight
I just finished installing that 3 letter word OS on some very old laptops i have, not fun at all.
Toshiba T2100CT anyone??
I think some are older, that one is from 1995. Still working with original 260MB hard drive! Also runs Win95, slowly.... :)

Please Log in or Create an account to join the conversation.

More
17 Aug 2023 06:29 #278234 by beefy
Wow, a massive 250 MB, double what mine was. Gee you're lucky.

So what are you putting yourself through that hell for. I'm guessing they have a special end purpose.

Please Log in or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
17 Aug 2023 08:17 #278241 by rodw
pfft, my first HDD was 20 mb with 68 Ms seek time. Then upgraded to a voice coil 40mb one with maybe 9 Ms access. A month later it failed and turned  itself into a $1k paperweight!

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
17 Aug 2023 12:55 #278260 by tommylight
Linux = /folder/folder/folder
DOS = \folder\folder\folder
-
No idea, just making them work for now, needed a break from CNC and 3D printers.
So far a 4GB HDD is dead, the rest is still OK.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum