[ale] shell question
DJ-Pfulio
DJPfulio at jdpfu.com
Tue Oct 6 17:33:02 EDT 2015
In Unix, *.* doesn't mean the same thing as * - which is probably what
you want. Extensions don't mean a thing to Linux - they are only there
for humans who came from DOS/Windows. For example, a pdf file doesn't
actually need to end in .pdf to be loaded inside evince. The files
"magic number" must show it as a PDF file, however. Try it if you don't
believe me.
For the file deletion, I would have tried
$ rm \!*
first. Then if that didn't work,
$ rm -i *
BTW, if you are seeing files like that on a disk and they aren't from
some foreign language, it is time to run fsck, bigtime. I thought UTF8
was the standard character set for filesystems on Linux these days?
Or is this from a camera with FAT/FAT32. Time to do a real format, not
just a "quick format"
On 10/06/2015 04:09 PM, Sean Kilpatrick wrote:
> I am trying to clean up an SD card. "ls-ahl" gives me this:
>
> -rw-r--r--. 1 kilpatms users 224K Sep 13 15:04 !µ"µ#µ$µ.%µ&
> drwx------. 9 kilpatms users 16K Oct 6 15:38 .
> drwxr-x---+ 3 root root 60 Oct 6 15:33 ..
> -rw-r--r--. 1 kilpatms users 832K Sep 13 15:04 ?µ?µ?µ?µ.?µ?
> drwx------. 5 kilpatms users 192K Aug 27 2011 DCIM
> drwx------. 2 kilpatms users 32K Oct 6 15:35 FOUND.000
> drwx------. 2 kilpatms users 32K Sep 13 17:08 .fseventsd
> -rw-r--r--. 1 kilpatms users 32K Jul 4 2012 MISC
> drwx------. 2 kilpatms users 32K Oct 6 15:34 NCFL
> -rw-r--r--. 1 kilpatms users 512 Oct 6 15:33 NIKON001.DSC
> drwx------. 2 kilpatms users 32K Sep 13 15:15 System Volume Information
> drwx------. 4 kilpatms users 32K Oct 6 15:35 .Trash-1000
> drwx------. 2 kilpatms users 256K Nov 1 2014 .Trashes
> -rw-r--r--. 1 kilpatms users 0 Jan 1 1980 USBCô?
>
>
> I would like to delete the file beginning with ! and the one beginning
> with ?.
>
>
> But when I try "rm !*.*" I get this:
> rm -ahl.*
> rm: invalid option -- 'a'
> Try 'rm --help' for more information.
>
> which leads me to try rm ./!*, which doesn't work;
> neither does rm -- !*
>
>
>
> And when I try "rm ?*.*" I get this:
> rm: cannot remove ‘FOUND.000’: Is a directory
>
> Clues would be appreciated.
More information about the Ale
mailing list