Friday, February 17, 2023

Create symlink to file or folder contents on Linux

Create symlink to all contents of a folder or everything in folder:

ln -s /media/user/HDD/folder/another/* /home/user/Downloads/another/

Create symlink to certain file in folder:

ln -s /media/user/HDD/folder/another/file.txt /home/user/Downloads/another/

Create symlink to certain folder in folder:

ln -s /media/user/HDD/folder/another/folderName /home/user/Downloads/another/

No comments:

Post a Comment