- LinuxCNC
- General LinuxCNC Questions
- Meaning of periods and forward slashes in regards to file locations.
Meaning of periods and forward slashes in regards to file locations.
- beefy
- Offline
- Elite Member
Less
More
- Posts: 224
- Thank you received: 56
16 Aug 2023 06:46 #278125
by beefy
Meaning of periods and forward slashes in regards to file locations. was created 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
[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.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7776
- Thank you received: 2073
16 Aug 2023 06:57 #278126
by cmorley
Replied by cmorley on topic Meaning of periods and forward slashes in regards to file locations.
../ 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.
../../ 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.
- beefy
- Offline
- Elite Member
Less
More
- Posts: 224
- Thank you received: 56
16 Aug 2023 07:02 #278128
by beefy
Replied by beefy on topic Meaning of periods and forward slashes in regards to file locations.
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
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
- Away
- Platinum Member
Less
More
- Posts: 10780
- Thank you received: 3551
16 Aug 2023 07:59 #278135
by rodw
Replied by rodw on topic Meaning of periods and forward slashes in regards to file locations.
Please Log in or Create an account to join the conversation.
- beefy
- Offline
- Elite Member
Less
More
- Posts: 224
- Thank you received: 56
16 Aug 2023 19:07 #278195
by beefy
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.
Replied by beefy on topic Meaning of periods and forward slashes in regards to file locations.
DOS (said coughing and gagging).Beefy, I thought you were old enough to remember!
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
- Away
- Moderator
Less
More
- Posts: 19460
- Thank you received: 6529
16 Aug 2023 19:21 #278197
by tommylight
Replied by tommylight on topic Meaning of periods and forward slashes in regards to file locations.
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....
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.
- beefy
- Offline
- Elite Member
Less
More
- Posts: 224
- Thank you received: 56
17 Aug 2023 06:29 #278234
by beefy
Replied by beefy on topic Meaning of periods and forward slashes in regards to file locations.
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.
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
- Away
- Platinum Member
Less
More
- Posts: 10780
- Thank you received: 3551
17 Aug 2023 08:17 #278241
by rodw
Replied by rodw on topic Meaning of periods and forward slashes in regards to file locations.
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
- Away
- Moderator
Less
More
- Posts: 19460
- Thank you received: 6529
17 Aug 2023 12:55 #278260
by tommylight
Replied by tommylight on topic Meaning of periods and forward slashes in regards to file locations.
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.
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.
- LinuxCNC
- General LinuxCNC Questions
- Meaning of periods and forward slashes in regards to file locations.
Time to create page: 0.070 seconds