Tuesday, November 18, 2014

Copying text file using dd command

Copying text file using dd command


$ cat >myjunkss
THis is a testing of a file to test dd command
$ cat myjunkss | dd of=/var/tmp/myddout.txt oflag=append conv-notrunc
dd: bad argument: "oflag=append"


$ ls -l /var/tmp/myddout.txt
/var/tmp/myddout.txt: No such file or directory


$ cat myjunkss | dd of=/var/tmp/myddout.txt
0+1 records in
0+1 records out


$ ls -l /var/tmp/myddout.txt
-rw-r--r--   1 c13637   sysadmin      47 Nov 18 14:07 /var/tmp/myddout.txt


$ cat /var/tmp/myddout.txt
THis is a testing of a file to test dd command
$

No comments:

Post a Comment