Update cheatsheets

This commit is contained in:
ivuorinen
2024-06-20 00:14:06 +00:00
parent 22990a1ad7
commit ca669312bf
11 changed files with 14 additions and 10 deletions

View File

@@ -16,6 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
`git add -A`
- Add all files in the current folder:
`git add .`
- Only add already tracked files:
`git add -u`

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Print 3 lines of context around, before, or after each match:
`grep --{{context|before-context|after-context}} {{3}} "{{search_pattern}}" {{path/to/file}}`
`grep --{{context|before-context|after-context}} 3 "{{search_pattern}}" {{path/to/file}}`
- Print file name and line number for each match with color output:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Remove logical volumes.
> See also: `lvm`.
> More information: <https://man7.org/linux/man-pages/man8/lvremove.8.html>.
> More information: <https://manned.org/lvremove>.
- Remove a logical volume in a volume group:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# poweroff
> Power off the system.
> More information: <https://www.man7.org/linux/man-pages/man8/poweroff.8.html>.
> More information: <https://www.manned.org/poweroff>.
- Power off the system:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Initialize a disk or partition for use as a physical volume.
> See also: `lvm`.
> More information: <https://man7.org/linux/man-pages/man8/pvcreate.8.html>.
> More information: <https://manned.org/pvcreate>.
- Initialize the `/dev/sda1` volume for use by LVM:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Display information about Logical Volume Manager (LVM) physical volumes.
> See also: `lvm`.
> More information: <https://man7.org/linux/man-pages/man8/pvdisplay.8.html>.
> More information: <https://manned.org/pvdisplay>.
- Display information about all physical volumes:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Display information about physical volumes.
> See also: `lvm`.
> More information: <https://man7.org/linux/man-pages/man8/pvs.8.html>.
> More information: <https://manned.org/pvs>.
- Display information about physical volumes:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Create volume groups combining multiple mass-storage devices.
> See also: `lvm`.
> More information: <https://man7.org/linux/man-pages/man8/vgcreate.8.html>.
> More information: <https://manned.org/vgcreate>.
- Create a new volume group called vg1 using the `/dev/sda1` device:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Display information about Logical Volume Manager (LVM) volume groups.
> See also: `lvm`.
> More information: <https://man7.org/linux/man-pages/man8/vgdisplay.8.html>.
> More information: <https://manned.org/vgdisplay>.
- Display information about all volume groups:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Display information about volume groups.
> See also: `lvm`.
> More information: <https://man7.org/linux/man-pages/man8/vgs.8.html>.
> More information: <https://manned.org/vgs>.
- Display information about volume groups:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> An SNTP server.
> It should not be invoked manually.
> More information: <https://linux.die.net/man/8/snmpd>.
> More information: <https://keith.github.io/xcode-man-pages/sntpd.8.html>.
- Start the daemon: