rm -rf ~/Downloads
ln -s ~/Documents/MyOwnDownloads ~/Downloads
是否可行?是否工作正常如原生 ~/Downloads ?
rm -rf ~/Downloads
ln -s ~/Documents/MyOwnDownloads ~/Downloads
是否可行?是否工作正常如原生 ~/Downloads ?
|
leon0318Aug 4, 2021 via iPhone
1
是的
|
|
FurN1Aug 4, 2021
2
macOS 自己用 Finder 能创建的快捷方式是 alias,和你创建的 symlink 稍有区别,参见 https://apple.stackexchange.com/a/323217/350878
按照这个链接的解释,symlink 是否可行要看你希望后面做什么事了:if you move a file, aliases are superior since they can often still point at the correct file when a change happens. |
|
dozer47528Aug 4, 2021
3
可行,但不是所有 App 都 follow 了 symlink 。
我测试下来,截图不行,Mail 不行,需要重新手动指定到新的地址 |
|
VolekingsgAug 4, 2021
4
可以,比如说我把 Documents 软链接到了 Dropbox 中的 Document,不过记得把这个文件锁起来,否则在较新的几个版本的 macOS 上重启后会自动删除软链接恢复成文件夹
rm -rf ~/Documents && ln -s ~/Dropbox/Documents ~ SetFileIcon -image ~/Pictures/icons/macOS_Documents.icns -file ~/Documents sudo chflags -h uchg ~/Documents |
|
maizeroAug 4, 2021
5
关注
|
|
wclebbAug 4, 2021
6
这个思路可行,毕竟下载的文件有时候懒得清理但还是占用宝贵的空间。
|
|
MrCurlyAug 4, 2021
7
没太理解,这么做能实现什么特殊的需求么?毕竟能操作 downloads 就能操作 myowndownloads
|
|
davehAug 4, 2021 via iPhone
8
可行,但 Documents 在 iCloud Driver 上,意味你下载到 Download,又要上传一遍到 iCloud 。。。网速快不是问题。
|