Odd problem with terminal
Robert Holtzman
holtzm at cox.net
Sat Sep 4 23:09:02 UTC 2010
On Sat, Sep 04, 2010 at 03:12:48PM -0600, Karl Larsen wrote:
> On 09/04/2010 02:50 PM, Steven Susbauer wrote:
...........snip.........
> > The proper way to delete all files on the stick would be
> >
> > sudo rm -rf 4083-B092/*
> >
> > Of course, you could always just reformat the stick as well.
> >
> >
> I tried your idea without the sudo. Here is what it did:
> karl at Lucid:~$ cd /media
> karl at Lucid:/media$ ls
> 4083-B092
> karl at Lucid:/media$ rm -rf 4083-B092/*
> karl at Lucid:/media$ ls
> 4083-B092
> karl at Lucid:/media$ rm -rf 4083-B092/*
> karl at Lucid:/media$ ls
> 4083-B092
> karl at Lucid:/media$
> karl at Lucid:/media$ ls
> 4083-B092
> karl at Lucid:/media$ sudo rm -rf 4083-B092/*
> [sudo] password for karl:
> karl at Lucid:/media$ ls
> 4083-B092
Did it ever occur to you to try "ls 4083-B092" after you ran "rm -rf
4083-B092/*"? If so you would have seen that it was an empty
directory and you could have removed it.
Did you really think that "rm -rf 4083-B092/*" would delete the
directory? Did you not read Steven Susbauer's post about "The proper way
to delete all files on the stick would be"......?
^^^^^
--
Bob Holtzman
Key ID: 8D549279
"If you think you're getting free lunch,
check the price of the beer"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100904/b7194fd8/attachment.sig>
More information about the ubuntu-users
mailing list