Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 9226  / 1 Year ago, tue, may 16, 2023, 12:37:19

I want to create a symbolic link from my home directory to Dropbox, excluding Videos.



This is what I know:



ln -s /home/pt/ '/home/pt/Dropbox'


What should I do? What will happen if I'd like to delete the symbolic link?


More From » filesystem

 Answers
0


It would be better if you create symlinks for each file/directory instead.



mkdir /home/pt/Dropbox/pt
for d in /home/pt/*; do ln -s "$d" '/home/pt/Dropbox/pt/'; done


Then delete the link Videos and Dropbox



rm /home/pt/Dropbox/pt/Videos
rm /home/pt/Dropbox/pt/Dropbox


To delete every link, use



rm /home/pt/Dropbox/pt/*
rmdir /home/pt/Dropbox/pt

[#26358] Tuesday, May 16, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
soahan

Total Points: 230
Total Questions: 123
Total Answers: 123

Location: Maldives
Member since Tue, Dec 21, 2021
2 Years ago
;