5
rated 0 times
[
5]
[
0]
/ answers: 1 / hits: 23889
/ 1 Year ago, mon, march 13, 2023, 8:19:42
~/temp$ mkdir dir1
~/temp$ mkdir dir2
~/temp$ mkdir dir2/dir21
~/temp$ ln -s dir2/dir21 dir1/ln2dir21
~/temp$ mkdir dir1/ln2dir21/dir3
mkdir: cannot create directory ‘dir1/ln2dir21/dir3’: No such file or directory
What does the following command:
~/temp$ ln -s dir2/dir21 dir1/ln2dir21
create (there are no errors for the ln
command)? The created link dir1/ln2dir21
is red and it's type is lrwxrwxrwx
which seems to be a link. Then why can't create directory through that symbolic link?
More From » symbolic-link