You are on page 1of 6

Africa Creates!

Now Open! Enter your photos, video and audio in the annual celebration of Africa!

Category:Inferno (operating system) commands


1 language
 Category
 Talk
 Read
 Edit
 View history
Tools











Help
From Wikipedia, the free encyclopedia
The main article for this category is Inferno (operating system).

Pages in category "Inferno (operating system) commands"


The following 40 pages are in this category, out of 40 total. This list may not reflect recent
changes.
A
 Ar (Unix)
B
 Basename
C
 Cal (command)
 Cd (command)
 Chgrp
 Chmod
 Cmp (Unix)
 Comm
 Cp (Unix)
D
 Dd (Unix)
 Diff
 Du (Unix)
E
 Echo (command)
 Env
F
 Fmt (Unix)
G
 Grep
 Gzip
K
 Kill (command)
L
 Ls
M
 M4 (computer language)
 Mkdir
 Mv (Unix)
N
 Netstat
P
 Passwd
 Ps (Unix)
 Pwd
R
 Rm (Unix)
 Runas
S
 Sleep (command)
 Sort (Unix)
 Strings (Unix)
T
 Tail (Unix)
 Tee (command)
 Time (Unix)
 Touch (command)
 Tr (Unix)
 Tsort
U
 Uniq
W
 Wc (Unix)
Y
 Yacc
Categories:
 Computing commands
 Inferno (operating system)
 This page was last edited on 14 March 2022, at 12:47 (UTC).
 Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this
site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation,
Inc., a non-profit organization.

names are sometimes used for GNU's ddrescue , including addrescue (the name on freecode.com and
freshmeat.net), gddrescue (Debian package name), and gnu_ddrescue (openSUSE package name).
Another open-source program called savehd7 uses a sophisticated algorithm, but it also requires the
installation of its own programming-language interpreter.
Benchmarking drive performance[edit]
To make drive benchmark test and analyze the sequential (and usually single-threaded) system read and
write performance for 1024-byte blocks:
 Write performance: dd if=/dev/zero bs=1024 count=1000000 of=1GB_file_to_write
 Read performance: dd if=1GB_file_to_read of=/dev/null bs=1024
Generating a file with random data[edit]
To make a file of 100 random bytes using the kernel random driver:

dd if=/dev/urandom of=myrandom bs=100 count=1

Converting a file to upper case[edit]


To convert a file to uppercase:

dd if=filename of=filename1 conv=ucase,notrunc

Progress indicator[edit]
Being a program mainly designed as a filter, dd normally does not provide any progress indication. This can
be overcome by sending an USR1 signal to the running GNU dd process (INFO on BSD systems), resulting
in dd printing the current number of transferred blocks.
The following one-liner results in continuous output of progress every 10 seconds until the transfer is
finished, when dd-pid is replaced by the process-id of dd:

while kill -USR1 dd-pid ; do sleep 10 ; done

Newer versions of GNU dd support the status=progress option, which enables periodic printing of
transfer statistics to stderr.[24]

Forks[edit]
dcfldd [edit]
dcfldd is a fork of GNU dd that is an enhanced version developed by Nick Harbour, who at the time was
working for the United States' Department of Defense Computer Forensics Lab.[25][26][27] Compared
to dd, dcfldd allows more than one output file, supports simultaneous multiple checksum calculations,
provides a verification mode for file matching, and can display the percentage progress of an operation. As
of February 2024, the last release was 1.9.1 from April 2023.[28]
dc3dd[edit]
dc3dd is another fork of GNU dd from the United States Department of Defense Cyber Crime Center (DC3).
It can be seen as a continuation of the dcfldd, with a stated aim of updating whenever the GNU upstream is
updated. As of June 2023, the last release was 7.3.1 from April 2023.[29]

See also[edit]

 Free and open-source software portal

 Backup
 Disk cloning
 Disk Copy
 Disk image
 .img (filename extension)
 List of Unix commands
 ddrescue a GNU version that copies data from corrupted files

References[edit]
1. ^ Austin Group. "POSIX standard: dd invocation". Archived from the original on 2010-03-10. Retrieved 2016-
09-29.
2. ^ Chessman, Sam. "How and when to use the dd command?". CodeCoffee. Archived from the original on 14
Feb 2008. Retrieved 2008-02-19.

Data transfer forms of dd

blocks=$(isosize -d 2048 /dev/sr0)


Creates an ISO disk image from a CD-
dd if=/dev/sr0 of=isoimage.iso bs=2048
count=$blocks status=progress ROM, DVD or Blu-ray disc.[18]

dd if=system.img of=/dev/sdc bs=64M Restores a hard disk drive (or an SD card, for
conv=noerror example) from a previously created image.

dd if=/dev/sdb2 of=partition.image Create an image of the partition sdb2, using a 64


bs=64M conv=noerror MiB block size.

dd if=/dev/sda2 of=/dev/sdb2 bs=64M


conv=noerror
Clones one partition to another.

dd if=/dev/ad0 of=/dev/ad1 bs=64M


conv=noerror Clones a hard disk drive "ad0" to "ad1".

The noerror option means to keep going if there is an error, while the sync option causes output blocks to
be padded.
In-place modification[edit]
dd can modify data in place. For example, this overwrites the first 512 bytes of a file with null bytes:

dd if=/dev/zero of=path/to/file bs=512 count=1 conv=notrunc

The notrunc conversion option means do not truncate the output file — that is, if the output file already
exists, just replace the specified bytes and leave the rest of the output file alone. Without this
option, dd would create an output file 512 bytes long.
Master boot record backup and restore[edit]
The example above can also be used to back up and restore any region of a device to a file, such as
a master boot record.
To duplicate the first two sectors of a floppy disk:

dd if=/dev/fd0 of=MBRboot.img bs=512 count=2

Disk wipe[edit]
Main article: Data erasure
For security reasons, it is sometimes neces
ows EOF).

You might also like