2,489 questions
0
votes
1
answer
39
views
Create a link to a relative path with nix flakes
In my nixos config (with flakes and home-manager as a nixos module) I have:
modules/home-manager/emacs-config (my emacs config directory as a git submodule)
modules/home-manager/modules/emacs.nix (a ...
-1
votes
2
answers
128
views
Automatically Converting Windows Shortcuts to Linux Links using Bash
after two years of dual-booting I'm finally giving Microsoft the boot, pun intended. But I've a large personal and work archive that has over 1100 Windows Shortcuts(.lnk) of both files and folders and ...
0
votes
1
answer
44
views
Semantics of POSIX path traversal
It's reasonably well known that POSIX has fairly mad path traversal semantics, mostly due to the existence of symlinks. For example to open("foo/../bar") the kernel can't just open("bar&...
3
votes
0
answers
152
views
Read file and get the real path at the same time
In C on linux, given a file path, I'd like to read the file contents, and also I'd like to know the real path with any symlinks resolved. I can do those things separately (e.g. open() + read() for the ...
0
votes
0
answers
36
views
Modifying timestamps on Windows reparse points
I need to copy timestamps (modified time) between NTFS reparse points of type junction, directory symlink and file symlink.
I can get the timestamp of a reparse point with os.lstat(). But to apply ...
1
vote
1
answer
106
views
storage:link not creating symlink in public folder
I'm working on a Laravel 12 project using XAMPP on Windows 10.
I tried to use the following command to create the symbolic link for serving uploaded files:
php artisan storage:link
But the public/...
0
votes
0
answers
55
views
How to force MATLAB/Simulink to use symbolic link
In Windows, is there a way to force MATLAB to use symbolic link for the workspace directory? I tried both symbolic link as well as directory junction, but MATLAB/Simulink always resolves the link ...
0
votes
0
answers
31
views
Node.js fs.symlinkSync EPERM on Windows 10 without admin privileges
I’m running Node.js v14.17.0 on Windows 10 (Build 19042) as a normal user. I’ve enabled Developer Mode so that creating symlinks shouldn’t require elevation, but whenever I try:
const fs = require('fs'...
1
vote
0
answers
59
views
VS Code Python: Script runs with "Run" but fails with "Debug" when using symlinked python.exe
Background:
I'm facing an issue in VS Code where my Python script runs fine using the "Run" button but fails silently when using "Debug".
Environment:
Windows 10
Python 3.10
VS ...
-3
votes
1
answer
99
views
How does ping know that it was called by ping6 symbolic link? [closed]
When I'm executing ping4 linux.com in a bash terminal on Linux Mint 22.1 Kernel 6.8.0.55 the URL is resolved to a IPv4 address, when executing ping6 linux.com the URL is resolved to a IPv6 adress as ...
0
votes
1
answer
552
views
How to create a hard link in Windows 11 that points to a folder in WSL2-Ubuntu?
I have a folder in WSL2-Ubuntu whose path is \\wsl.localhost\Ubuntu\home\akira\project. I want to sync this folder with Dropbox. The Dropbox folder on Windows 11 is C:\Users\Akira\Dropbox. I tried
...
2
votes
2
answers
104
views
Atomically "moving" a directory in Linux, when it is not a symlink [closed]
Let's say I have two directories in Linux, /A and /B, a program uses /A, and I want now point /A to /B so that the program now sees /B when reading /A.
This is one way I could do that:
rm -rf /A
mv /B ...
0
votes
1
answer
135
views
CreateSymbolicLinkW failed: Bazel symlinks on Windows requires administrator privileges
While running yarn run devtools:test inside my Angular development fork on Windows 11 I got the following error output:
Process exited with status 1: Process exited with status 1
build-runfiles ...
1
vote
2
answers
82
views
Is it okay to use a symlink for my local .git folder?
I like to keep a copy of my /etc folder in a git repository. That way, if something changes and breaks but I don't notice it right away, I'm likely to have a diff that helps me recover pretty quickly.
...
2
votes
1
answer
45
views
git (windows): how to get information if a file in repo (in git objects?) is a symlink or not
I have several symbolic links (file and directory links) in my repository.
When I clone the repository it depends if the destination file system is able to handle symbolic links or not.
When it's not ...