ln -s soft links knowledge summary

ln -s soft links knowledge summary

1, soft and even established: ln -s source file of the soft link file

2. Myth: soft link is created, it means that there is a soft link to the file can not be created before

3, analogy: win Shortcuts

4, delete: rm can, but the source file will not be affected

5, failure: no more source files or change the path; ls -l will see when viewing the source file has a flashing red background

6, the difference between: own inode (compared to hard link)

7, point: you can point to files, directories

8, Application: hide the source file path, real name, software upgrades

9, long-winded: hard links can not point to a directory, but you can play that game - a soft link refers to the directory - Create a hard link for the soft link

   Example: / home / oldboy (oldboy directory)

          ln -s / home / oldboy / tmp / oldmy (hidden source file path name)

          ln / tmp / oldmy / oldyou (hard copy links create a soft link)

The following are the commands in the root directory of the VOC data sets into pytorch1.0 example projects

(pytorch1.0) zhangwenchi@cpdp151:~/faster-rcnn_pytorch$ ln -s /home/zhangwenchi/dataset/VOCdevkit2007 /home/zhangwenchi/faster-rcnn.pytorch-pytorch-1.0/data/VOCdevkit2007

 

Guess you like

Origin www.cnblogs.com/wind-chaser/p/11358427.html