mirror of https://github.com/CrimsonTome/tldr.git
Apply the 'path/to/item' convention uniformly (#947)
parent
eef8de9e5c
commit
fa8b2d8f92
|
@ -16,4 +16,4 @@
|
|||
|
||||
- Push an Android application to an emulator/device:
|
||||
|
||||
`adb install -r {{apk.path}}`
|
||||
`adb install -r {{path/to/file.apk}}`
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
- Search for an exact string:
|
||||
|
||||
`grep {{search_string}} {{file_path}}`
|
||||
`grep {{search_string}} {{path/to/file}}`
|
||||
|
||||
- Search in case-insensitive mode:
|
||||
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
|
||||
- Create directories recursively (useful for creating nested dirs):
|
||||
|
||||
`mkdir -p {{path}}`
|
||||
`mkdir -p {{path/to/directory}}`
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
- Read an erroneous file, skip errors as `dd conv=sync,noerror` would:
|
||||
|
||||
`pv -EE {{path_to_faulty_media}} > image.img`
|
||||
`pv -EE {{path/to/faulty_media}} > image.img`
|
||||
|
||||
- Stop reading after reading specified amount of data, rate limit to 1K/s:
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
- Remove directory, provided it is empty. Use `rm` to remove not empty directories:
|
||||
|
||||
`rmdir {{directory}}`
|
||||
`rmdir {{path/to/directory}}`
|
||||
|
||||
- Remove directories recursively (useful for nested dirs):
|
||||
|
||||
`rmdir -p {{path}}`
|
||||
`rmdir -p {{path/to/directory}}`
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
- Unmount a filesystem:
|
||||
|
||||
`umount {{path_to_device_file}}`
|
||||
`umount {{path/to/device_file}}`
|
||||
|
||||
- OR:
|
||||
|
||||
`umount {{path_to_mounted_directory}}`
|
||||
`umount {{path/to/mounted_directory}}`
|
||||
|
||||
- Unmount all mounted filesystems (dangerous!):
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
- Format a drive (or a file) to make it a LUKS volume:
|
||||
|
||||
`cryptsetup luksFormat {{path_to_luks_volume_to_be}}`
|
||||
`cryptsetup luksFormat {{path/to/luks_volume_to_be}}`
|
||||
|
||||
- Open a volume so that you can access it decrypted on the fly at /dev/mapper/{{a}}:
|
||||
|
||||
`cryptsetup luksOpen {{path_to_luks_volume_to_be}} {{a}}`
|
||||
`cryptsetup luksOpen {{path/to/luks_volume_to_be}} {{a}}`
|
||||
|
|
|
@ -24,4 +24,4 @@
|
|||
|
||||
- Save iptables configuration:
|
||||
|
||||
`sudo iptables-save > {{path_to_iptables_file}}`
|
||||
`sudo iptables-save > {{path/to/iptables_file}}`
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
- Reveal a file in finder:
|
||||
|
||||
`open -R /path/dir/{{file}}`
|
||||
`open -R {{path/to/file}}`
|
||||
|
||||
- Open all the files of a given extension in the current directory with the associated application:
|
||||
|
||||
|
|
Loading…
Reference in New Issue