[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: suggestion: /etc/dd.conf
From: |
Erik Auerswald |
Subject: |
Re: suggestion: /etc/dd.conf |
Date: |
Tue, 28 Apr 2020 15:46:07 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hello turgut,
On Tue, Apr 28, 2020 at 12:14:04PM +0300, turgut kalfaoğlu wrote:
> I would like to suggest and in fact volunteer to create a conf file
> option to 'dd'.
>
> It has dozens of hard to remember options, and there are some that I
> would like to use all the time.
>
> For example, I am currently doing:
>
> $ sudo dd if=CentOS-6.10-x86_64-LiveDVD.iso of=/dev/sdc bs=4096 conv=fsync
>
> right now, and I have to lookup the conv=fsync option every time I
> want to write to a USB drive.
>
> Any thoughts?
You could consider using an alias, e.g.:
alias ddusb "dd bs=4096 conv=fsync"
You could add this to your shell startup files, e.g., the ~/.bashrc file.
Some GNU/Linux distributions read the file ~/.bash_aliases if it exists,
with the intent to place alias definitions there.
Thanks,
Erik