Friday, March 24, 2017

Re: [LINUX_Newbies] rm -f

 

the problem is NOT

system files

we wanna delete in win and libnux HTM files.

RM brings the message: file is in use

regards

On 24.03.2017 17:41, Michael msulli1355@gmail.com [LINUX_Newbies] wrote:
>
>
> RESPONSE BELOW
> On 03/24/2017 08:20 AM, Scott scottro@nyc.rr.com [LINUX_Newbies] wrote:
>>
>>
>> On Fri, Mar 24, 2017 at 01:33:30PM +0100, 'highskywhy@yahoo.de'
>> highskywhy@yahoo.de [LINUX_Newbies] wrote:
>>> hello
>>> how to delete undeletable htm files?
>>>
>>> I found rm -f
>>> But in the manual is written rm -f or rm -ff are very dangerous.
>>> What can I do wrong?
>>
>> -f means force. However, if you don't have write permissions to the file,
>> you still won't be able to do it.
>>
>> I'm not familiar with -ff, you may mean -rf. The -r means recursive--that
>> is, if you're removing a directory, adding -r to it means you're removing
>> everything in that directory. It can be dangerous because it doesn't go
>> into trash, it is gone forever.
>>
>> If you are in the wrong directory when you type it, you can damage your
>> system. For example, if you're in the /usr directory and think you are
> in a
>> user's directory, and you do sudo rm -rf * that will remove everything
>> under /usr, breaking the system.
>>
>> It's always good to do echo rm -rf <whatever> before doing it, which will
>> show you the results. I remember working on a server we hosted, and though
>> these days, I seldom bother with echo rm -rf, for whatever reason, I did.
>> It turned out that I was in the / directory, rather than where I thought I
>> was, and if I'd just done rm -rf *, I would have brought the client down
>> till we could restore from backups.
>>
>> Again, the file you mention may need root privilege to be removed, that's
>> a more likely reason than not using -f, unless for some reason, it's been
>> made immutable--that is, maybe someone ran a chattr on it, making the file
>> unable to be removed.
>>
>> --

__._,_.___

Posted by: "highskywhy@yahoo.de" <highskywhy@yahoo.de>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (22)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

No comments:

Post a Comment