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

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Clone a drive to another drive with 4 MiB block size and flush writes before the command terminates: - Clone a drive to another drive with 4 MiB block size and flush writes before the command terminates:
`dd bs={{4194304}} conv={{fsync}} if=/dev/{{source_drive}} of=/dev/{{dest_drive}}` `dd bs=4194304 conv=fsync if=/dev/{{source_drive}} of=/dev/{{dest_drive}}`
- Generate a file with a specific number of random bytes by using kernel random driver: - Generate a file with a specific number of random bytes by using kernel random driver:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Clone a drive to another drive with 4 MiB block size and flush writes before the command terminates: - Clone a drive to another drive with 4 MiB block size and flush writes before the command terminates:
`dd bs={{4M}} conv={{fsync}} if={{/dev/source_drive}} of={{/dev/dest_drive}}` `dd bs=4M conv=fsync if={{/dev/source_drive}} of={{/dev/dest_drive}}`
- Generate a file with a specific number of random bytes by using kernel random driver: - Generate a file with a specific number of random bytes by using kernel random driver:
@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
`dd if={{/dev/drive_device}} of={{path/to/file.img}}` `dd if={{/dev/drive_device}} of={{path/to/file.img}}`
- 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 -x dd)` `kill -USR1 $(pgrep -x dd)`

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: - 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: - 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: - 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: - 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` `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)` `kill -USR1 $(pgrep ^dd)`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# typeinc # typeinc
> An `ncurses` based terminal typing speed test program, written in python. > An `ncurses` based terminal typing speed test program, written in Python.
> Try out different difficulty levels and improve your typing speed. > Try out different difficulty levels and improve your typing speed.
> More information: <https://github.com/AnirudhG07/Typeinc>. > More information: <https://github.com/AnirudhG07/Typeinc>.
@@ -13,14 +13,14 @@ source: https://github.com/tldr-pages/tldr.git
`typeinc` `typeinc`
- Display the top 10 [r]anklist for input difficulty level: - Display the top 10 rank list for input difficulty level:
`typeinc --ranklist {{difficulty_level}}` `typeinc {{-r|--ranklist}} {{difficulty_level}}`
- Get random English [w]ords present in our wordlist: - Get random English words present in our wordlist:
`typeinc --words {{word_count}}` `typeinc {{-w|--words}} {{word_count}}`
- Calculate hypothetical Typeinc [s]core: - Calculate hypothetical Typeinc score:
`typeinc --score` `typeinc {{-s|--score}}`