diff --git a/tldr/chgrp b/tldr/chgrp index b3269d7f..4ffdcb68 100644 --- a/tldr/chgrp +++ b/tldr/chgrp @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # chgrp > Change group ownership of files and directories. -> More information: . +> More information: . - Change the owner group of a file/directory: diff --git a/tldr/chroot b/tldr/chroot index b764f8c1..5ab97515 100644 --- a/tldr/chroot +++ b/tldr/chroot @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # chroot > Run command or interactive shell with special root directory. -> More information: . +> More information: . - Run command as new root directory: diff --git a/tldr/gh-skyline b/tldr/gh-skyline new file mode 100644 index 00000000..88b82c84 --- /dev/null +++ b/tldr/gh-skyline @@ -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: . + +- 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` diff --git a/tldr/git-branch b/tldr/git-branch index 174ad79b..c884e4c3 100644 --- a/tldr/git-branch +++ b/tldr/git-branch @@ -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}}` diff --git a/tldr/linux/loginctl b/tldr/linux/loginctl index 91b7f305..a5749279 100644 --- a/tldr/linux/loginctl +++ b/tldr/linux/loginctl @@ -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}}` diff --git a/tldr/osx/tag b/tldr/osx/tag new file mode 100644 index 00000000..d70de04e --- /dev/null +++ b/tldr/osx/tag @@ -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: . + +- 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}}`