diff --git a/tldr/acme.sh-dns b/tldr/acme.sh-dns index 63ca591e..389d9358 100644 --- a/tldr/acme.sh-dns +++ b/tldr/acme.sh-dns @@ -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: diff --git a/tldr/linux/sprof b/tldr/linux/sprof new file mode 100644 index 00000000..09ea3ea5 --- /dev/null +++ b/tldr/linux/sprof @@ -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: . + +- 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}}` diff --git a/tldr/linux/steamos-readonly b/tldr/linux/steamos-readonly index a5937619..1a969437 100644 --- a/tldr/linux/steamos-readonly +++ b/tldr/linux/steamos-readonly @@ -8,6 +8,10 @@ source: https://github.com/tldr-pages/tldr.git > Set the readonly status of the filesystem. > More information: . +- 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` diff --git a/tldr/linux/steamosctl b/tldr/linux/steamosctl new file mode 100644 index 00000000..e2d1809a --- /dev/null +++ b/tldr/linux/steamosctl @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# steamosctl + +> Control the SteamOS system. +> More information: . + +- 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` diff --git a/tldr/msfconsole b/tldr/msfconsole index 9471eff1..106ffd40 100644 --- a/tldr/msfconsole +++ b/tldr/msfconsole @@ -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: . -- 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}}` diff --git a/tldr/qgis b/tldr/qgis new file mode 100644 index 00000000..d9c5b603 --- /dev/null +++ b/tldr/qgis @@ -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: . + +- 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}}` diff --git a/tldr/stty b/tldr/stty index b391a0d2..8ddc0c3b 100644 --- a/tldr/stty +++ b/tldr/stty @@ -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: . - Display current terminal size: diff --git a/tldr/tput b/tldr/tput index 8d654647..57da9035 100644 --- a/tldr/tput +++ b/tldr/tput @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # tput > View and modify terminal settings and capabilities. +> See also: `stty`. > More information: . - Move the cursor to a screen location: