Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: add help example #15981

Merged
merged 78 commits into from
Mar 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
bf352ee
Update browsh.md
Managor Mar 18, 2025
96a42d9
Update ubuntu-drivers.md
Managor Mar 18, 2025
a446eb6
Update systemd-ask-password.md
Managor Mar 18, 2025
c2f7574
Update aurpublish.md
Managor Mar 18, 2025
087e9c4
Update informant.md
Managor Mar 18, 2025
2166ac3
Update qmake.md
Managor Mar 18, 2025
3ccb234
Update libinput.md
Managor Mar 18, 2025
4ac6f8c
Update virt-sysprep.md
Managor Mar 18, 2025
714d285
Update ip-maddress.md
Managor Mar 18, 2025
d44ad9e
Update gtk-launch.md
Managor Mar 18, 2025
45ffead
Update dialog.md
Managor Mar 18, 2025
e6701b5
Update local.md
Managor Mar 18, 2025
c812e5a
Update stty.md
Managor Mar 18, 2025
71c0b04
Update logread.md
Managor Mar 18, 2025
e30e8ed
Update ifstatus.md
Managor Mar 18, 2025
4bf4bfa
Update pw-cat.md
Managor Mar 18, 2025
9eea37d
Update waypipe.md
Managor Mar 18, 2025
8873f6e
Update mariadb-install-db.md
Managor Mar 18, 2025
7830aaf
Update snmpdf.md
Managor Mar 18, 2025
c4b9222
Update snmpget.md
Managor Mar 18, 2025
6ae87b8
Update snmpset.md
Managor Mar 18, 2025
99021be
Update snmptest.md
Managor Mar 18, 2025
149cd5f
Update snmpwalk.md
Managor Mar 18, 2025
d80ed69
Update snmptable.md
Managor Mar 18, 2025
2e396e4
Update snmpstatus.md
Managor Mar 18, 2025
e74f82d
Update snmpbulkget.md
Managor Mar 18, 2025
0f46277
Update snmpgetnext.md
Managor Mar 18, 2025
29c2245
Update snmpnetstat.md
Managor Mar 18, 2025
5f1d57d
Update fluidsynth.md
Managor Mar 18, 2025
21b5514
Update bridge.md
Managor Mar 18, 2025
e45c477
Update nstat.md
Managor Mar 18, 2025
bd406cf
Update ubus.md
Managor Mar 18, 2025
081a534
Update lxc-create.md
Managor Mar 18, 2025
ffcf59f
Update lxc-ls.md
Managor Mar 18, 2025
4908f84
Update lxc-info.md
Managor Mar 18, 2025
552a0af
Update lxc-stop.md
Managor Mar 18, 2025
0d3a6b5
Update lxc-start.md
Managor Mar 18, 2025
139d743
Update lxc-attach.md
Managor Mar 18, 2025
46b7ff5
Update lxc-console.md
Managor Mar 18, 2025
d70df77
Update lxc-destroy.md
Managor Mar 18, 2025
f515b41
Update apachectl.md
Managor Mar 18, 2025
aaf6643
Update uci.md
Managor Mar 18, 2025
028b64d
Update iwinfo.md
Managor Mar 18, 2025
5a0e086
Update picocom.md
Managor Mar 18, 2025
fc014b0
Update minicom.md
Managor Mar 18, 2025
8dfbb0f
Update cu.md
Managor Mar 18, 2025
526ed69
Update o.md
Managor Mar 18, 2025
036a4c6
Update ulimit.md
Managor Mar 18, 2025
126dfaa
Update btop.md
Managor Mar 18, 2025
29d5549
Update gettext.md
Managor Mar 18, 2025
22b1eba
Update msgfmt.md
Managor Mar 18, 2025
f1b9449
Update msginit.md
Managor Mar 18, 2025
d727916
Update msgmerge.md
Managor Mar 18, 2025
9b9b6da
Update msgmerge.md
Managor Mar 18, 2025
f0881d9
Update xgettext.md
Managor Mar 18, 2025
b760c92
Update pw-reserve.md
Managor Mar 18, 2025
2e96e45
Update pw-v4l2.md
Managor Mar 18, 2025
0ec1128
Update carbonyl.md
Managor Mar 18, 2025
a3f66fe
Update reflector.md
Managor Mar 18, 2025
d11abf4
Update case.md
Managor Mar 18, 2025
75bd9f8
Update parted.md
Managor Mar 18, 2025
4bed97d
Update parted-interactive.md
Managor Mar 18, 2025
eb5b1dd
Update fadvise.md
Managor Mar 18, 2025
3bcee74
Update fincore.md
Managor Mar 18, 2025
3dc8596
Update lsfd.md
Managor Mar 18, 2025
253fb82
Update pg.md
Managor Mar 18, 2025
161f801
Update readarray.md
Managor Mar 18, 2025
ba2e033
Update function.md
Managor Mar 18, 2025
1fea6f2
Update hash.md
Managor Mar 18, 2025
f37436f
Update kwallet-query.md
Managor Mar 18, 2025
3ecc01e
Update loginctl.md
Managor Mar 18, 2025
a28a1fe
Update pwd.md
Managor Mar 18, 2025
7be7e8f
Update magick-mogrify.md
Managor Mar 18, 2025
5f34a80
Update mail.md
Managor Mar 18, 2025
0adf796
Update script.md
Managor Mar 18, 2025
d0e4c16
Update wait.md
Managor Mar 18, 2025
6747a7e
Update wait.md
Managor Mar 18, 2025
b4dd2ff
Merge branch 'main' into help
Managor Mar 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pages/common/browsh.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
- Exit browsh:

`<Ctrl q>`

- Display help:

`browsh {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/btop.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@
- Exit `btop`:

`<q>`

- Display help:

`btop {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/carbonyl.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
- Exit carbonyl:

`<Ctrl c>`

- Display help:

`carbonyl {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/case.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
- Continue to the next pattern's commands without checking the pattern:

`case {{$ANIMAL}} in {{cat}}) echo "It's a cat" ;& {{dog}}) echo "It's either a dog or cat fell through" ;& *) echo "Fallback" ;; esac`

- Display help:

`help case`
4 changes: 4 additions & 0 deletions pages/common/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
- Run a function named `func_name`:

`func_name`

- Display help:

`help function`
4 changes: 4 additions & 0 deletions pages/common/gettext.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
- Get the translation of a string or output a default string if it doesn't exist:

`LANGUAGE={{locale}} gettext {{msgid}} {{default_value}}`

- Display help:

`gettext {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/hash.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
- Print the full path of `command`:

`hash -t {{command}}`

- Display help:

`hash --help`
4 changes: 4 additions & 0 deletions pages/common/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@
- Declare a readonly variable with the specified value:

`local -r {{variable}}="{{value}}"`

- Display help:

`local --help`
4 changes: 4 additions & 0 deletions pages/common/magick-mogrify.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@
- Reduce file sizes of all GIF images in the current directory by reducing quality:

`magick mogrify -layers 'optimize' -fuzz {{7%}} {{*.gif}}`

- Display help:

`magick mogrify -help`
4 changes: 4 additions & 0 deletions pages/common/mail.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@
- Send a `tar.gz` file as an attachment:

`tar cvzf - {{path/to/directory1 path/to/directory2}} | uuencode {{data.tar.gz}} | mail --subject "{{subject_line}}" {{[email protected]}}`

- Display help:

`mail {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/mariadb-install-db.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
- Initialize a database:

`sudo mariadb-install-db --user {{user}} --basedir {{/usr}} --datadir {{/var/lib/mysql}}`

- Display help:

`mariadb-install-db --help`
4 changes: 4 additions & 0 deletions pages/common/msgfmt.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
- Convert a `.po` file to a `.mo` file:

`msgfmt {{path/to/file.po}} {{[-o|--output-file]}} {{path/to/file.mo}}`

- Display help:

`msgfmt {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/msginit.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
- Define locale to generate from a specific template:

`msginit {{[-l|--locale]}} {{locale}} {{[-i|--input]}} {{path/to/messages.pot}}`

- Display help:

`msginit {{[-h|--help]}}`
6 changes: 5 additions & 1 deletion pages/common/msgmerge.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Exclamation mark
# msgmerge

> Update an existing translation file from a new template.
> More information: <https://www.gnu.org/software/gettext/manual/html_node/msgmerge-Invocation.html>.

- Update a translation file:

`msgmerge {{[-U|--update]}} {{path/to/file.po}} {{path/to/messages.pot}}`

- Display help:

`msgmerge {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/o.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
- Quit Orbiton:

`<Ctrl q>`

- Display help:

`o {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/picocom.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
- Exit picocom:

`<Ctrl a><Ctrl x>`

- Display help:

`picocom {{[-h|--help]}}`
6 changes: 5 additions & 1 deletion pages/common/pwd.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pwd

> Print name of current/working directory.
> Print the name of current/working directory.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/pwd-invocation.html>.

- Print the current directory:
Expand All @@ -10,3 +10,7 @@
- Print the current directory, and resolve all symlinks (i.e. show the "physical" path):

`pwd {{[-P|--physical]}}`

- Display help:

`pwd --help`
4 changes: 4 additions & 0 deletions pages/common/readarray.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
- Copy at most the specified number of lines:

`readarray -n {{N}} {{array_name}} < {{path/to/file.txt}}`

- Display help:

`help mapfile`
4 changes: 4 additions & 0 deletions pages/common/script.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
- Execute quietly without start and done messages:

`script {{[-q|--quiet]}} {{logfile.log}}`

- Display help:

`script {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/snmpbulkget.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
- Display the full Object Identifier (OID) path:

`snmpbulkget -v {{version}} -c {{community}} -O f {{ip}} {{oid}}`

- Display help:

`snmpbulkget {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/snmpdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
- Fetch the disk space usage:

`snmpdf -v {{version}} -c {{community}} {{ip}}`

- Display help:

`snmpdf {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/snmpget.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
- Display the full Object Identifier (OID) path:

`snmpget -v {{version}} -c {{community}} -O f {{ip}} {{oid}}`

- Display help:

`snmpget {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/snmpgetnext.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
- Display the full Object Identifier (OID) path:

`snmpgetnext -v {{version}} -c {{community}} -O f {{ip}} {{oid}}`

- Display help:

`snmpgetnext {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/snmpnetstat.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
- Fetch the networking status:

`snmpnetstat -v {{version}} -c {{community}} {{ip}}`

- Display help:

`snmpnetstat {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/snmpset.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
- Set a value:

`snmpset -v {{version}} -c {{community}} {{ip}} {{oid}} {{value_type}} {{value}}`

- Display help:

`snmpset {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/snmpstatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
- Fetch the values:

`snmpstatus -v {{version}} -c {{community}} {{ip}}`

- Display help:

`snmpstatus {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/snmptable.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
- Fetch data:

`snmptable -v {{version}} -c {{community}} {{ip}} {{oid}}`

- Display help:

`snmptable {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/snmptest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
- Start the prompt:

`snmptest -v {{version}} -c {{community}} {{ip}}`

- Display help:

`snmptest {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/snmpwalk.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
- Query system information on a remote host by OID using SNMPv3 without authentication or encryption:

`snmpwalk -v 3 -l {{noAuthNoPriv}} -u {{username}} {{ip}} {{oid}}`

- Display help:

`snmpwalk {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/stty.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@
- Turn character echoing off or on:

`stty {{-echo|echo}}`

- Display help:

`stty --help`
4 changes: 4 additions & 0 deletions pages/common/ulimit.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
- Set max per-user process limit:

`ulimit -u 30`

- Display help:

`help ulimit`
4 changes: 4 additions & 0 deletions pages/common/virt-sysprep.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
- Generate a new `/etc/machine-id` file and enable customizations to be able to change the host name to avoid network conflicts:

`sudo virt-sysprep --domain {{vm_name}} --enable {{customizations}} --hostname {{host_name}} --operation {{machine-id}}`

- Display help:

`virt-sysprep {{[-he|--help]}}`
4 changes: 4 additions & 0 deletions pages/common/wait.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
- Wait for a job to finish:

`wait %{{N}}`

- Display help:

`wait --help`
4 changes: 4 additions & 0 deletions pages/common/xgettext.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
- Don't add a header containing metadata to the output file:

`xgettext --omit-header {{path/to/input_file}}`

- Display help:

`xgettext {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/linux/apachectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
- Print full Apache configuration:

`apachectl -S`

- Display help:

`apachectl -h`
4 changes: 4 additions & 0 deletions pages/linux/aurpublish.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
- Add githooks to the current repository:

`aurpublish setup`

- Display help:

`aurpublish {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/linux/bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
- Watch for changes in bridge interfaces:

`bridge {{[mo|monitor]}}`

- Display help:

`bridge {{[h|help]}}`
4 changes: 4 additions & 0 deletions pages/linux/cu.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
- Exit the `cu` session when in connection:

`<Enter><~><.>`

- Display help:

`cu --help`
4 changes: 4 additions & 0 deletions pages/linux/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
- Prompt the user for a yes/no question:

`dialog --yesno "{{Continue?}}" {{7}} {{40}}`

- Display help:

`dialog`
2 changes: 1 addition & 1 deletion pages/linux/fadvise.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

- Display help:

`fadvise --help`
`fadvise {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/linux/fincore.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
- Display all possible data columns:

`fincore --output-all {{path/to/file}}`

- Display help:

`fincore {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/linux/fluidsynth.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
- Specify the audio driver:

`fluidsynth {{[-a|--audio-driver]}} {{pipewire|pulseaudio}} {{path/to/soundfont.sf2}} {{path/to/file.midi}}`

- Display help:

`fluidsynth {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/linux/gtk-launch.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
- Launch an application:

`gtk-launch {{Application_name}}`

- Display help:

`gtk-launch {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/linux/ifstatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
- Display interface status:

`ifstatus {{interface_name}}`

- Display help:

`ifstatus`
2 changes: 1 addition & 1 deletion pages/linux/informant.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@

- Display help:

`informant --help`
`informant {{[-h|--help]}}`
4 changes: 4 additions & 0 deletions pages/linux/ip-maddress.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
- Leave a static multicast group:

`sudo ip {{[m|maddress]}} {{[d|delete]}} {{33:33:00:00:00:02}} dev {{eth0}}`

- Display help:

`ip {{[m|maddress]}} {{[h|help]}}`
4 changes: 4 additions & 0 deletions pages/linux/iwinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@
- List available transmit power levels for the interface:

`iwinfo {{interface}} txpowerlist`

- Display help:

`iwinfo h`
4 changes: 4 additions & 0 deletions pages/linux/kwallet-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
- List all available folders:

`kwallet-query {{kdewallet}} {{[-l|--list-entries]}} {{[-f|--folder]}} ""`

- Display help:

`kwallet-query {{[-h|--help]}}`
2 changes: 1 addition & 1 deletion pages/linux/libinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@

- Display help:

`libinput -h`
`libinput {{[-h|--help]}}`
Loading