Snippets Collections
# By default, each destination (name of new link) should not already exist

ln -s /home/user/project /var/www/html

# The link will be created inside /var/www/html having the name of the target i.e. project.
# If you want to have a symlink /var/www/html pointing to /home/user/project then you should not have the directory html present beforehand. So, you should only have /var/www and then running the following will create the desired symlink (don't do this unless you are sure)
star

Fri Jun 18 2021 08:58:12 GMT+0000 (Coordinated Universal Time) https://askubuntu.com/a/600732

#symlink #linux #filesystem

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension