diff --git a/pages.ca/linux/i3.md b/pages.ca/common/i3.md similarity index 100% rename from pages.ca/linux/i3.md rename to pages.ca/common/i3.md diff --git a/pages.es/linux/i3.md b/pages.es/common/i3.md similarity index 100% rename from pages.es/linux/i3.md rename to pages.es/common/i3.md diff --git a/pages.it/linux/i3.md b/pages.it/common/i3.md similarity index 100% rename from pages.it/linux/i3.md rename to pages.it/common/i3.md diff --git a/pages.ko/linux/i3.md b/pages.ko/common/i3.md similarity index 100% rename from pages.ko/linux/i3.md rename to pages.ko/common/i3.md diff --git a/pages.zh/linux/i3.md b/pages.zh/common/i3.md similarity index 100% rename from pages.zh/linux/i3.md rename to pages.zh/common/i3.md diff --git a/pages/common/autojump.md b/pages/common/autojump.md index 5d7691c7d2..415108e640 100644 --- a/pages/common/autojump.md +++ b/pages/common/autojump.md @@ -2,8 +2,13 @@ > Quickly jump among the directories you visit the most. > Aliases like j or jc are provided for even less typing. +> See also: `bashmarks`. > More information: . +- Add the autojump aliases to your shell: + +`source /usr/share/autojump/autojump.{{bash|fish|zsh}}` + - Jump to a directory that contains the given pattern: `j {{pattern}}` diff --git a/pages/common/bashmarks.md b/pages/common/bashmarks.md index 1817007808..f6450a6758 100644 --- a/pages/common/bashmarks.md +++ b/pages/common/bashmarks.md @@ -1,6 +1,7 @@ # bashmarks > Save and jump to commonly used directories using 1 character commands. +> See also: `autojump`. > More information: . - Add the bashmark aliases to your shell: diff --git a/pages/common/i3.md b/pages/common/i3.md new file mode 100644 index 0000000000..6f1f17fdfe --- /dev/null +++ b/pages/common/i3.md @@ -0,0 +1,32 @@ +# i3 + +> A tiling window manager for X11. +> More information: . + +- Start `i3` (Note that a pre-existing window manager must not be open when this command is run): + +`i3` + +- Open a new terminal window: + +`` + +- Move the focused window to a workspace: + +`` + +- Switch to a workspace: + +`` + +- Split the next window horizontally: + +`` + +- Split the next window vertically: + +`` + +- Open an application launcher: + +`` diff --git a/pages/common/impacket-mqtt_check.md b/pages/common/impacket-mqtt_check.md new file mode 100644 index 0000000000..3734c7488b --- /dev/null +++ b/pages/common/impacket-mqtt_check.md @@ -0,0 +1,7 @@ +# impacket-mqtt_check + +> This command is an alias of `mqtt_check.py`. + +- View documentation for the original command: + +`tldr mqtt_check.py` diff --git a/pages/common/j.md b/pages/common/j.md new file mode 100644 index 0000000000..bf7eba1bb1 --- /dev/null +++ b/pages/common/j.md @@ -0,0 +1,7 @@ +# j + +> This command is an alias of `autojump`. + +- View documentation for the original command: + +`tldr autojump` diff --git a/pages/common/jc.json.md b/pages/common/jc.json.md new file mode 100644 index 0000000000..92c9aca58e --- /dev/null +++ b/pages/common/jc.json.md @@ -0,0 +1,20 @@ +# jc + +> Convert the output of multiple commands to JSON. +> More information: . + +- Convert command output to JSON via pipe: + +`{{ifconfig}} | jc {{--ifconfig}}` + +- Convert command output to JSON via magic syntax: + +`jc {{ifconfig}}` + +- Output pretty JSON via pipe: + +`{{ifconfig}} | jc {{--ifconfig}} {{[-p|--pretty]}}` + +- Output pretty JSON via magic syntax: + +`jc {{[-p|--pretty]}} {{ifconfig}}` diff --git a/pages/common/jc.md b/pages/common/jc.md index 92c9aca58e..11f186c7ec 100644 --- a/pages/common/jc.md +++ b/pages/common/jc.md @@ -1,20 +1,11 @@ # jc -> Convert the output of multiple commands to JSON. -> More information: . +> `jc` can refer to multiple commands with the same name. -- Convert command output to JSON via pipe: +- View documentation for the `JSON` serializer: -`{{ifconfig}} | jc {{--ifconfig}}` +`tldr jc.json` -- Convert command output to JSON via magic syntax: +- View documentation for the `autojump` alias: -`jc {{ifconfig}}` - -- Output pretty JSON via pipe: - -`{{ifconfig}} | jc {{--ifconfig}} {{[-p|--pretty]}}` - -- Output pretty JSON via magic syntax: - -`jc {{[-p|--pretty]}} {{ifconfig}}` +`tldr autojump` diff --git a/pages/common/jco.md b/pages/common/jco.md new file mode 100644 index 0000000000..cd9579d3fd --- /dev/null +++ b/pages/common/jco.md @@ -0,0 +1,7 @@ +# jco + +> This command is an alias of `autojump`. + +- View documentation for the original command: + +`tldr autojump` diff --git a/pages/common/jo.md b/pages/common/jo.md new file mode 100644 index 0000000000..b101e477ce --- /dev/null +++ b/pages/common/jo.md @@ -0,0 +1,7 @@ +# jo + +> This command is an alias of `autojump`. + +- View documentation for the original command: + +`tldr autojump` diff --git a/pages/common/mqtt_check.py.md b/pages/common/mqtt_check.py.md new file mode 100644 index 0000000000..4c37e179c1 --- /dev/null +++ b/pages/common/mqtt_check.py.md @@ -0,0 +1,29 @@ +# mqtt_check.py + +> Simple utility for testing and validating MQTT login credentials. +> Part of the Impacket suite. +> More information: . + +- Check MQTT login credentials for a target (MQTT broker's hostname): + +`mqtt_check.py {{domain}}/{{username}}:{{password}}@{{targetName}}` + +- Specify a custom client ID for authentication: + +`mqtt_check.py -client-id {{client_id}} {{domain}}/{{username}}:{{password}}@{{targetName}}` + +- Enable SSL for the connection: + +`mqtt_check.py -ssl {{domain}}/{{username}}:{{password}}@{{targetName}}` + +- Connect to a specific port (default is 1883): + +`mqtt_check.py -port {{port}} {{domain}}/{{username}}:{{password}}@{{targetName}}` + +- Enable debug output: + +`mqtt_check.py -debug {{domain}}/{{username}}:{{password}}@{{targetName}}` + +- Display help message: + +`mqtt_check.py --help` diff --git a/pages/common/sway.md b/pages/common/sway.md new file mode 100644 index 0000000000..d7b2fa80b3 --- /dev/null +++ b/pages/common/sway.md @@ -0,0 +1,13 @@ +# sway + +> A tiling Wayland compositor. +> It uses the same config format as `i3`, with some Wayland-specific additions. +> More information: . + +- Start `sway`: + +`sway` + +- View documentation for `i3` (`sway` uses the same default keybindings): + +`tldr i3` diff --git a/pages/linux/i3.md b/pages/linux/i3.md deleted file mode 100644 index b2ab5fef09..0000000000 --- a/pages/linux/i3.md +++ /dev/null @@ -1,32 +0,0 @@ -# i3 - -> A dynamic tiling window manager. -> More information: . - -- Start i3 (Note that a pre-existing window manager must not be open when this command is run): - -`i3` - -- Open a new terminal window: - -`` - -- Create a new workspace: - -`` - -- Switch to a workspace: - -`` - -- Open new window horizontally: - -`` - -- Open new window vertically: - -`` - -- Open application (type out application name after executing command): - -``