mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-07 06:45:35 +00:00
Update cheatsheets
This commit is contained in:
38
tldr/cheatshh
Normal file
38
tldr/cheatshh
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cheatshh
|
||||
|
||||
> CLI cheatsheet with customized descriptions, tldr and groups, to look into for your reference.
|
||||
> Press Enter to a command to copy it to your clipboard and exit.
|
||||
> More information: <https://github.com/AnirudhG07/cheatshh>.
|
||||
|
||||
- [a]dd a new command to the cheatshheet:
|
||||
|
||||
`cheatshh --add`
|
||||
|
||||
- Edit ([ec]) an existing command's description or group in the cheatshheet:
|
||||
|
||||
`cheatshh --edit-command`
|
||||
|
||||
- Delete ([dc]) an existing command from the cheatshheet:
|
||||
|
||||
`cheatshh --delete-command`
|
||||
|
||||
- Create a new [g]roup:
|
||||
|
||||
`cheatshh --group`
|
||||
|
||||
- Edit ([eg]) an existing group's name or description in the cheatsheet:
|
||||
|
||||
`cheatshh --edit-group`
|
||||
|
||||
- Delete ([dg]) an existing group and it's sub commands from commands.json file:
|
||||
|
||||
`cheatshh --delete-group`
|
||||
|
||||
- Display [m]an pages after tldr in the preview:
|
||||
|
||||
`cheatshh --man`
|
||||
29
tldr/linux/objcopy
Normal file
29
tldr/linux/objcopy
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# objcopy
|
||||
|
||||
> Copy the contents of an object file to another file.
|
||||
> More information: <https://manned.org/objcopy>.
|
||||
|
||||
- Copy data to another file:
|
||||
|
||||
`objcopy {{path/to/source_file}} {{path/to/target_file}}`
|
||||
|
||||
- Translate object files from one format to another:
|
||||
|
||||
`objcopy --input-target={{input_format}} --output-target {{output_format}} {{path/to/source_file}} {{path/to/target_file}}`
|
||||
|
||||
- Strip all symbol information from the file:
|
||||
|
||||
`objcopy --strip-all {{path/to/source_file}} {{path/to/target_file}}`
|
||||
|
||||
- Strip debugging information from the file:
|
||||
|
||||
`objcopy --strip-debug {{path/to/source_file}} {{path/to/target_file}}`
|
||||
|
||||
- Copy a specific section from the source file to the destination file:
|
||||
|
||||
`objcopy --only-section {{section}} {{path/to/source_file}} {{path/to/target_file}}`
|
||||
@@ -16,26 +16,26 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`systemctl --failed`
|
||||
|
||||
- Start/Stop/Restart/Reload a service:
|
||||
- Start/Stop/Restart/Reload/Show the status a service:
|
||||
|
||||
`systemctl {{start|stop|restart|reload}} {{unit}}`
|
||||
|
||||
- Show the status of a unit:
|
||||
|
||||
`systemctl status {{unit}}`
|
||||
`systemctl {{start|stop|restart|reload|status}} {{unit}}`
|
||||
|
||||
- Enable/Disable a unit to be started on bootup:
|
||||
|
||||
`systemctl {{enable|disable}} {{unit}}`
|
||||
|
||||
- Mask/Unmask a unit to prevent enablement and manual activation:
|
||||
|
||||
`systemctl {{mask|unmask}} {{unit}}`
|
||||
|
||||
- Reload systemd, scanning for new or changed units:
|
||||
- Reload systemd, scan for new or changed units:
|
||||
|
||||
`systemctl daemon-reload`
|
||||
|
||||
- Check if a unit is enabled:
|
||||
- Check if a unit is active/enabled/failed:
|
||||
|
||||
`systemctl is-enabled {{unit}}`
|
||||
`systemctl {{is-active|is-enabled|is-failed}} {{unit}}`
|
||||
|
||||
- List all service/socket/automount units filtering by running/failed state:
|
||||
|
||||
`systemctl list-units --type={{service|socket|automount}} --state={{failed|running}}`
|
||||
|
||||
- Show the contents & absolute path of a unit file:
|
||||
|
||||
`systemctl cat {{unit}}`
|
||||
|
||||
@@ -24,6 +24,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`plantuml -o {{path/to/output}} {{diagram.puml}}`
|
||||
|
||||
- Render a diagram without storing the diagram's source code (Note: It's stored by default when the `-nometadata` option isn't specified):
|
||||
|
||||
`plantuml -nometadata {{diagram.png}} > {{diagram.puml}}`
|
||||
|
||||
- Retrieve source from a `plantuml` diagram's metadata:
|
||||
|
||||
`plantuml -metadata {{diagram.png}} > {{diagram.puml}}`
|
||||
|
||||
- Render a diagram with the configuration file:
|
||||
|
||||
`plantuml -config {{config.cfg}} {{diagram.puml}}`
|
||||
|
||||
Reference in New Issue
Block a user