📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials Linux Command Line Symbolic Links

Symbolic Links

4 min read
Create symlinks with ln -s /target /linkname. A symlink is a pointer — deleting the link does not affect the target. rm removes just the link. Used in versioned deployments where 'current' points to the active release.

Symbolic Links

# Create symlink
ln -s /var/www/html /home/alice/www

# Hard link
ln original.txt hardlink.txt

# Check symlink target
ls -la www
# lrwxrwxrwx 1 alice alice 13 ... www -> /var/www/html

# Remove symlink
rm www  # removes link, not target