mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -8,10 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Remove files not tracked by Git from the working tree.
|
||||
> More information: <https://git-scm.com/docs/git-clean>.
|
||||
|
||||
- Delete untracked files:
|
||||
|
||||
`git clean`
|
||||
|
||||
- Interactively delete untracked files:
|
||||
|
||||
`git clean {{[-i|--interactive]}}`
|
||||
@@ -20,14 +16,22 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`git clean {{[-n|--dry-run]}}`
|
||||
|
||||
- Forcefully delete untracked files:
|
||||
- Immediately force deletion of all untracked files:
|
||||
|
||||
`git clean {{[-f|--force]}}`
|
||||
|
||||
- Forcefully delete untracked [d]irectories:
|
||||
- Delete untracked [d]irectories:
|
||||
|
||||
`git clean {{[-f|--force]}} -d`
|
||||
|
||||
- Delete untracked files, including e[x]cluded files (files ignored in `.gitignore` and `.git/info/exclude`):
|
||||
- Delete only untracked files matching specific paths or glob patterns:
|
||||
|
||||
`git clean -x`
|
||||
`git clean {{[-f|--force]}} -- {{path/to/directory}} '{{*.ext}}'`
|
||||
|
||||
- Delete untracked files except those matching the given patterns:
|
||||
|
||||
`git clean {{[-f|--force]}} {{[-e|--exclude]}} {{'*.ext'}} {{[-e|--exclude]}} {{path/to/directory/}}`
|
||||
|
||||
- Delete untracked files and e[x]cluded files (those listed in `.gitignore` and `.git/info/exclude`):
|
||||
|
||||
`git clean {{[-f|--force]}} -x`
|
||||
|
||||
29
tldr/linux/foot
Normal file
29
tldr/linux/foot
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# foot
|
||||
|
||||
> A fast, lightweight, and minimalistic Wayland terminal emulator.
|
||||
> More information: <https://manned.org/foot>.
|
||||
|
||||
- Spawn a terminal:
|
||||
|
||||
`foot`
|
||||
|
||||
- Verify your config:
|
||||
|
||||
`foot {{[-C|--check-config]}}`
|
||||
|
||||
- Start the server (use `footclient` to start terminal windows that connect to the server):
|
||||
|
||||
`foot {{[-s|--server]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`foot {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`foot {{[-v|--version]}}`
|
||||
@@ -8,14 +8,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Create a Linux filesystem inside a partition.
|
||||
> More information: <https://manned.org/mke2fs>.
|
||||
|
||||
- Create an ext2 filesystem in partition 1 of device b (`sdb1`):
|
||||
- Create an ext2 filesystem on a partition:
|
||||
|
||||
`mke2fs -t ext2 {{/dev/sdb1}}`
|
||||
`sudo mke2fs -t ext2 {{/dev/sdXY}}`
|
||||
|
||||
- Create an ext3 filesystem in partition 1 of device b (`sdb1`):
|
||||
- Create an ext3 filesystem on a partition:
|
||||
|
||||
`mke2fs -t ext3 {{/dev/sdb1}}`
|
||||
`sudo mke2fs -t ext3 {{/dev/sdXY}}`
|
||||
|
||||
- Create an ext4 filesystem in partition 1 of device b (`sdb1`):
|
||||
- Create an ext4 filesystem on a partition:
|
||||
|
||||
`mke2fs -t ext4 {{/dev/sdb1}}`
|
||||
`sudo mke2fs -t ext4 {{/dev/sdXY}}`
|
||||
|
||||
12
tldr/linux/pacinstall
Normal file
12
tldr/linux/pacinstall
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pacinstall
|
||||
|
||||
> This command is an alias of `pactrans --install`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr pactrans`
|
||||
12
tldr/linux/pacremove
Normal file
12
tldr/linux/pacremove
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pacremove
|
||||
|
||||
> This command is an alias of `pactrans --remove`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr pactrans`
|
||||
@@ -9,10 +9,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> See also: `lvm`.
|
||||
> More information: <https://manned.org/vgcreate>.
|
||||
|
||||
- Create a new volume group called vg1 using the `/dev/sda1` device:
|
||||
- Create a new volume group using the specified device:
|
||||
|
||||
`vgcreate {{vg1}} {{/dev/sda1}}`
|
||||
`sudo vgcreate {{volume_group}} {{/dev/sdXY}}`
|
||||
|
||||
- Create a new volume group called vg1 using multiple devices:
|
||||
- Create a new volume group using multiple devices:
|
||||
|
||||
`vgcreate {{vg1}} {{/dev/sda1}} {{/dev/sdb1}} {{/dev/sdc1}}`
|
||||
`sudo vgcreate {{volume_group}} {{/dev/sdXY}} {{/dev/sdXZ}}`
|
||||
|
||||
Reference in New Issue
Block a user