From fa8b2d8f92abfcbea46036b8a30c129ac53abdcb Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 13 Jul 2016 14:23:22 +0530 Subject: [PATCH] Apply the 'path/to/item' convention uniformly (#947) --- pages/common/adb.md | 2 +- pages/common/grep.md | 2 +- pages/common/mkdir.md | 2 +- pages/common/pv.md | 2 +- pages/common/rmdir.md | 4 ++-- pages/common/umount.md | 4 ++-- pages/linux/cryptsetup.md | 4 ++-- pages/linux/iptables.md | 2 +- pages/osx/open.md | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pages/common/adb.md b/pages/common/adb.md index f063895ec..48a6742b1 100644 --- a/pages/common/adb.md +++ b/pages/common/adb.md @@ -16,4 +16,4 @@ - Push an Android application to an emulator/device: -`adb install -r {{apk.path}}` +`adb install -r {{path/to/file.apk}}` diff --git a/pages/common/grep.md b/pages/common/grep.md index 44a4f6856..ea933a7c8 100644 --- a/pages/common/grep.md +++ b/pages/common/grep.md @@ -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: diff --git a/pages/common/mkdir.md b/pages/common/mkdir.md index 392e2ffa5..905bba39f 100644 --- a/pages/common/mkdir.md +++ b/pages/common/mkdir.md @@ -8,4 +8,4 @@ - Create directories recursively (useful for creating nested dirs): -`mkdir -p {{path}}` +`mkdir -p {{path/to/directory}}` diff --git a/pages/common/pv.md b/pages/common/pv.md index 76a4fc1ef..3705bd683 100644 --- a/pages/common/pv.md +++ b/pages/common/pv.md @@ -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: diff --git a/pages/common/rmdir.md b/pages/common/rmdir.md index cd9d02bcc..eb11ad2eb 100644 --- a/pages/common/rmdir.md +++ b/pages/common/rmdir.md @@ -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}}` diff --git a/pages/common/umount.md b/pages/common/umount.md index a29738f42..c51c5a171 100644 --- a/pages/common/umount.md +++ b/pages/common/umount.md @@ -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!): diff --git a/pages/linux/cryptsetup.md b/pages/linux/cryptsetup.md index 861c594cd..0142633f8 100644 --- a/pages/linux/cryptsetup.md +++ b/pages/linux/cryptsetup.md @@ -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}}` diff --git a/pages/linux/iptables.md b/pages/linux/iptables.md index 1516c9271..5374b8f7f 100644 --- a/pages/linux/iptables.md +++ b/pages/linux/iptables.md @@ -24,4 +24,4 @@ - Save iptables configuration: -`sudo iptables-save > {{path_to_iptables_file}}` +`sudo iptables-save > {{path/to/iptables_file}}` diff --git a/pages/osx/open.md b/pages/osx/open.md index 0fb01e010..d4d1152c0 100644 --- a/pages/osx/open.md +++ b/pages/osx/open.md @@ -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: