mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-14 15:59:42 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Issue a certificate using an automatic DNS API mode:
|
||||
|
||||
`acme.sh --issue --dns {{gnd_gd}} --domain {{example.com}}`
|
||||
`acme.sh --issue --dns {{dns_gd}} --domain {{example.com}}`
|
||||
|
||||
- Issue a wildcard certificate (denoted by an asterisk) using an automatic DNS API mode:
|
||||
|
||||
|
||||
30
tldr/linux/sprof
Normal file
30
tldr/linux/sprof
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sprof
|
||||
|
||||
> Read and display shared object profiling data.
|
||||
> Note: Requires profile data generated via the `$LD_PROFILE` environment variable.
|
||||
> More information: <https://manned.org/sprof>.
|
||||
|
||||
- Generate a flat profile and call graph (default output):
|
||||
|
||||
`sprof {{path/to/library.so}} {{path/to/library.so.profile}}`
|
||||
|
||||
- Generate a flat profile with counts and ticks:
|
||||
|
||||
`sprof {{[-p|--flat-profile]}} {{path/to/library.so}} {{path/to/library.so.profile}}`
|
||||
|
||||
- Generate a call graph:
|
||||
|
||||
`sprof {{[-q|--graph]}} {{path/to/library.so}} {{path/to/library.so.profile}}`
|
||||
|
||||
- Print call pairs and their usage counts:
|
||||
|
||||
`sprof {{[-c|--call-pairs]}} {{path/to/library.so}} {{path/to/library.so.profile}}`
|
||||
|
||||
- Use profile data from current directory (auto-detected by soname):
|
||||
|
||||
`sprof {{path/to/library.so}}`
|
||||
@@ -8,6 +8,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Set the readonly status of the filesystem.
|
||||
> More information: <https://gitlab.com/users/evlaV/projects>.
|
||||
|
||||
- View the filesystem mutability status:
|
||||
|
||||
`steamos-readonly status`
|
||||
|
||||
- Set the filesystem to be mutable:
|
||||
|
||||
`sudo steamos-readonly disable`
|
||||
@@ -15,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Set the filesystem to be read only:
|
||||
|
||||
`sudo steamos-readonly enable`
|
||||
|
||||
- Toggle the filesystem mutability:
|
||||
|
||||
`sudo steamos-readonly toggle`
|
||||
|
||||
25
tldr/linux/steamosctl
Normal file
25
tldr/linux/steamosctl
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# steamosctl
|
||||
|
||||
> Control the SteamOS system.
|
||||
> More information: <https://gitlab.com/evlaV/steamos-manager>.
|
||||
|
||||
- Change to desktop mode:
|
||||
|
||||
`steamosctl switch-to-desktop-mode`
|
||||
|
||||
- Change to gamemode:
|
||||
|
||||
`steamosctl switch-to-game-mode`
|
||||
|
||||
- Change whether the system opens gamemode or desktop during login:
|
||||
|
||||
`steamosctl set-default-login-mode {{game|desktop}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`steamosctl`
|
||||
@@ -6,28 +6,37 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# msfconsole
|
||||
|
||||
> Console for the Metasploit Framework.
|
||||
> Note: Run `sudo msfdb init` to enable the Metasploit database backend prior to launching `msfconsole`.
|
||||
> More information: <https://docs.rapid7.com/metasploit/msf-overview/>.
|
||||
|
||||
- Launch the console:
|
||||
- Launch the interactive console (append `--quiet` to suppress the startup banner):
|
||||
|
||||
`msfconsole`
|
||||
|
||||
- Launch the console quietly without any banner:
|
||||
|
||||
`msfconsole {{[-q|--quiet]}}`
|
||||
|
||||
- Do not enable database support:
|
||||
|
||||
`msfconsole {{[-n|--no-database]}}`
|
||||
`sudo msfconsole`
|
||||
|
||||
- Execute console commands (Note: Use `;` for passing multiple commands):
|
||||
|
||||
`msfconsole {{[-x|--execute-command]}} "{{use auxiliary/server/capture/ftp; set SRVHOST 0.0.0.0; set SRVPORT 21; run}}"`
|
||||
`sudo msfconsole {{[-x|--execute-command]}} "{{use auxiliary/scanner/portscan/tcp; set PORTS 80,443; set RHOSTS example.com; run; quit}}"`
|
||||
|
||||
- Display help:
|
||||
- Run a specific resource file:
|
||||
|
||||
`msfconsole {{[-h|--help]}}`
|
||||
`sudo msfconsole {{[-r|--resource]}} {{path/to/file.rc}}`
|
||||
|
||||
- Display version:
|
||||
- [Interactive] Show specific type of modules:
|
||||
|
||||
`msfconsole {{[-v|--version]}}`
|
||||
`show {{auxiliary|encoders|evasion|exploits|nops|payloads|post}}`
|
||||
|
||||
- [Interactive] Use a module:
|
||||
|
||||
`use {{auxiliary/scanner/portscan/syn}}`
|
||||
|
||||
- [Interactive] Show module options (module needs to be loaded first):
|
||||
|
||||
`show options`
|
||||
|
||||
- [Interactive] Set value of variable:
|
||||
|
||||
`set {{variable_name}} {{value}}`
|
||||
|
||||
- [Interactive] Run a module (module needs to be loaded and options need to be set first):
|
||||
|
||||
`{{run|exploit}}`
|
||||
|
||||
42
tldr/qgis
Normal file
42
tldr/qgis
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# qgis
|
||||
|
||||
> View, create, and analyze geographic data in a Geographic Information System.
|
||||
> Supports rasters, vectors, and project files (`.qgs`, `.qgz`, `.qlr`).
|
||||
> More information: <https://docs.qgis.org/latest/en/docs/user_manual/introduction/qgis_configuration.html#running-qgis-with-advanced-settings>.
|
||||
|
||||
- Launch QGIS:
|
||||
|
||||
`qgis`
|
||||
|
||||
- Open a specific project file:
|
||||
|
||||
`qgis {{[-p|--project]}} {{path/to/project.qgz}}`
|
||||
|
||||
- Open one or more raster or vector files directly:
|
||||
|
||||
`qgis {{path/to/file1.tif path/to/file2.shp ...}}`
|
||||
|
||||
- Hide the splash screen on startup:
|
||||
|
||||
`qgis {{[-n|--nologo]}}`
|
||||
|
||||
- Set the initial map extent:
|
||||
|
||||
`qgis {{[-e|--extent]}} {{xmin,ymin,xmax,ymax}}`
|
||||
|
||||
- Run a Python script on load:
|
||||
|
||||
`qgis {{[-f|--code]}} {{path/to/script.py}}`
|
||||
|
||||
- Launch QGIS without restoring plugins:
|
||||
|
||||
`qgis {{[-P|--noplugins]}}`
|
||||
|
||||
- Skip prompts for missing layers when opening a project:
|
||||
|
||||
`qgis {{[-B|--skipbadlayers]}} {{[-p|--project]}} {{path/to/project.qgz}}`
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# stty
|
||||
|
||||
> Set or get options for a terminal device interface.
|
||||
> See also: `tput`.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/stty-invocation.html>.
|
||||
|
||||
- Display current terminal size:
|
||||
|
||||
Reference in New Issue
Block a user