Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I accidentally removed the following symbolic link:
rm: remove symbolic link `/scripts/restorepkg'? y
How can I restore this?
Regards,
If you remove the symlink the original file is unchanged , you can restore the symlink through ln -s:
ln -s /path/to/original/ /path/to/link
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I want to delete a #tem.txt# called # that for some reason using emacs appeared
is between two # and I have not been able to remove it using rm, rm -f, unlink
See my file
Since '#' is a special character, you can try rm \#tem.txt\#
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
when I exit my vim, I accidentally typed wq~, and it created my home directory in my other linux directory which I am working on, anyway to remove it?
Quote it
rm '~'
You can also rename it to the name you want:
mv '~' correctname
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have my home directory in /home/tom.
In another partition I have a folder called /data/tomhome.
Basically, I copy all of my data from /data/tomhome to /home/tom
But whenever I update files in /data/tomhome, I still have to copy them to the other directory.
Another way will be to symlink all files but i don't want to make 20 symlinks.
Is there any other way for this?
Try
ln -s /home/tom /data/tomhome
Note: You should delete the directory /data/tomhome with rm -rf /data/tomhome if it exists already
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
By using "ln -s a b", it creates a soft-link from b to a with a relative path. If 'b' is moved to another directory, it would get broken.
Is there any way so I can create an link with an absolute path?
Simply use the full path to the link target:
ln -s /full/path/to/a b
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a softlink mistakenly created as this:
/backup_rmbeir1 -> /backup_rmbeir1
I want to delete the soft link now. If I do :
rm /backup_rmbeir1
will this delete the link, or the actual file ? If not what will be the best way to achieve this ? I tried the unlink command but didn't help.
The soft link is /backup/backup_rmbeir1, so delete that by rm /backup/backup_rmbeir1.