Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there,
I made a soft link to my /bin/ directory and now I want to remove it.
I created it as follows:
ln -s /bin/ binlink
neither "rm binlink" nor "unlink binlink" remove it. rm binlink yields the complaint that binlink is a directory, whereas rmdir and unlink say that it is not a Directory and refuse to remove it.
What do I do? Also, I am afraid of the sensitivity of the case since binlink is a link to my /bin/ folder.
ANy help is greatly appreciated.
P.S. I am going through a book on Linux, and I created the link just for testing purposes.
are you sure this won't remove everything from my /bin/ folder? I have not tried it? I'd rather not take chances and see what happens. what do you think?
P.S. I actually tried rm-r, but not -f. To no avail....
But be sure to NOT include the trailing '/' which will trigger the directory warning as it refers to the /bin/ directory itself - and yes rm -rf binlink/ WILL remove everythign from the /bin directory - DON'T DO THAT!.
Code:
rm binlink/ - refers to the directory linked, i.e. /bin/
rm binlink - refers to the symlink itself
rm binlink (wiithout the trailing slash worked fine).
I used tab for autocompletion of the link name and it adds the trailing slash, that's why it did not work.
Thanks a lot everyone, doughyi8u, rknichols, astrogeek.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.