Re: how to print a 64 bit variable in Linux

2005-07-21 Thread SVisor
Mukund JB. wrote: Dear all, I have a truly miniature doubt here. sorry for asking this but I struggled enough before coming here. How do I print 8 byte (long long type) value in Linux? long long in dw; printf( "%lld",dw ); "man 3 printf" Or did I not understand your question. Regards, M

Re: How to add a new partition to an existing Red HAT 8

2005-02-20 Thread SVisor
bj wrote: ... When ever I use fdisk , and choose option n ( to add a partition ) , it gives an error message saying that I need extended partition or I need to delete old partition to create a new one . But I have 40 GB of un used space on my hard drive. You can only have 4 partitions per disk. I

Re: Create files with specific sizes?

2004-12-18 Thread SVisor
Simon Valiquette wrote: ... I wanted a file of garbage, not zeroes. So I tried: dd if=/dev/random of=file bs=1k count=1024 ... You have read and written 1024 partial blocks (ie. not complete). Why? I don't know. You did'nt say if the produced file is always the same size, or differents but

Re: Create files with specific sizes?

2004-12-16 Thread SVisor
... I wanted a file of garbage, not zeroes. So I tried: dd if=/dev/random of=file bs=1k count=1024 ... That's exactly what it is supposed to do. Perhaps you tought /dev/random could generate random numbers much faster. So when it's entropy pool was exhausted after 4KB, you tought it stopped w

Re: Create files with specific sizes?

2004-12-13 Thread SVisor
I have a follow up question. ... is there any way (some command) that will allow me to create blank files with specific sizes, eg 1MB, 5MB, 10MB etc. ... dd if=/dev/zero of=file1 bs=1k count=1024 I wanted a file of garbage, not zeroes. So I tried: dd if=/dev/random of=file bs=1k count=1024 But to