Tag Info

Hot answers tagged

3

Use relative symlinks instead: media └disk1 ├folder1 │ └folder2 (symlink to ../folder2) └folder2 When copied it will be the same, and since that is relative to the location, it will serve the same purpose in disk2. In case that's not clear, the idea is: cd /media/disk1/folder1 rm folder2 ln -s ../folder2 folder2 This last command is different ...


2

Go to the directory where you want to create the link and run the following command: ln -s ./ 2015 The ln command creates links, see man ln: -s, --symbolic make symbolic links instead of hard links


2

This is a symbolic link. Go the directory where they are pointing to and execute: ln -s . 2015 should do it. Note the destination shall not exist. If there is currently a directory named 2015 move it before linking.


1

Let's have a look at what your first command did: it created a symbolic link math in your current directory that points to the absolute path of the current directory. Lets inspect a bit closer: user@host:/free$ ls -al /free total 4 drwxrwxrwt 2 root root 40 Oct 14 10:29 . drwxr-xr-x 24 root root 4096 Oct 1 22:28 .. user@host:/free$ ln -vs /free math ...



Only top voted, non community-wiki answers of a minimum length are eligible