Update cheatsheets

This commit is contained in:
ivuorinen
2024-06-10 00:15:12 +00:00
parent 0f99439c7f
commit d9cb45e38a
5 changed files with 14 additions and 14 deletions

View File

@@ -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}}`

View File

@@ -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)`