Login using Social Account
     Continue with GoogleLogin using your credentials
A symbolic link points to a file. In case, the original file is deleted, the symbolic link would be pointing to non-existing file.
You can create a symbolic link to a directory too.
Create a file:
nano orig_text1
Put the following text in it:
This is my not-so-valuable data
Save and Exit: Press Ctrl+x
and y
Check if the file has right data:
cat orig_text1
Create Link:
ln -s orig_text1 myslink
Check if it is there:
ls -l myslink
You should see something like this
lrwxrwxrwx 1 sandeepgiri9034 sandeepgiri9034 10 Dec 14 11:45 myslink -> orig_text1
Check the contents of myslink
using:
cat myslink
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Loading comments...