Re: Useful use of dd [was: Useless use of "dd"]

2021-07-03 Thread tomas
On Sat, Jul 03, 2021 at 10:14:46AM +0300, Gunnar Gervin wrote: > Hi, Debian user 'club': > How can I get off this list in Android mobile? No idea about Android mobile (whatever that is ;-) but every mail you receive via this list carries the instructions. Look at the headers (however your mail cli

Re: Useful use of dd [was: Useless use of "dd"]

2021-07-03 Thread Gunnar Gervin
Hi, Debian user 'club': How can I get off this list in Android mobile? It's filling my mailbox; 5-10 emails a day!!! Gunnar On Fri, 2 Jul 2021, 18:03 David Wright, wrote: > On Fri 02 Jul 2021 at 13:35:17 (+0200), to...@tuxteam.de wrote: > > On Fri, Jul 02, 2021 at 07:31:24AM -0400, Greg Wooledge

Re: Useful use of dd

2021-07-02 Thread David Christensen
On 7/2/21 4:25 AM, Teemu Likonen wrote: * 2021-07-02 12:52:53+0200, Thomas Schmitt wrote: Teemu Likonen wrote: For this new subject I will add another use: quickly create empty file of specific size, for example 5 * 1024 bytes: $ dd of=empty obs=1024 seek=5 count=0 Not to forget creation

Re: Useful use of dd [was: Useless use of "dd"]

2021-07-02 Thread Kushal Kumaran
On Fri, Jul 02 2021 at 01:26:23 PM, Teemu Likonen wrote: > * 2021-07-02 09:49:23+0200, to...@tuxteam.de wrote: > >> FWIW, I've found something which could be deemed to be an "useful use >> of dd" which somehow bears a hidden symmetry. As a replacement for >> `cat' whenever you need to put a name o

Re: Useful use of dd [was: Useless use of "dd"]

2021-07-02 Thread tomas
On Fri, Jul 02, 2021 at 10:02:49AM -0500, David Wright wrote: > On Fri 02 Jul 2021 at 13:35:17 (+0200), to...@tuxteam.de wrote: [...] > > Eek. Thanks. > > This reminds me of the sentiment expressed in > https://lists.debian.org/debian-user/2019/08/msg01454.html :-) Cheers - t signature.asc

Re: Useful use of dd [was: Useless use of "dd"]

2021-07-02 Thread David Wright
On Fri 02 Jul 2021 at 13:35:17 (+0200), to...@tuxteam.de wrote: > On Fri, Jul 02, 2021 at 07:31:24AM -0400, Greg Wooledge wrote: > > On Fri, Jul 02, 2021 at 09:49:23AM +0200, to...@tuxteam.de wrote: > > > sudo dd of=/etc/hosts oflags=append > > > > This appears to be a typo for "oflag=append", w

Re: Useful use of dd

2021-07-02 Thread Michael Stone
On Fri, Jul 02, 2021 at 01:26:23PM +0300, Teemu Likonen wrote: * 2021-07-02 09:49:23+0200, to...@tuxteam.de wrote:

Re: Useful use of dd [was: Useless use of "dd"]

2021-07-02 Thread tomas
On Fri, Jul 02, 2021 at 07:31:24AM -0400, Greg Wooledge wrote: > On Fri, Jul 02, 2021 at 09:49:23AM +0200, to...@tuxteam.de wrote: > > sudo dd of=/etc/hosts oflags=append > > This appears to be a typo for "oflag=append", which is a GNU extension, > not part of the standard POSIX dd. No wonder I

Re: Useful use of dd [was: Useless use of "dd"]

2021-07-02 Thread Greg Wooledge
On Fri, Jul 02, 2021 at 09:49:23AM +0200, to...@tuxteam.de wrote: > sudo dd of=/etc/hosts oflags=append This appears to be a typo for "oflag=append", which is a GNU extension, not part of the standard POSIX dd. No wonder I didn't know about it. ;-) The bullseye version of GNU coreutils dd also

Re: Useful use of dd

2021-07-02 Thread Teemu Likonen
* 2021-07-02 12:52:53+0200, Thomas Schmitt wrote: > Teemu Likonen wrote: >> For this new subject I will add another use: quickly create empty file >> of specific size, for example 5 * 1024 bytes: >>$ dd of=empty obs=1024 seek=5 count=0 > > Not to forget creation of sparse files with few disk c

Re: Useful use of dd

2021-07-02 Thread tomas
On Fri, Jul 02, 2021 at 12:52:53PM +0200, Thomas Schmitt wrote: > Hi, > > Teemu Likonen wrote: > > For this new subject I will add another use: quickly create empty file > > of specific size, for example 5 * 1024 bytes: > >$ dd of=empty obs=1024 seek=5 count=0 > > Not to forget creation of sp

Re: Useful use of dd [was: Useless use of "dd"]

2021-07-02 Thread tomas
On Fri, Jul 02, 2021 at 01:26:23PM +0300, Teemu Likonen wrote: > * 2021-07-02 09:49:23+0200, to...@tuxteam.de wrote: > > > FWIW, I've found something which could be deemed to be an "useful use > > of dd" which somehow bears a hidden symmetry. As a replacement for > > `cat' whenever you need to put

Re: Useful use of dd

2021-07-02 Thread Thomas Schmitt
Hi, Teemu Likonen wrote: > For this new subject I will add another use: quickly create empty file > of specific size, for example 5 * 1024 bytes: >$ dd of=empty obs=1024 seek=5 count=0 Not to forget creation of sparse files with few disk consumption. For testing zisofs i have this in a scrip

Re: Useful use of dd [was: Useless use of "dd"]

2021-07-02 Thread Teemu Likonen
* 2021-07-02 09:49:23+0200, to...@tuxteam.de wrote: > FWIW, I've found something which could be deemed to be an "useful use > of dd" which somehow bears a hidden symmetry. As a replacement for > `cat' whenever you need to put a name on the output file. For this new subject I will add another use: