[SOLVED] Cannot delete a recently created directory in Lubuntu, or files in that directory
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.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by Emerson
Code:
sudo rm -rf /some/directory
The above is absolutely safe command. It will remove /some/directory with all files and subdirectories in it. I have no clue what you are talking about.
The above is NOT what you posted. What you posted is below and there is no mention of any path to a directory. The fact you "have no clue" what I am talking about tells me why you were so quick to tell him to rm -rf without mentioning a path to use.
Quote:
Originally Posted by Emerson
You can get rid of this directory if you use sudo in conjunction with rm -rf command. Be careful with that, it can destroy your installation/files if run on wrong directory. You can use sudo chown to change ownership of this directory and files in it, then you can delete it as your user, much safer.
You can get rid of this directory if you use sudo in conjunction with rm -rf command. Be careful with that, it can destroy your installation/files if run on wrong directory.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by Emerson
You have a problem reading it?
No I can perfectly clearly that you do not tell him any path at all. You do say be careful but he used sudo to create a folder so he is obviously a beginner and needs help to do it safely not just a blanket use this but be careful.
OK, I'm all wrong and you are all right. No problem, just do not beat your spouse and kids and please call your shrink first thing tomorrow morning. Promise?
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by Emerson
OK, I'm all wrong and you are all right. No problem, just do not beat your spouse and kids and please call your shrink first thing tomorrow morning. Promise?
These forums are to help people. It can be fun if we make it fun - and still most helpful to those in need of help. This thread is no fun any more. Me quitting.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by Emerson
These forums are to help people. It can be fun if we make it fun - and still most helpful to those in need of help. This thread is no fun any more. Me quitting.
Yep and I was being helpful by urging the OP not to use your command as you posted it. I'm not sure it would be fun for the OP if he wrecked all or part of his system just because you posted incomplete information.
k3lt01, I think Emerson clearly stated his warnings, even if I would have suggested not to use the -f option at all. In this way, the system should have asked confirmation for every item before removing it. A little bit annoying if repeated many many times, but absolutely safe. And maybe the rm suggestion could have been avoided in favor of chown, as mentioned later in the same post.
To both of you: please don't let the discussion degenerates and please take in mind that personal attacks are not fair and are not tolerated here at LinuxQuestions. Especially those ones like this:
Quote:
Originally Posted by Emerson
No problem, just do not beat your spouse and kids and please call your shrink first thing tomorrow morning. Promise?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.