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

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



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 /.

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,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7


Reply to: