SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
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.
i was just finished with a paper. i saved it several places on the internet so that i can download it tomorrow for sure, not caring about if one or two servers break down. i have my own forum and wanted to save a copy there, too. it only allows .txt files, no .doc - i need to use this format since we only use microschrott at the university. so i changed it like i was used to at windows: giving it a new file-ending, planning to eventually undo this change again after downloading and having a fully functional file then.
but i could simply not delete it afterwards. it said that the file is not there anymore and even if i try to rename it it won't disappear. this is how it looks like now.
that is really strange... the root command to delete would so be "rm -rf [textfile]"? i don't really have an idea what's it proper name now, since it did never display the fileending .txt - so trying this might get me in trouble, too. but i could try to delete the whole folder, no problem that. how to?
thank you very much for posting - hoping for a solution for both of us...
rm -rf <directory> will kill off a directory and everything under it.
-r = recursive, or move into subdirectories and delete their contents
-f = force, do not ask for confirmation, or the opposite of -i
man rm for more details
A linux system is not like a windows system in that it doesn't matter if something has the file open ... If you can find the file on disk, and you have sufficient priveledges, you can delete it.
(You can mark a file undeletable with chattr though I doubt that's the case here. man chattr for more info.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.