×
Create a new article
Write your page title here:
We currently have 1,301 articles on SubWiki. Type your article name above or click on one of the titles below and start writing!



Create Symbolic Links May 2026

Create Symbolic Links May 2026

unlink my_link rm my_link # same effect ⚠️ – rm my_link/ could delete the contents of the target directory. Common Pitfalls | Mistake | Consequence | |---------|-------------| | ln -s target/ link/ | Creates link inside link/ if link/ exists | | Relative path confusion | Symlink breaks if moved without updating target path | | rm -rf link/ | Deletes target directory if link ends with / | Handy One-Liner: Batch create symlinks Link all .txt files from src/ to dest/ :

for f in src/*.txt; do ln -s "$f" "dest/$(basename "$f")"; done create symbolic links