mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-15 01:59:58 +00:00
Update cheatsheets
This commit is contained in:
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display a specific date (represented as a Unix timestamp) using the default format:
|
||||
|
||||
`date -r 1473305798`
|
||||
`date -r {{1473305798}}`
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Clone a drive to another drive with 4 MB block, ignore error and show the progress:
|
||||
|
||||
`dd if={{/dev/source_device}} of={{/dev/dest_device}} bs={{4m}} conv={{noerror}} status=progress`
|
||||
`dd if={{/dev/source_device}} of={{/dev/dest_device}} bs=4m conv=noerror status=progress`
|
||||
|
||||
- Generate a file of 100 random bytes by using kernel random driver:
|
||||
|
||||
`dd if=/dev/urandom of={{path/to/random_file}} bs={{100}} count={{1}}`
|
||||
`dd if=/dev/urandom of={{path/to/random_file}} bs=100 count={{1}}`
|
||||
|
||||
- Benchmark the write performance of a disk:
|
||||
|
||||
@@ -32,6 +32,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`dd if={{path/to/file.img}} of={{/dev/drive_device}} status=progress`
|
||||
|
||||
- Check the progress of an ongoing dd operation (run this command from another shell):
|
||||
- Check the progress of an ongoing `dd` operation (run this command from another shell):
|
||||
|
||||
`kill -USR1 $(pgrep ^dd)`
|
||||
|
||||
Reference in New Issue
Block a user