1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

linux*: refresh old pages part 3 (#16264)

This commit is contained in:
Managor 2025-04-27 10:57:41 +03:00 committed by GitHub
parent e739810597
commit c17c5a3c3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 46 additions and 46 deletions

View file

@ -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}}`

View file

@ -1,11 +1,11 @@
# bpftrace
> High-level tracing language for Linux eBPF.
> More information: <https://github.com/iovisor/bpftrace>.
> More information: <https://github.com/bpftrace/bpftrace/blob/master/man/adoc/bpftrace.adoc>.
- Display bpftrace version:
`bpftrace -V`
`bpftrace {{[-V|--version]}}`
- List all available probes:

View file

@ -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:

View file

@ -17,4 +17,4 @@
- Set the title of the new tab:
`gnome-terminal --tab --title "{{title}}"`
`gnome-terminal --tab {{[-t|--title]}} "{{title}}"`

View file

@ -1,6 +1,6 @@
# gs
> GhostScript is a PDF and PostScript interpreter.
> GhostScript, a PDF and PostScript interpreter.
> More information: <https://manned.org/gs>.
- To view a file:

View file

@ -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:

View file

@ -1,7 +1,7 @@
# lxi
> Control LXI compatible instruments such as oscilloscopes.
> More information: <https://github.com/lxi-tools/lxi-tools>.
> More information: <https://github.com/lxi-tools/lxi-tools#32-lxi>.
- 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}}`

View file

@ -1,7 +1,7 @@
# mklost+found
> Create a lost+found directory.
> More information: <https://manned.org/mklost+found>.
> More information: <https://linux.die.net/man/8/mklost+found>.
- Create a `lost+found` directory in the current directory:

View file

@ -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]}}`

View file

@ -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:

View file

@ -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]}}`

View file

@ -1,7 +1,7 @@
# pulseaudio
> The PulseAudio sound system daemon and manager.
> More information: <https://www.freedesktop.org/wiki/Software/PulseAudio/>.
> More information: <https://manned.org/pulseaudio>.
- 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}}"`

View file

@ -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:

View file

@ -10,4 +10,4 @@
- Display file names as soon as they are found:
`sudo updatedb --verbose`
`sudo updatedb {{[-v|--verbose]}}`

View file

@ -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]}}`

View file

@ -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]}}`

View file

@ -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}}`