I am trying to make a symlink so all documents are on a different harddisk drive.I learned how to make a symlink and tried to create the desired symlink.this is the command I used in terminal:ln -s /media/Schijf-2/Nel/Mijn Documenten/ ./home/nel/DocumentenHowever, I receive an error message: ln: target '.home/username/Documenten' is not a directoryI found similar questions but I do not understand what I did wrong:https://askubuntu.com/questions/465493/how-can-i-symlink-my-home-folder-from-another-driveCreate a symbolic link relative to the current directoryI tried to symlink my /home/<user>/Documenten directory to /media/Schijf-2/Nel/Mijn Documenten.How can I succeed?
symlink /home/username/Documenten tot 2nd partition?
filenames;symlink;ln
There are a few problems with your command. You ranln -s /media/Schijf-2/Nel/Mijn Documenten/ ./home/nel/DocumentenThis means create a link called Documenten that points to /media/Schijf-2/Nel/Mijn Documenten/. Because of the space, the ln command was given Documenten and not ./home/nel/Documenten as a target. One of way of dealing with this is to quote the name (see here for more information):ln -s /media/Schijf-2/Nel/Mijn Documenten/ ./home/nel/DocumentenThe next issue is that apparently, there is already a file (and not a directory) called Documenten in your current directory which is why ln complains:$ lsfile.txt$ ln -s /tmp/ ./file.txt/ln: target ./file.txt/ is not a directory: Not a directorySo, to do what you actually wanted to do you will need to delete or rename the Documenten file:$ mv Documenten Documenten.oldThen, run this command to create a link:$ ln -s /media/Schijf-2/Nel/Mijn Documenten/ Documenten