How to create a link to a directory [closed]

2019-01-16 00:07发布

How to create a link xxx to /home/jake/doc/test/2000/something/?

Assume the xxx is created under /home/jake and you're currently in /home/jake. When you do cd xxx, you directly go to /home/jake/doc/test/2000/something/.

2条回答
何必那么认真
2楼-- · 2019-01-16 00:45

you should use :

ln -s /home/jake/doc/test/2000/something xxx
查看更多
你好瞎i
3楼-- · 2019-01-16 00:46

Symbolic or soft link (files or directories, more flexible and self documenting)

#     Source                             Link
ln -s /home/jake/doc/test/2000/something /home/jake/xxx

Hard link (files only, less flexible and not self documenting)

#   Source                             Link
ln /home/jake/doc/test/2000/something /home/jake/xxx

More information: man ln

查看更多
登录 后发表回答