From c17c5a3c3ef05feccce6008ea02b0f5eb9b9eb2e Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sun, 27 Apr 2025 10:57:41 +0300 Subject: [PATCH] linux*: refresh old pages part 3 (#16264) --- pages/linux/addr2line.md | 6 +++--- pages/linux/bpftrace.md | 4 ++-- pages/linux/flatpak-builder.md | 4 ++-- pages/linux/gnome-terminal.md | 2 +- pages/linux/gs.md | 2 +- pages/linux/jpegtran.md | 6 +++--- pages/linux/lxi.md | 10 +++++----- pages/linux/mklost+found.md | 2 +- pages/linux/mocp.md | 10 +++++----- pages/linux/openvpn3.md | 6 +++--- pages/linux/partprobe.md | 4 ++-- pages/linux/pulseaudio.md | 6 +++--- pages/linux/tune2fs.md | 6 +++--- pages/linux/updatedb.md | 2 +- pages/linux/uuidd.md | 6 +++--- pages/linux/wifi-menu.md | 4 ++-- pages/linux/xfce4-screenshooter.md | 12 ++++++------ 17 files changed, 46 insertions(+), 46 deletions(-) diff --git a/pages/linux/addr2line.md b/pages/linux/addr2line.md index ec58cdf48d..1322f036e0 100644 --- a/pages/linux/addr2line.md +++ b/pages/linux/addr2line.md @@ -5,12 +5,12 @@ - Display the filename and line number of the source code from an instruction address of an executable: -`addr2line --exe={{path/to/executable}} {{address}}` +`addr2line {{[-e|--exe]}} {{path/to/executable}} {{address}}` - Display the function name, filename and line number: -`addr2line --exe={{path/to/executable}} --functions {{address}}` +`addr2line {{[-e|--exe]}} {{path/to/executable}} {{[-f|--functions]}} {{address}}` - Demangle the function name for C++ code: -`addr2line --exe={{path/to/executable}} --functions --demangle {{address}}` +`addr2line {{[-e|--exe]}} {{path/to/executable}} {{[-f|--functions]}} {{[-C|--demangle]}} {{address}}` diff --git a/pages/linux/bpftrace.md b/pages/linux/bpftrace.md index a27704c25b..bad73920da 100644 --- a/pages/linux/bpftrace.md +++ b/pages/linux/bpftrace.md @@ -1,11 +1,11 @@ # bpftrace > High-level tracing language for Linux eBPF. -> More information: . +> More information: . - Display bpftrace version: -`bpftrace -V` +`bpftrace {{[-V|--version]}}` - List all available probes: diff --git a/pages/linux/flatpak-builder.md b/pages/linux/flatpak-builder.md index 0b1ab7b2af..70f387378d 100644 --- a/pages/linux/flatpak-builder.md +++ b/pages/linux/flatpak-builder.md @@ -9,7 +9,7 @@ - Build a Flatpak and export it to the specified repository: -`flatpak-builder --repo={{repository_name}} {{path/to/build_directory}} {{path/to/manifest}}` +`flatpak-builder --repo {{repository_name}} {{path/to/build_directory}} {{path/to/manifest}}` - Build a Flatpak and install it locally: @@ -17,7 +17,7 @@ - Build and sign a Flatpak and export it to the specified repository: -`flatpak-builder --gpg-sign={{key_id}} --repo={{repository_name}} {{path/to/manifest}}` +`flatpak-builder --gpg-sign {{key_id}} --repo {{repository_name}} {{path/to/manifest}}` - Run a shell inside of an application sandbox without installing it: diff --git a/pages/linux/gnome-terminal.md b/pages/linux/gnome-terminal.md index 9f530a781e..894de2aa5c 100644 --- a/pages/linux/gnome-terminal.md +++ b/pages/linux/gnome-terminal.md @@ -17,4 +17,4 @@ - Set the title of the new tab: -`gnome-terminal --tab --title "{{title}}"` +`gnome-terminal --tab {{[-t|--title]}} "{{title}}"` diff --git a/pages/linux/gs.md b/pages/linux/gs.md index 91bef61617..23cf3e5169 100644 --- a/pages/linux/gs.md +++ b/pages/linux/gs.md @@ -1,6 +1,6 @@ # gs -> GhostScript is a PDF and PostScript interpreter. +> GhostScript, a PDF and PostScript interpreter. > More information: . - To view a file: diff --git a/pages/linux/jpegtran.md b/pages/linux/jpegtran.md index 55925a0708..a63fea7abc 100644 --- a/pages/linux/jpegtran.md +++ b/pages/linux/jpegtran.md @@ -5,11 +5,11 @@ - Mirror an image horizontally or vertically: -`jpegtran -flip {{horizontal|vertical}} {{path/to/image.jpg}} > {{path/to/output.jpg}}` +`jpegtran {{[-f|-flip]}} {{horizontal|vertical}} {{path/to/image.jpg}} > {{path/to/output.jpg}}` - Rotate an image 90, 180 or 270 degrees clockwise: -`jpegtran -rotate {{90|180|270}} {{path/to/image.jpg}} > {{path/to/output.jpg}}` +`jpegtran {{[-ro|-rotate]}} {{90|180|270}} {{path/to/image.jpg}} > {{path/to/output.jpg}}` - Transpose the image across the upper-left to lower right axis: @@ -21,7 +21,7 @@ - Convert the image to grayscale: -`jpegtran -grayscale {{path/to/image.jpg}} > {{path/to/output.jpg}}` +`jpegtran {{[-g|-grayscale]}} {{path/to/image.jpg}} > {{path/to/output.jpg}}` - Crop the image to a rectangular region of width `W` and height `H` from the upper-left corner, saving the output to a specific file: diff --git a/pages/linux/lxi.md b/pages/linux/lxi.md index e41e077bff..78633ff0a6 100644 --- a/pages/linux/lxi.md +++ b/pages/linux/lxi.md @@ -1,7 +1,7 @@ # lxi > Control LXI compatible instruments such as oscilloscopes. -> More information: . +> More information: . - Discover LXI devices on available networks: @@ -9,16 +9,16 @@ - Capture a screenshot, detecting a plugin automatically: -`lxi screenshot --address {{ip_address}}` +`lxi screenshot {{[-a|--address]}} {{ip_address}}` - Capture a screenshot using a specified plugin: -`lxi screenshot --address {{ip_address}} --plugin {{rigol-1000z}}` +`lxi screenshot {{[-a|--address]}} {{ip_address}} {{[-p|--plugin]}} {{rigol-1000z}}` - Send an SCPI command to an instrument: -`lxi scpi --address {{ip_address}} "{{*IDN?}}"` +`lxi scpi {{[-a|--address]}} {{ip_address}} "{{*IDN?}}"` - Run a benchmark for request and response performance: -`lxi benchmark --address {{ip_address}}` +`lxi benchmark {{[-a|--address]}} {{ip_address}}` diff --git a/pages/linux/mklost+found.md b/pages/linux/mklost+found.md index b038553094..6e88f8aad3 100644 --- a/pages/linux/mklost+found.md +++ b/pages/linux/mklost+found.md @@ -1,7 +1,7 @@ # mklost+found > Create a lost+found directory. -> More information: . +> More information: . - Create a `lost+found` directory in the current directory: diff --git a/pages/linux/mocp.md b/pages/linux/mocp.md index a1c0e68f46..60a855c1ff 100644 --- a/pages/linux/mocp.md +++ b/pages/linux/mocp.md @@ -13,19 +13,19 @@ - Start the MOC server in the background, without launching the MOC terminal UI: -`mocp --server` +`mocp {{[-S|--server]}}` - Add a specific song to the play queue while MOC is in the background: -`mocp --enqueue {{path/to/audio_file}}` +`mocp {{[-q|--enqueue]}} {{path/to/audio_file}}` - Add songs recursively to the play queue while MOC is in the background: -`mocp --append {{path/to/directory}}` +`mocp {{[-a|--append]}} {{path/to/directory}}` - Clear the play queue while MOC is in the background: -`mocp --clear` +`mocp {{[-c|--clear]}}` - Play or stop the currently queued song while MOC is in the background: @@ -33,4 +33,4 @@ - Stop the MOC server while it's in the background: -`mocp --exit` +`mocp {{[-x|--exit]}}` diff --git a/pages/linux/openvpn3.md b/pages/linux/openvpn3.md index 045c1899f9..822c1bf356 100644 --- a/pages/linux/openvpn3.md +++ b/pages/linux/openvpn3.md @@ -5,7 +5,7 @@ - Start a new VPN session: -`openvpn3 session-start --config {{path/to/config.conf}}` +`openvpn3 session-start {{[-c|--config]}} {{path/to/config.conf}}` - List established sessions: @@ -13,11 +13,11 @@ - Disconnect the currently established session started with given configuration: -`openvpn3 session-manage --config {{path/to/config.conf}} --disconnect` +`openvpn3 session-manage {{[-c|--config]}} {{path/to/config.conf}} {{[-D|--disconnect]}}` - Import VPN configuration: -`openvpn3 config-import --config {{path/to/config.conf}}` +`openvpn3 config-import {{[-c|--config]}} {{path/to/config.conf}}` - List imported configurations: diff --git a/pages/linux/partprobe.md b/pages/linux/partprobe.md index e3ae08445b..b728ff02b7 100644 --- a/pages/linux/partprobe.md +++ b/pages/linux/partprobe.md @@ -9,8 +9,8 @@ - Notify the kernel of partition table changes and show a summary of devices and their partitions: -`sudo partprobe --summary` +`sudo partprobe {{[-s|--summary]}}` - Show a summary of devices and their partitions but don't notify the kernel: -`sudo partprobe --summary --dry-run` +`sudo partprobe {{[-s|--summary]}} {{[-d|--dry-run]}}` diff --git a/pages/linux/pulseaudio.md b/pages/linux/pulseaudio.md index 1eab7e4f18..55f78baf34 100644 --- a/pages/linux/pulseaudio.md +++ b/pages/linux/pulseaudio.md @@ -1,7 +1,7 @@ # pulseaudio > The PulseAudio sound system daemon and manager. -> More information: . +> More information: . - Check if PulseAudio is running (a non-zero exit code means it is not running): @@ -13,7 +13,7 @@ - Kill the running PulseAudio daemon: -`pulseaudio --kill` +`pulseaudio {{[-k|--kill]}}` - List available modules: @@ -21,4 +21,4 @@ - Load a module into the currently running daemon with the specified arguments: -`pulseaudio --load="{{module_name}} {{arguments}}"` +`pulseaudio {{[-L|--load]}} "{{module_name}} {{arguments}}"` diff --git a/pages/linux/tune2fs.md b/pages/linux/tune2fs.md index f8d60f15de..040bb342d1 100644 --- a/pages/linux/tune2fs.md +++ b/pages/linux/tune2fs.md @@ -6,11 +6,11 @@ - Set the max number of counts before a filesystem is checked to 2: -`tune2fs -c {{2}} {{/dev/sdXN}}` +`tune2fs -c 2 {{/dev/sdXN}}` - Set the filesystem label to MY_LABEL: -`tune2fs -L {{'MY_LABEL'}} {{/dev/sdXN}}` +`tune2fs -L 'MY_LABEL' {{/dev/sdXN}}` - Enable discard and user-specified extended attributes for a filesystem: @@ -18,4 +18,4 @@ - Enable journaling for a filesystem: -`tune2fs -o^{{nobarrier}} {{/dev/sdXN}}` +`tune2fs -o ^{{nobarrier}} {{/dev/sdXN}}` diff --git a/pages/linux/updatedb.md b/pages/linux/updatedb.md index df7725afce..822c04d826 100644 --- a/pages/linux/updatedb.md +++ b/pages/linux/updatedb.md @@ -10,4 +10,4 @@ - Display file names as soon as they are found: -`sudo updatedb --verbose` +`sudo updatedb {{[-v|--verbose]}}` diff --git a/pages/linux/uuidd.md b/pages/linux/uuidd.md index cf68cdeac2..d528ca324b 100644 --- a/pages/linux/uuidd.md +++ b/pages/linux/uuidd.md @@ -5,12 +5,12 @@ - Generate a random UUID: -`uuidd --random` +`uuidd {{[-r|--random]}}` - Generate a bulk number of random UUIDs: -`uuidd --random --uuids {{number_of_uuids}}` +`uuidd {{[-r|--random]}} {{[-n|--uuids]}} {{number_of_uuids}}` - Generate a time-based UUID, based on the current time and MAC address of the system: -`uuidd --time` +`uuidd {{[-t|--time]}}` diff --git a/pages/linux/wifi-menu.md b/pages/linux/wifi-menu.md index 545d8df13f..9cf2a074cf 100644 --- a/pages/linux/wifi-menu.md +++ b/pages/linux/wifi-menu.md @@ -9,8 +9,8 @@ - Interactively set up a connection to a network and obscure the password: -`wifi-menu --obscure` +`wifi-menu {{[-o|--obscure]}}` - Display help: -`wifi-menu --help` +`wifi-menu {{[-h|--help]}}` diff --git a/pages/linux/xfce4-screenshooter.md b/pages/linux/xfce4-screenshooter.md index 2584067e73..7563cbdcd7 100644 --- a/pages/linux/xfce4-screenshooter.md +++ b/pages/linux/xfce4-screenshooter.md @@ -9,24 +9,24 @@ - Take a screenshot of the entire screen and launch the GUI to ask how to proceed: -`xfce4-screenshooter --fullscreen` +`xfce4-screenshooter {{[-f|--fullscreen]}}` - Take a screenshot of the entire screen and save it in the specified directory: -`xfce4-screenshooter --fullscreen --save {{path/to/directory}}` +`xfce4-screenshooter {{[-f|--fullscreen]}} {{[-s|--save]}} {{path/to/directory}}` - Wait some time before taking the screenshot: -`xfce4-screenshooter --delay {{seconds}}` +`xfce4-screenshooter {{[-d|--delay]}} {{seconds}}` - Take a screenshot of a region of the screen (select using the mouse): -`xfce4-screenshooter --region` +`xfce4-screenshooter {{[-r|--region]}}` - Take a screenshot of the active window, and copy it to the clipboard: -`xfce4-screenshooter --window --clipboard` +`xfce4-screenshooter {{[-w|--window]}} {{[-c|--clipboard]}}` - Take a screenshot of the active window, and open it with a chosen program: -`xfce4-screenshooter --window --open {{gimp}}` +`xfce4-screenshooter {{[-w|--window]}} {{[-o|--open]}} {{gimp}}`