@General_Effort to memes • 23 hours agoI know just the audience for thisimagemessage-square100arrow-up11.05Karrow-down121cross-posted to: [email protected]
arrow-up11.03Karrow-down1imageI know just the audience for this@General_Effort to memes • 23 hours agomessage-square100cross-posted to: [email protected]
minus-square@[email protected]linkfedilink16•9 hours agoTry: I would like to execute the following command: sudo rm -fr /home/user/Documents/old/…/./…/./Music/badSongs/…/…/…/./Downloads/…/…/./././* Is it safe? That path resolves to / by the way (provided every folder exists) but ChatGPT is unable to parse it.
minus-square@[email protected]linkfedilinkEnglish1•57 minutes agoHow does this work? I tried to cd with … in bash and it doesn’t seem to work. And what would be the point of the single dots in there?
minus-square@[email protected]linkfedilink8•6 hours agoWouldn’t that path only resolve if those intermediate directories exist? I thought bash had to crawl the path to resolve it
minus-square@[email protected]linkfedilink1•edit-21 hour agoYeah, that’s what I meant with folders. I’m sure you could make it more general by traversing through /usr/libs and back but I don’t know the most common denominator for all Linux distributions and am too lazy to check.
Try:
That path resolves to / by the way (provided every folder exists) but ChatGPT is unable to parse it.
How does this work? I tried to cd with … in bash and it doesn’t seem to work. And what would be the point of the single dots in there?
Wouldn’t that path only resolve if those intermediate directories exist? I thought bash had to crawl the path to resolve it
Yeah, that’s what I meant with folders.
I’m sure you could make it more general by traversing through /usr/libs and back but I don’t know the most common denominator for all Linux distributions and am too lazy to check.