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:
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# chgrp
|
||||
|
||||
> Change group ownership of files and directories.
|
||||
> More information: <https://www.gnu.org/software/coreutils/chgrp>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chgrp-invocation.html>.
|
||||
|
||||
- Change the owner group of a file/directory:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# chroot
|
||||
|
||||
> Run command or interactive shell with special root directory.
|
||||
> More information: <https://www.gnu.org/software/coreutils/chroot>.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/chroot-invocation.html>.
|
||||
|
||||
- Run command as new root directory:
|
||||
|
||||
|
||||
42
tldr/gh-skyline
Normal file
42
tldr/gh-skyline
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gh skyline
|
||||
|
||||
> Generate a 3D model of your GitHub contribution history.
|
||||
> By default, it will create a `{username}-{year}-github-skyline.stl` file in the current directory.
|
||||
> More information: <https://github.com/github/gh-skyline>.
|
||||
|
||||
- Generate a skyline STL file for the current year and authenticated user:
|
||||
|
||||
`gh skyline`
|
||||
|
||||
- Generate a skyline for a specific [u]ser and [y]ear:
|
||||
|
||||
`gh skyline --user {{username}} --year {{year}}`
|
||||
|
||||
- Generate a skyline for a range of [y]ears:
|
||||
|
||||
`gh skyline --user {{username}} --year {{first_year}}-{{last_year}}`
|
||||
|
||||
- Generate a [f]ull skyline (from the user's join year to the current year):
|
||||
|
||||
`gh skyline --user {{username}} --full`
|
||||
|
||||
- Enable [d]ebug logging:
|
||||
|
||||
`gh skyline --debug`
|
||||
|
||||
- Generate a skyline and specify the [o]utput file path:
|
||||
|
||||
`gh skyline --output {{path/to/output_file.stl}}`
|
||||
|
||||
- Open the GitHub profile for a specific [u]ser:
|
||||
|
||||
`gh skyline --user {{username}} --web`
|
||||
|
||||
- Display [h]elp:
|
||||
|
||||
`gh skyline --help`
|
||||
@@ -28,11 +28,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`git branch {{branch_name}} {{commit_hash}}`
|
||||
|
||||
- Rename a branch (must not have it checked out to do this):
|
||||
- Rename a branch (you must switch to a different branch before doing this):
|
||||
|
||||
`git branch {{-m|--move}} {{old_branch_name}} {{new_branch_name}}`
|
||||
|
||||
- Delete a local branch (must not have it checked out to do this):
|
||||
- Delete a local branch (you must switch to a different branch before doing this):
|
||||
|
||||
`git branch {{-d|--delete}} {{branch_name}}`
|
||||
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Execute a `loginctl` operation on a remote host:
|
||||
|
||||
`loginctl list-users -H {{hostname}}`
|
||||
|
||||
- Log a user out on all of their sessions:
|
||||
|
||||
`loginctl terminate-user {{username}}`
|
||||
|
||||
25
tldr/osx/tag
Normal file
25
tldr/osx/tag
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, osx]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tag
|
||||
|
||||
> Edit tags on Mac OS X files (10.9 Mavericks and above).
|
||||
> More information: <https://github.com/jdberry/tag/>.
|
||||
|
||||
- Add tags to a file:
|
||||
|
||||
`tag --add {{tag_name1,tag_name2,...}} {{path/to/file}}`
|
||||
|
||||
- Remove a tag:
|
||||
|
||||
`tag --remove {{tag_name}} {{path/to/file}`
|
||||
|
||||
- Remove all tags from a file:
|
||||
|
||||
`tag --remove \* {{path/to/file}}`
|
||||
|
||||
- Show all files with a given tag:
|
||||
|
||||
`tag --match {{tag_name}}`
|
||||
Reference in New Issue
Block a user