Questions tagged [ln]
ln - Command line tool to create hard links to existing files and soft links to existing and non-existent files.
19
questions with no upvoted or accepted answers
5
votes
1
answer
297
views
How do I batch-export all the content contained in symbolic links? (and then delete them all)
So as an alternative to Recursive scp without following links or creating a giant tar file? (this could be an emergency since the remote files could be deleted any time soon), I'm thinking of deleting ...
4
votes
0
answers
3k
views
Nested Mount Best Practice
I have two filesystems that need to be mounted on a RedHat system /apps and /apps/label. /apps will have several sub directorates and label will just have files FTP'd to it.
Would it be better to ...
3
votes
2
answers
162
views
How can I copy directories recursively with hardlinks with variables in bash?
The operation I'm trying to do is take directory 1:
Dir1
Dir A
File A
Dir B
File B
Then use the find command to check every file in Dir 1 for whether or not they have an ...
3
votes
3
answers
6k
views
link config files
Problem
I'm trying to move my config files from a .dotfiles folder, and link those files to the corresponding config path.
Example
In this example I'm trying
$ ln -s ~/.dotfiles/nvim/init.vim ~/....
2
votes
0
answers
193
views
Maintain Ownership While Updating Symbolic Links
I'm migrating a file system and I need to update a few thousand symbolic links that'll break as a result of the migration. My plan was to find all the affected links and build a script that'd process ...
1
vote
1
answer
1k
views
Is there a standard Linux utility to generate shared library symlinks?
In an embedded environment that I'm working in, the following files are present:
lrwxrwxrwx 1 root root 19 Aug 23 2016 /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1 -> libjsoncpp.so.1.7.4
-rw-r--r-...
0
votes
1
answer
521
views
What does "resolve symlink" mean?
Im confused about this bash option:
-P
If set, do not resolve symbolic links when performing commands such as cd which change the current directory. The physical directory
is used instead. By default,...
0
votes
0
answers
327
views
Suggestions for issues with symbolic links
I love symbolic links. They allow me to reference a file from multiple places in my file system, use convenient names to refer to files with complex file names in a transparent manner (rather than ...
0
votes
0
answers
652
views
Move files from one symlink directory to another symlink directory
I want to move files in a symlink directory to another symlink directory, e.g. suppose that I do have symlink a and b directories in the same level and a contains file.txt
a/
|--- file.txt
b/
...
0
votes
0
answers
152
views
Symbolic link renaming backup files
I'm using backup files for when I create new symbolic link for files/folder. Because it's renaming existing symbolic files automatically on target folder like this :
Let's say /home/main/Desktop is ...
0
votes
1
answer
204
views
How to correct a link... Or is it a GNOME Desktop menu entry?
Few days ago, I've downloaded IntelliJ in my Downloads folder.
I've executed bin/idea.sh installed it, and a convenient icon became available in my GNOME Desktop named IntelliJ, and was shown whenever ...
0
votes
0
answers
224
views
Move files & folders and Symlink
I am looking for a way to exclude some files/folder and mass move files/folders with spaces and special characters from source to destination and then symlink after move completes. So far I have ...
0
votes
0
answers
72
views
How to copy files from linux rhel6 to another rhel6 (which are not connected)?
How to copy files or folders from linux rhel6 server to another (which are not connected) with same file or folder properties (especially symlinks) using zip?
The only way is FTP to server1 and copy ...
0
votes
1
answer
609
views
I want to make symlinks of all files in a directory EXCEPT the existing symlinks in the directory
I have a bash script that creates symlinks from the directories in one users directory to another users directory. I want the script to exclude existing symlinks in the source directory when creating ...
0
votes
2
answers
237
views
How do I delete all non-link files from a folder in Linux?
I accidentally copied a bunch of junk into /usr/lib .
How do I rm everything in there except folders and link files?
0
votes
1
answer
1k
views
how do i link one directory to another directory so that FTP or SMB share can still use that directory
Needing to link a SMB share directory to a empty directory with a FTP share. There is a empty directory inside of FTP_Share1 called smbshare which I am trying to link to SMB_Share1 to access all of ...
0
votes
1
answer
221
views
Linux - symlink between mtd partition and user data from mount location
Is it possible to create a symbolic link between NAND/NOR mtd partition and a file from mounted partition (e.g., ln -s /tmp/mnt/linux.bin /dev/mtdblock1)
-1
votes
2
answers
283
views
making a symlink based on corresponding file name
I want to create symlinks for my files (in total 350 files)
cd ./my_files
PD26400a.fixedheader.hs37d5.cram
PD26400a.fixedheader.hs37d5.cram.crai
...
I have a text file in which each file name in my ...
-1
votes
2
answers
99
views
How can i move from one directory to another using the command ln and a relativ path in linux
My problem is that I need to move from a directory to another one by only using the ln command
So here I have this relative path: ../../10/wsl and I know I have to create a symlink with ln to be able ...