[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [1/2OT] how to delete ??? file



On Friday 18,January,2013 08:26 PM, Martin Steigerwald wrote:
> Am Freitag, 18. Januar 2013 schrieb Doug:
>> On 01/18/2013 12:29 AM, lina wrote:
>>> Hi,
>>>
>>> I don't know from where jump out a directory with following info.
>>>
>>> $ ls -lrt try/
>>> ls: cannot access try/STEPS: Permission denied
>>> ls: cannot access try/test_xtc2pdb.f: Permission denied
>>> ls: cannot access try/18059-18059.xtc: Permission denied
>>> ls: cannot access try/read_xtc_main.f: Permission denied
>>> ls: cannot access try/PARA: Permission denied
>>> ls: cannot access try/fort.21: Permission denied
>>> ls: cannot access try/CA-ch1.ndx: Permission denied
>>> ls: cannot access try/CA.ndx: Permission denied
>>> ls: cannot access try/Makefile: Permission denied
>>> -????????? ? ? ? ?            ? XX.tar
>>> -????????? ? ? ? ?            ? try.pdb
>>> -????????? ? ? ? ?            ? try-c.pdb
>>> -????????? ? ? ? ?            ? test_xtc2pdb.f
>>> -????????? ? ? ? ?            ? SUB_UTILITY.o
>>> -????????? ? ? ? ?            ? SUB_UTILITY.f
> […]
>>> I wonder how can I delete it?
> 
>> What happens if you do rm -rf /try from root?
>> (I/m not all that familiar with Deb, but you must
>> have some way to get admin permission, if you
>> are the owner of the install. su  or perhaps sudo.)
> 
> Careful:
> 
> 1) From the above output it it not certain the the directory is in /.

It is my /home/lina/try directory.

Honest speaking, I even didn't know when it showed up. And for those
files inside, it looks so strange for me. might some Fortran code? or
something.

$ cd try/
-bash: cd: try/: Permission denied

I don't feel so comfortable to disturb the root, so second thought, I
will keep this directory since I can't delete.

Any further suggestions are still highly appreciated.

Best regards,

> 
> 2) And no its not cool to insert -rf into rm by default. Modern linux 
> filesystems on modern storage can delete several thousands files a second! So 
> if you just wanted to delete a file and you added rm -rf, just cause you 
> think you are Linux ubergeek, and then by mistake you gave rm a directory… 
> well farewell to your data.
> 
> 
> So first think, then only if really necessary use rm -rf or kill -9.
> 
> Ciao,


Reply to: