Jeff Abrahamson on Wed, 6 Jun 2001 06:30:06 -0400


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

Re: file system shenanigans (was: Re: [PLUG] ELF Init section)


On Tue, Jun 05, 2001 at 08:41:26PM +0000, qumak wrote:
> Le Mardi  5 Juin 2001 20:39, vous (qumak) avez écrit :
> > well - this is what i see with du, would suggest against the 1K rule:
> > [qumak@XXXX qumak]$ echo 'test' > sample
> > [qumak@XXXX qumak]$ du -b sample
> > 4096    sample
> > [qumak@XXXX qumak]$ wc -c sample
> >       5 sample
> > [qumak@XXXX qumak]$
> >
> >
> > this to me would suggest that du can be only as specific as the block size
> > of your filesystem (the -b option looks for bits, by the way - much like wc
> > -c, except of course the 4091 extra non-existant bits ;))
> >
> > I'm assuming the fifth byte is in fact the first, being a magic number, but
> > i'm probably wrong, it could be something else entirely ;)
> ok yeah i was wrong - it's the last byte (i looked in hexedit) - hex code 0A
> 
> anyone know exactly what that is?  would i be safe to assume that it means 
> EOF?

0xA == '\n' is the LF that echo emits.

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>



______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug