mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 16:47:49 +00:00
Update cheatsheets
This commit is contained in:
17
linux/a2disconf
Normal file
17
linux/a2disconf
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# a2disconf
|
||||
|
||||
> Disable an Apache configuration file on Debian-based OSes.
|
||||
> More information: <https://manpages.debian.org/latest/apache2/a2disconf.8.en.html>.
|
||||
|
||||
- Disable a configuration file:
|
||||
|
||||
`sudo a2disconf {{configuration_file}}`
|
||||
|
||||
- Don't show informative messages:
|
||||
|
||||
`sudo a2disconf --quiet {{configuration_file}}`
|
||||
17
linux/a2dismod
Normal file
17
linux/a2dismod
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# a2dismod
|
||||
|
||||
> Disable an Apache module on Debian-based OSes.
|
||||
> More information: <https://manpages.debian.org/latest/apache2/a2dismod.8.en.html>.
|
||||
|
||||
- Disable a module:
|
||||
|
||||
`sudo a2dismod {{module}}`
|
||||
|
||||
- Don't show informative messages:
|
||||
|
||||
`sudo a2dismod --quiet {{module}}`
|
||||
17
linux/a2dissite
Normal file
17
linux/a2dissite
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# a2dissite
|
||||
|
||||
> Disable an Apache virtual host on Debian-based OSes.
|
||||
> More information: <https://manpages.debian.org/latest/apache2/a2dissite.8.en.html>.
|
||||
|
||||
- Disable a virtual host:
|
||||
|
||||
`sudo a2dissite {{virtual_host}}`
|
||||
|
||||
- Don't show informative messages:
|
||||
|
||||
`sudo a2dissite --quiet {{virtual_host}}`
|
||||
17
linux/a2enconf
Normal file
17
linux/a2enconf
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# a2enconf
|
||||
|
||||
> Enable an Apache configuration file on Debian-based OSes.
|
||||
> More information: <https://manpages.debian.org/latest/apache2/a2enconf.8.en.html>.
|
||||
|
||||
- Enable a configuration file:
|
||||
|
||||
`sudo a2enconf {{configuration_file}}`
|
||||
|
||||
- Don't show informative messages:
|
||||
|
||||
`sudo a2enconf --quiet {{configuration_file}}`
|
||||
17
linux/a2enmod
Normal file
17
linux/a2enmod
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# a2enmod
|
||||
|
||||
> Enable an Apache module on Debian-based OSes.
|
||||
> More information: <https://manpages.debian.org/latest/apache2/a2enmod.8.en.html>.
|
||||
|
||||
- Enable a module:
|
||||
|
||||
`sudo a2enmod {{module}}`
|
||||
|
||||
- Don't show informative messages:
|
||||
|
||||
`sudo a2enmod --quiet {{module}}`
|
||||
17
linux/a2ensite
Normal file
17
linux/a2ensite
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# a2ensite
|
||||
|
||||
> Enable an Apache virtual host on Debian-based OSes.
|
||||
> More information: <https://manpages.debian.org/latest/apache2/a2ensite.8.en.html>.
|
||||
|
||||
- Enable a virtual host:
|
||||
|
||||
`sudo a2ensite {{virtual_host}}`
|
||||
|
||||
- Don't show informative messages:
|
||||
|
||||
`sudo a2ensite --quiet {{virtual_host}}`
|
||||
29
linux/a2query
Normal file
29
linux/a2query
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# a2query
|
||||
|
||||
> Retrieve runtime configuration from Apache on Debian-based OSes.
|
||||
> More information: <https://manpages.debian.org/latest/apache2/a2query.html>.
|
||||
|
||||
- List enabled Apache modules:
|
||||
|
||||
`sudo a2query -m`
|
||||
|
||||
- Check if a specific module is installed:
|
||||
|
||||
`sudo a2query -m {{module_name}}`
|
||||
|
||||
- List enabled virtual hosts:
|
||||
|
||||
`sudo a2query -s`
|
||||
|
||||
- Display the currently enabled Multi Processing Module:
|
||||
|
||||
`sudo a2query -M`
|
||||
|
||||
- Display Apache version:
|
||||
|
||||
`sudo a2query -v`
|
||||
18
linux/aa-complain
Normal file
18
linux/aa-complain
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aa-complain
|
||||
|
||||
> Set an AppArmor policy to complain mode.
|
||||
> See also: `aa-disable`, `aa-enforce`, `aa-status`.
|
||||
> More information: <https://gitlab.com/apparmor/apparmor/-/wikis/manpage_aa-complain.8>.
|
||||
|
||||
- Set policy to complain mode:
|
||||
|
||||
`sudo aa-complain {{path/to/profile1 path/to/profile2 ...}}`
|
||||
|
||||
- Set policies to complain mode:
|
||||
|
||||
`sudo aa-complain --dir {{path/to/profiles}}`
|
||||
18
linux/aa-disable
Normal file
18
linux/aa-disable
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aa-disable
|
||||
|
||||
> Disable AppArmor security policies.
|
||||
> See also: `aa-complain`, `aa-enforce`, `aa-status`.
|
||||
> More information: <https://gitlab.com/apparmor/apparmor/-/wikis/manpage_aa-disable.8>.
|
||||
|
||||
- Disable profile:
|
||||
|
||||
`sudo aa-disable {{path/to/profile1 path/to/profile2 ...}}`
|
||||
|
||||
- Disable profiles (defaults to `/etc/apparmor.d`):
|
||||
|
||||
`sudo aa-disable --dir {{path/to/profiles}}`
|
||||
18
linux/aa-enforce
Normal file
18
linux/aa-enforce
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aa-enforce
|
||||
|
||||
> Set an AppArmor profile to enforce mode.
|
||||
> See also: `aa-complain`, `aa-disable`, `aa-status`.
|
||||
> More information: <https://gitlab.com/apparmor/apparmor/-/wikis/manpage_aa-enforce.8>.
|
||||
|
||||
- Enable profile:
|
||||
|
||||
`sudo aa-enforce {{path/to/profile1 path/to/profile2 ...}}`
|
||||
|
||||
- Enable profiles:
|
||||
|
||||
`sudo aa-enforce --dir {{path/to/profile}}`
|
||||
30
linux/aa-status
Normal file
30
linux/aa-status
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aa-status
|
||||
|
||||
> List currently loaded AppArmor modules.
|
||||
> See also: `aa-complain`, `aa-disable`, `aa-enforce`.
|
||||
> More information: <https://gitlab.com/apparmor/apparmor/-/wikis/manpage_aa-status.8>.
|
||||
|
||||
- Check status:
|
||||
|
||||
`sudo aa-status`
|
||||
|
||||
- Display the number of loaded policies:
|
||||
|
||||
`sudo aa-status --profiled`
|
||||
|
||||
- Display the number of loaded enforicing policies:
|
||||
|
||||
`sudo aa-status --enforced`
|
||||
|
||||
- Display the number of loaded non-enforcing policies:
|
||||
|
||||
`sudo aa-status --complaining`
|
||||
|
||||
- Display the number of loaded enforcing policies that kill tasks:
|
||||
|
||||
`sudo aa-status --kill`
|
||||
26
linux/abbr
Normal file
26
linux/abbr
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# abbr
|
||||
|
||||
> Manage abbreviations for the fish shell.
|
||||
> User-defined words are replaced with longer phrases after they are entered.
|
||||
> More information: <https://fishshell.com/docs/current/cmds/abbr.html>.
|
||||
|
||||
- Add a new abbreviation:
|
||||
|
||||
`abbr --add {{abbreviation_name}} {{command}} {{command_arguments}}`
|
||||
|
||||
- Rename an existing abbreviation:
|
||||
|
||||
`abbr --rename {{old_name}} {{new_name}}`
|
||||
|
||||
- Erase an existing abbreviation:
|
||||
|
||||
`abbr --erase {{abbreviation_name}}`
|
||||
|
||||
- Import the abbreviations defined on another host over SSH:
|
||||
|
||||
`ssh {{host_name}} abbr --show | source`
|
||||
42
linux/abroot
Normal file
42
linux/abroot
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# abroot
|
||||
|
||||
> Utility providing full immutability and atomicity by transacting between 2 root partition states (A⟺B).
|
||||
> Updates are performed using OCI images, to ensure that the system is always in a consistent state.
|
||||
> More information: <https://github.com/Vanilla-OS/ABRoot>.
|
||||
|
||||
- Add packages to the local image (Note: after executing this command, you need to apply these changes.):
|
||||
|
||||
`sudo abroot pkg add {{package}}`
|
||||
|
||||
- Remove packages from the local image (Note: after executing this command, you need to apply these changes.):
|
||||
|
||||
`sudo abroot pkg remove {{package}}`
|
||||
|
||||
- List packages in the local image:
|
||||
|
||||
`sudo abroot pkg list`
|
||||
|
||||
- Apply changes in the local image (Note: you need to reboot your system for these changes to be applied):
|
||||
|
||||
`sudo abroot pkg apply`
|
||||
|
||||
- Rollback your system to previous state:
|
||||
|
||||
`sudo abroot rollback`
|
||||
|
||||
- Edit/View kernel parameters:
|
||||
|
||||
`sudo abroot kargs {{edit|show}}`
|
||||
|
||||
- Display status:
|
||||
|
||||
`sudo abroot status`
|
||||
|
||||
- Display help:
|
||||
|
||||
`abroot --help`
|
||||
29
linux/ac
Normal file
29
linux/ac
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ac
|
||||
|
||||
> Print statistics on how long users have been connected.
|
||||
> More information: <https://www.gnu.org/software/acct/manual/accounting.html#ac>.
|
||||
|
||||
- Print how long the current user has been connected in hours:
|
||||
|
||||
`ac`
|
||||
|
||||
- Print how long users have been connected in hours:
|
||||
|
||||
`ac --individual-totals`
|
||||
|
||||
- Print how long a particular user has been connected in hours:
|
||||
|
||||
`ac --individual-totals {{username}}`
|
||||
|
||||
- Print how long a particular user has been connected in hours per day (with total):
|
||||
|
||||
`ac --daily-totals --individual-totals {{username}}`
|
||||
|
||||
- Also display additional details:
|
||||
|
||||
`ac --compatibility`
|
||||
21
linux/acountry
Normal file
21
linux/acountry
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# acountry
|
||||
|
||||
> Print the country where an IPv4 address or hostname is located.
|
||||
> More information: <https://manned.org/acountry>.
|
||||
|
||||
- Print a country where an IPv4 address or host is located:
|
||||
|
||||
`acountry {{example.com}}`
|
||||
|
||||
- Print extra [d]ebugging output:
|
||||
|
||||
`acountry -d {{example.com}}`
|
||||
|
||||
- Print more [v]erbose information:
|
||||
|
||||
`acountry -v {{example.com}}`
|
||||
33
linux/acpi
Normal file
33
linux/acpi
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# acpi
|
||||
|
||||
> Shows battery status or thermal information.
|
||||
> More information: <https://sourceforge.net/projects/acpiclient/files/acpiclient/>.
|
||||
|
||||
- Show battery information:
|
||||
|
||||
`acpi`
|
||||
|
||||
- Show thermal information:
|
||||
|
||||
`acpi -t`
|
||||
|
||||
- Show cooling device information:
|
||||
|
||||
`acpi -c`
|
||||
|
||||
- Show thermal information in Fahrenheit:
|
||||
|
||||
`acpi -tf`
|
||||
|
||||
- Show all information:
|
||||
|
||||
`acpi -V`
|
||||
|
||||
- Extract information from `/proc` instead of `/sys`:
|
||||
|
||||
`acpi -p`
|
||||
25
linux/add-apt-repository
Normal file
25
linux/add-apt-repository
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# add-apt-repository
|
||||
|
||||
> Manages `apt` repository definitions.
|
||||
> More information: <https://manned.org/apt-add-repository>.
|
||||
|
||||
- Add a new `apt` repository:
|
||||
|
||||
`add-apt-repository {{repository_spec}}`
|
||||
|
||||
- Remove an `apt` repository:
|
||||
|
||||
`add-apt-repository --remove {{repository_spec}}`
|
||||
|
||||
- Update the package cache after adding a repository:
|
||||
|
||||
`add-apt-repository --update {{repository_spec}}`
|
||||
|
||||
- Allow source packages to be downloaded from the repository:
|
||||
|
||||
`add-apt-repository --enable-source {{repository_spec}}`
|
||||
14
linux/addpart
Normal file
14
linux/addpart
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# addpart
|
||||
|
||||
> Tell the Linux kernel about the existence of the specified partition.
|
||||
> A simple wrapper around the `add partition` ioctl.
|
||||
> More information: <https://manned.org/addpart>.
|
||||
|
||||
- Tell the kernel about the existence of the specified partition:
|
||||
|
||||
`addpart {{device}} {{partition}} {{start}} {{length}}`
|
||||
21
linux/addr2line
Normal file
21
linux/addr2line
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# addr2line
|
||||
|
||||
> Convert addresses of a binary into file names and line numbers.
|
||||
> More information: <https://manned.org/addr2line>.
|
||||
|
||||
- Display the filename and line number of the source code from an instruction address of an executable:
|
||||
|
||||
`addr2line --exe={{path/to/executable}} {{address}}`
|
||||
|
||||
- Display the function name, filename and line number:
|
||||
|
||||
`addr2line --exe={{path/to/executable}} --functions {{address}}`
|
||||
|
||||
- Demangle the function name for C++ code:
|
||||
|
||||
`addr2line --exe={{path/to/executable}} --functions --demangle {{address}}`
|
||||
29
linux/adduser
Normal file
29
linux/adduser
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# adduser
|
||||
|
||||
> User addition utility.
|
||||
> More information: <https://manpages.debian.org/latest/adduser/adduser.html>.
|
||||
|
||||
- Create a new user with a default home directory and prompt the user to set a password:
|
||||
|
||||
`adduser {{username}}`
|
||||
|
||||
- Create a new user without a home directory:
|
||||
|
||||
`adduser --no-create-home {{username}}`
|
||||
|
||||
- Create a new user with a home directory at the specified path:
|
||||
|
||||
`adduser --home {{path/to/home}} {{username}}`
|
||||
|
||||
- Create a new user with the specified shell set as the login shell:
|
||||
|
||||
`adduser --shell {{path/to/shell}} {{username}}`
|
||||
|
||||
- Create a new user belonging to the specified group:
|
||||
|
||||
`adduser --ingroup {{group}} {{username}}`
|
||||
29
linux/adig
Normal file
29
linux/adig
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# adig
|
||||
|
||||
> Print information received from Domain Name System (DNS) servers.
|
||||
> More information: <https://manned.org/adig>.
|
||||
|
||||
- Display A (default) record from DNS for hostname(s):
|
||||
|
||||
`adig {{example.com}}`
|
||||
|
||||
- Display extra [d]ebugging output:
|
||||
|
||||
`adig -d {{example.com}}`
|
||||
|
||||
- Connect to a specific DNS [s]erver:
|
||||
|
||||
`adig -s {{1.2.3.4}} {{example.com}}`
|
||||
|
||||
- Use a specific TCP port to connect to a DNS server:
|
||||
|
||||
`adig -T {{port}} {{example.com}}`
|
||||
|
||||
- Use a specific UDP port to connect to a DNS server:
|
||||
|
||||
`adig -U {{port}} {{example.com}}`
|
||||
21
linux/ahost
Normal file
21
linux/ahost
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ahost
|
||||
|
||||
> DNS lookup utility to display the A or AAAA record linked with a hostname or IP address.
|
||||
> More information: <https://manned.org/ahost>.
|
||||
|
||||
- Print an `A` or `AAAA` record associated with a hostname or IP address:
|
||||
|
||||
`ahost {{example.com}}`
|
||||
|
||||
- Display some extra debugging output:
|
||||
|
||||
`ahost -d {{example.com}}`
|
||||
|
||||
- Display the record with a specified type:
|
||||
|
||||
`ahost -t {{a|aaaa|u}} {{example.com}}`
|
||||
26
linux/alien
Normal file
26
linux/alien
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# alien
|
||||
|
||||
> Convert different installation packages to other formats.
|
||||
> See also: `debtap`, for `.deb` conversion on Arch Linux.
|
||||
> More information: <https://manned.org/alien>.
|
||||
|
||||
- Convert a specific installation file to Debian format (`.deb` extension):
|
||||
|
||||
`sudo alien --to-deb {{path/to/file}}`
|
||||
|
||||
- Convert a specific installation file to Red Hat format (`.rpm` extension):
|
||||
|
||||
`sudo alien --to-rpm {{path/to/file}}`
|
||||
|
||||
- Convert a specific installation file to a Slackware installation file (`.tgz` extension):
|
||||
|
||||
`sudo alien --to-tgz {{path/to/file}}`
|
||||
|
||||
- Convert a specific installation file to Debian format and install on the system:
|
||||
|
||||
`sudo alien --to-deb --install {{path/to/file}}`
|
||||
22
linux/alpine
Normal file
22
linux/alpine
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# alpine
|
||||
|
||||
> An email client and Usenet newsgroup program with a pico/nano-inspired interface.
|
||||
> Supports most modern email services through IMAP.
|
||||
> More information: <https://manned.org/alpine>.
|
||||
|
||||
- Open alpine normally:
|
||||
|
||||
`alpine`
|
||||
|
||||
- Open alpine directly to the message composition screen to send an email to a given email address:
|
||||
|
||||
`alpine {{email@example.net}}`
|
||||
|
||||
- Quit alpine:
|
||||
|
||||
`q + y`
|
||||
13
linux/alternatives
Normal file
13
linux/alternatives
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# alternatives
|
||||
|
||||
> This command is an alias of `update-alternatives`.
|
||||
> More information: <https://manned.org/alternatives>.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr update-alternatives`
|
||||
17
linux/amixer
Normal file
17
linux/amixer
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# amixer
|
||||
|
||||
> Mixer for ALSA soundcard driver.
|
||||
> More information: <https://manned.org/amixer>.
|
||||
|
||||
- Turn up the master volume by 10%:
|
||||
|
||||
`amixer -D pulse sset Master {{10%+}}`
|
||||
|
||||
- Turn down the master volume by 10%:
|
||||
|
||||
`amixer -D pulse sset Master {{10%-}}`
|
||||
13
linux/anbox
Normal file
13
linux/anbox
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# anbox
|
||||
|
||||
> Run Android applications on any Linux operating system.
|
||||
> More information: <https://manned.org/anbox>.
|
||||
|
||||
- Launch Anbox into the app manager:
|
||||
|
||||
`anbox launch --package={{org.anbox.appmgr}} --component={{org.anbox.appmgr.AppViewActivity}}`
|
||||
30
linux/apache2ctl
Normal file
30
linux/apache2ctl
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apache2ctl
|
||||
|
||||
> Administrate the Apache HTTP web server.
|
||||
> This command comes with Debian based OSes, for RHEL based ones see `httpd`.
|
||||
> More information: <https://manpages.debian.org/latest/apache2/apache2ctl.8.en.html>.
|
||||
|
||||
- Start the Apache daemon. Throw a message if it is already running:
|
||||
|
||||
`sudo apache2ctl start`
|
||||
|
||||
- Stop the Apache daemon:
|
||||
|
||||
`sudo apache2ctl stop`
|
||||
|
||||
- Restart the Apache daemon:
|
||||
|
||||
`sudo apache2ctl restart`
|
||||
|
||||
- Test syntax of the configuration file:
|
||||
|
||||
`sudo apache2ctl -t`
|
||||
|
||||
- List loaded modules:
|
||||
|
||||
`sudo apache2ctl -M`
|
||||
33
linux/apk
Normal file
33
linux/apk
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apk
|
||||
|
||||
> Alpine Linux package management tool.
|
||||
> More information: <https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management>.
|
||||
|
||||
- Update repository indexes from all remote repositories:
|
||||
|
||||
`apk update`
|
||||
|
||||
- Install a new package:
|
||||
|
||||
`apk add {{package}}`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`apk del {{package}}`
|
||||
|
||||
- Repair a package or upgrade it without modifying main dependencies:
|
||||
|
||||
`apk fix {{package}}`
|
||||
|
||||
- Search for a package via keywords:
|
||||
|
||||
`apk search {{keywords}}`
|
||||
|
||||
- Display information about a specific package:
|
||||
|
||||
`apk info {{package}}`
|
||||
21
linux/aplay
Normal file
21
linux/aplay
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aplay
|
||||
|
||||
> Command-line sound player for ALSA soundcard driver.
|
||||
> More information: <https://manned.org/aplay>.
|
||||
|
||||
- Play a specific file (sampling rate, bit depth, etc. will be automatically determined for the file format):
|
||||
|
||||
`aplay {{path/to/file}}`
|
||||
|
||||
- Play the first 10 seconds of a specific file at 2500 Hz:
|
||||
|
||||
`aplay --duration={{10}} --rate={{2500}} {{path/to/file}}`
|
||||
|
||||
- Play the raw file as a 22050 Hz, mono, 8-bit, Mu-Law `.au` file:
|
||||
|
||||
`aplay --channels={{1}} --file-type {{raw}} --rate={{22050}} --format={{mu_law}} {{path/to/file}}`
|
||||
25
linux/apport-bug
Normal file
25
linux/apport-bug
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apport-bug
|
||||
|
||||
> File a bug report on Ubuntu.
|
||||
> More information: <https://wiki.ubuntu.com/Apport>.
|
||||
|
||||
- Report a bug about the whole system:
|
||||
|
||||
`apport-bug`
|
||||
|
||||
- Report a bug about a specific package:
|
||||
|
||||
`apport-bug {{package}}`
|
||||
|
||||
- Report a bug about a specific executable:
|
||||
|
||||
`apport-bug {{path/to/executable}}`
|
||||
|
||||
- Report a bug about a specific process:
|
||||
|
||||
`apport-bug {{PID}}`
|
||||
43
linux/apt
Normal file
43
linux/apt
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apt
|
||||
|
||||
> Package management utility for Debian based distributions.
|
||||
> Recommended replacement for `apt-get` when used interactively in Ubuntu versions 16.04 and later.
|
||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||
> More information: <https://manpages.debian.org/latest/apt/apt.8.html>.
|
||||
|
||||
- Update the list of available packages and versions (it's recommended to run this before other `apt` commands):
|
||||
|
||||
`sudo apt update`
|
||||
|
||||
- Search for a given package:
|
||||
|
||||
`apt search {{package}}`
|
||||
|
||||
- Show information for a package:
|
||||
|
||||
`apt show {{package}}`
|
||||
|
||||
- Install a package, or update it to the latest available version:
|
||||
|
||||
`sudo apt install {{package}}`
|
||||
|
||||
- Remove a package (using `purge` instead also removes its configuration files):
|
||||
|
||||
`sudo apt remove {{package}}`
|
||||
|
||||
- Upgrade all installed packages to their newest available versions:
|
||||
|
||||
`sudo apt upgrade`
|
||||
|
||||
- List all packages:
|
||||
|
||||
`apt list`
|
||||
|
||||
- List installed packages:
|
||||
|
||||
`apt list --installed`
|
||||
25
linux/apt-add-repository
Normal file
25
linux/apt-add-repository
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apt-add-repository
|
||||
|
||||
> Manages `apt` repository definitions.
|
||||
> More information: <https://manpages.debian.org/latest/software-properties-common/apt-add-repository.1.html>.
|
||||
|
||||
- Add a new `apt` repository:
|
||||
|
||||
`apt-add-repository {{repository_spec}}`
|
||||
|
||||
- Remove an `apt` repository:
|
||||
|
||||
`apt-add-repository --remove {{repository_spec}}`
|
||||
|
||||
- Update the package cache after adding a repository:
|
||||
|
||||
`apt-add-repository --update {{repository_spec}}`
|
||||
|
||||
- Enable source packages:
|
||||
|
||||
`apt-add-repository --enable-source {{repository_spec}}`
|
||||
29
linux/apt-cache
Normal file
29
linux/apt-cache
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apt-cache
|
||||
|
||||
> Debian and Ubuntu package query tool.
|
||||
> More information: <https://manpages.debian.org/latest/apt/apt-cache.8.html>.
|
||||
|
||||
- Search for a package in your current sources:
|
||||
|
||||
`apt-cache search {{query}}`
|
||||
|
||||
- Show information about a package:
|
||||
|
||||
`apt-cache show {{package}}`
|
||||
|
||||
- Show whether a package is installed and up to date:
|
||||
|
||||
`apt-cache policy {{package}}`
|
||||
|
||||
- Show dependencies for a package:
|
||||
|
||||
`apt-cache depends {{package}}`
|
||||
|
||||
- Show packages that depend on a particular package:
|
||||
|
||||
`apt-cache rdepends {{package}}`
|
||||
25
linux/apt-file
Normal file
25
linux/apt-file
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apt-file
|
||||
|
||||
> Search for files in `apt` packages, including ones not yet installed.
|
||||
> More information: <https://manpages.debian.org/latest/apt-file/apt-file.1.html>.
|
||||
|
||||
- Update the metadata database:
|
||||
|
||||
`sudo apt update`
|
||||
|
||||
- Search for packages that contain the specified file or path:
|
||||
|
||||
`apt-file {{search|find}} {{partial_path/to/file}}`
|
||||
|
||||
- List the contents of a specific package:
|
||||
|
||||
`apt-file {{show|list}} {{package}}`
|
||||
|
||||
- Search for packages that match the `regular_expression`:
|
||||
|
||||
`apt-file {{search|find}} --regexp {{regular_expression}}`
|
||||
42
linux/apt-get
Normal file
42
linux/apt-get
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apt-get
|
||||
|
||||
> Debian and Ubuntu package management utility.
|
||||
> Search for packages using `apt-cache`.
|
||||
> More information: <https://manpages.debian.org/latest/apt/apt-get.8.html>.
|
||||
|
||||
- Update the list of available packages and versions (it's recommended to run this before other `apt-get` commands):
|
||||
|
||||
`apt-get update`
|
||||
|
||||
- Install a package, or update it to the latest available version:
|
||||
|
||||
`apt-get install {{package}}`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`apt-get remove {{package}}`
|
||||
|
||||
- Remove a package and its configuration files:
|
||||
|
||||
`apt-get purge {{package}}`
|
||||
|
||||
- Upgrade all installed packages to their newest available versions:
|
||||
|
||||
`apt-get upgrade`
|
||||
|
||||
- Clean the local repository - removing package files (`.deb`) from interrupted downloads that can no longer be downloaded:
|
||||
|
||||
`apt-get autoclean`
|
||||
|
||||
- Remove all packages that are no longer needed:
|
||||
|
||||
`apt-get autoremove`
|
||||
|
||||
- Upgrade installed packages (like `upgrade`), but remove obsolete packages and install additional packages to meet new dependencies:
|
||||
|
||||
`apt-get dist-upgrade`
|
||||
30
linux/apt-key
Normal file
30
linux/apt-key
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apt-key
|
||||
|
||||
> Key management utility for the APT Package Manager on Debian and Ubuntu.
|
||||
> Note: `apt-key` is now deprecated (except for the use of `apt-key del` in maintainer scripts).
|
||||
> More information: <https://manpages.debian.org/latest/apt/apt-key.8.html>.
|
||||
|
||||
- List trusted keys:
|
||||
|
||||
`apt-key list`
|
||||
|
||||
- Add a key to the trusted keystore:
|
||||
|
||||
`apt-key add {{public_key_file.asc}}`
|
||||
|
||||
- Delete a key from the trusted keystore:
|
||||
|
||||
`apt-key del {{key_id}}`
|
||||
|
||||
- Add a remote key to the trusted keystore:
|
||||
|
||||
`wget -qO - {{https://host.tld/filename.key}} | apt-key add -`
|
||||
|
||||
- Add a key from keyserver with only key id:
|
||||
|
||||
`apt-key adv --keyserver {{pgp.mit.edu}} --recv {{KEYID}}`
|
||||
29
linux/apt-mark
Normal file
29
linux/apt-mark
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apt-mark
|
||||
|
||||
> Utility to change the status of installed packages.
|
||||
> More information: <https://manpages.debian.org/latest/apt/apt-mark.8.html>.
|
||||
|
||||
- Mark a package as automatically installed:
|
||||
|
||||
`sudo apt-mark auto {{package}}`
|
||||
|
||||
- Hold a package at its current version and prevent updates to it:
|
||||
|
||||
`sudo apt-mark hold {{package}}`
|
||||
|
||||
- Allow a package to be updated again:
|
||||
|
||||
`sudo apt-mark unhold {{package}}`
|
||||
|
||||
- Show manually installed packages:
|
||||
|
||||
`apt-mark showmanual`
|
||||
|
||||
- Show held packages that aren't being updated:
|
||||
|
||||
`apt-mark showhold`
|
||||
13
linux/apt-moo
Normal file
13
linux/apt-moo
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apt moo
|
||||
|
||||
> An `APT` easter egg.
|
||||
> More information: <https://manpages.debian.org/latest/apt/apt.8.html>.
|
||||
|
||||
- Print a cow easter egg:
|
||||
|
||||
`apt moo`
|
||||
41
linux/aptitude
Normal file
41
linux/aptitude
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aptitude
|
||||
|
||||
> Debian and Ubuntu package management utility.
|
||||
> More information: <https://manpages.debian.org/latest/aptitude/aptitude.8.html>.
|
||||
|
||||
- Synchronize list of packages and versions available. This should be run first, before running subsequent `aptitude` commands:
|
||||
|
||||
`aptitude update`
|
||||
|
||||
- Install a new package and its dependencies:
|
||||
|
||||
`aptitude install {{package}}`
|
||||
|
||||
- Search for a package:
|
||||
|
||||
`aptitude search {{package}}`
|
||||
|
||||
- Search for an installed package (`?installed` is an `aptitude` search term):
|
||||
|
||||
`aptitude search '?installed({{package}})'`
|
||||
|
||||
- Remove a package and all packages depending on it:
|
||||
|
||||
`aptitude remove {{package}}`
|
||||
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
|
||||
`aptitude upgrade`
|
||||
|
||||
- Upgrade installed packages (like `aptitude upgrade`) including removing obsolete packages and installing additional packages to meet new package dependencies:
|
||||
|
||||
`aptitude full-upgrade`
|
||||
|
||||
- Put an installed package on hold to prevent it from being automatically upgraded:
|
||||
|
||||
`aptitude hold '?installed({{package}})'`
|
||||
21
linux/apx
Normal file
21
linux/apx
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apx
|
||||
|
||||
> Package management utility with support for multiple sources, allowing you to install packages in subsystems.
|
||||
> More information: <https://github.com/Vanilla-OS/apx>.
|
||||
|
||||
- View documentation for managing package managers:
|
||||
|
||||
`tldr apx pkgmanagers`
|
||||
|
||||
- View documentation for managing stacks:
|
||||
|
||||
`tldr apx stacks`
|
||||
|
||||
- View documentation for managing subsystems:
|
||||
|
||||
`tldr apx subsystems`
|
||||
26
linux/apx-pkgmanagers
Normal file
26
linux/apx-pkgmanagers
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apx pkgmanagers
|
||||
|
||||
> Manage package managers in `apx`.
|
||||
> Note: user-created package manager configurations are stored in `~/.local/share/apx/pkgmanagers`.
|
||||
> More information: <https://github.com/Vanilla-OS/apx>.
|
||||
|
||||
- Interactively create a new package manager configuration:
|
||||
|
||||
`apx pkgmanagers create`
|
||||
|
||||
- List all available package manager confirgurations:
|
||||
|
||||
`apx pkgmanagers list`
|
||||
|
||||
- Remove a package manager configuration:
|
||||
|
||||
`apx pkgmanagers rm --name {{string}}`
|
||||
|
||||
- Display information about a specific package manager:
|
||||
|
||||
`apx pkgmanagers show {{name}}`
|
||||
34
linux/apx-stacks
Normal file
34
linux/apx-stacks
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apx stacks
|
||||
|
||||
> Manage stacks in `apx`.
|
||||
> Note: user-created stack configurations are stored in `~/.local/share/apx/stacks`.
|
||||
> More information: <https://github.com/Vanilla-OS/apx>.
|
||||
|
||||
- Interactively create a new stack configuration:
|
||||
|
||||
`apx stacks new`
|
||||
|
||||
- Interactively update a stack configuration:
|
||||
|
||||
`apx stacks update {{name}}`
|
||||
|
||||
- List all available stack configurations:
|
||||
|
||||
`apx stacks list`
|
||||
|
||||
- Remove a specified stack configuration:
|
||||
|
||||
`apx stacks rm --name {{string}}`
|
||||
|
||||
- Import a stack configuration:
|
||||
|
||||
`apx stacks import --input {{path/to/stack.yml}}`
|
||||
|
||||
- Export the stack configuration (Note: the output flag is optional, it is exported to the current working directory by default):
|
||||
|
||||
`apx stacks export --name {{string}} --output {{path/to/output_file}}`
|
||||
34
linux/apx-subsystems
Normal file
34
linux/apx-subsystems
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apx subsystems
|
||||
|
||||
> Manage subsystems in `apx`.
|
||||
> Subsystems are containers that can be created based on pre-existing stacks.
|
||||
> More information: <https://github.com/Vanilla-OS/apx>.
|
||||
|
||||
- Interactively create a new subsystem:
|
||||
|
||||
`apx subsystems new`
|
||||
|
||||
- List all available subsystems:
|
||||
|
||||
`apx subsystems list`
|
||||
|
||||
- Reset a specific subsystem to its initial state:
|
||||
|
||||
`apx subsystems reset --name {{string}}`
|
||||
|
||||
- [f]orce reset a specific subsystem:
|
||||
|
||||
`apx subsystems reset --name {{string}} --force`
|
||||
|
||||
- Remove a specific subsystem:
|
||||
|
||||
`apx subsystems rm --name {{string}}`
|
||||
|
||||
- [f]orce remove a specific subsystem:
|
||||
|
||||
`apx subsystems rm --name {{string}} --force`
|
||||
25
linux/arch-chroot
Normal file
25
linux/arch-chroot
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# arch-chroot
|
||||
|
||||
> Enhanced `chroot` command to help in the Arch Linux installation process.
|
||||
> More information: <https://man.archlinux.org/man/arch-chroot.8>.
|
||||
|
||||
- Start an interactive shell (`bash`, by default) in a new root directory:
|
||||
|
||||
`arch-chroot {{path/to/new/root}}`
|
||||
|
||||
- Specify the user (other than the current user) to run the shell as:
|
||||
|
||||
`arch-chroot -u {{user}} {{path/to/new/root}}`
|
||||
|
||||
- Run a custom command (instead of the default `bash`) in the new root directory:
|
||||
|
||||
`arch-chroot {{path/to/new/root}} {{command}} {{command_arguments}}`
|
||||
|
||||
- Specify the shell, other than the default `bash` (in this case, the `zsh` package should have been installed in the target system):
|
||||
|
||||
`arch-chroot {{path/to/new/root}} {{zsh}}`
|
||||
13
linux/archey
Normal file
13
linux/archey
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# archey
|
||||
|
||||
> Simple tool for stylishly displaying system information.
|
||||
> More information: <https://lclarkmichalek.github.io/archey3/>.
|
||||
|
||||
- Show system information:
|
||||
|
||||
`archey`
|
||||
17
linux/archinstall
Normal file
17
linux/archinstall
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# archinstall
|
||||
|
||||
> Guided Arch Linux installer with a twist.
|
||||
> More information: <https://archinstall.readthedocs.io>.
|
||||
|
||||
- Start the interactive installer:
|
||||
|
||||
`archinstall`
|
||||
|
||||
- Start a preset installer:
|
||||
|
||||
`archinstall {{minimal|unattended}}`
|
||||
13
linux/archivemount
Normal file
13
linux/archivemount
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# archivemount
|
||||
|
||||
> Mount an archive for access as a filesystem.
|
||||
> More information: <https://manned.org/archivemount>.
|
||||
|
||||
- Mount an archive to a specific mountpoint:
|
||||
|
||||
`archivemount {{path/to/archive}} {{path/to/mount_point}}`
|
||||
29
linux/archlinux-java
Normal file
29
linux/archlinux-java
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# archlinux-java
|
||||
|
||||
> Switch between installed Java environments.
|
||||
> More information: <https://wiki.archlinux.org/title/Java#Switching_between_JVM>.
|
||||
|
||||
- List installed Java environments:
|
||||
|
||||
`archlinux-java status`
|
||||
|
||||
- Return the short name of the current default Java environment:
|
||||
|
||||
`archlinux-java get`
|
||||
|
||||
- Set the default Java environment:
|
||||
|
||||
`archlinux-java set {{java_environment}}`
|
||||
|
||||
- Unset the default Java environment:
|
||||
|
||||
`archlinux-java unset`
|
||||
|
||||
- Fix an invalid/broken default Java environment configuration:
|
||||
|
||||
`archlinux-java fix`
|
||||
29
linux/arecord
Normal file
29
linux/arecord
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# arecord
|
||||
|
||||
> Sound recorder for ALSA soundcard driver.
|
||||
> More information: <https://manned.org/arecord>.
|
||||
|
||||
- Record a snippet in "CD" quality (finish with Ctrl-C when done):
|
||||
|
||||
`arecord -vv --format=cd {{path/to/file.wav}}`
|
||||
|
||||
- Record a snippet in "CD" quality, with a fixed duration of 10 seconds:
|
||||
|
||||
`arecord -vv --format=cd --duration={{10}} {{path/to/file.wav}}`
|
||||
|
||||
- Record a snippet and save it as an MP3 (finish with Ctrl-C when done):
|
||||
|
||||
`arecord -vv --format=cd --file-type raw | lame -r - {{path/to/file.mp3}}`
|
||||
|
||||
- List all sound cards and digital audio devices:
|
||||
|
||||
`arecord --list-devices`
|
||||
|
||||
- Allow interactive interface (e.g. use space-bar or enter to play or pause):
|
||||
|
||||
`arecord --interactive`
|
||||
21
linux/arithmetic
Normal file
21
linux/arithmetic
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# arithmetic
|
||||
|
||||
> Quiz on simple arithmetic problems.
|
||||
> More information: <https://manpages.debian.org/latest/bsdgames/arithmetic.6.en.html>.
|
||||
|
||||
- Start an arithmetic quiz:
|
||||
|
||||
`arithmetic`
|
||||
|
||||
- Specify one or more arithmetic [o]peration symbols to get problems on them:
|
||||
|
||||
`arithmetic -o {{+|-|x|/}}`
|
||||
|
||||
- Specify a range. Addition and multiplication problems would feature numbers between 0 and range, inclusive. Subtraction and division problems would have required result and number to be operated on, between 0 and range:
|
||||
|
||||
`arithmetic -r {{7}}`
|
||||
21
linux/ark
Normal file
21
linux/ark
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ark
|
||||
|
||||
> KDE's archiving tool.
|
||||
> More information: <https://docs.kde.org/stable5/en/ark/ark/>.
|
||||
|
||||
- Extract a specific archive into the current directory:
|
||||
|
||||
`ark --batch {{path/to/archive}}`
|
||||
|
||||
- Extract an archive into a specific directory:
|
||||
|
||||
`ark --batch --destination {{path/to/directory}} {{path/to/archive}}`
|
||||
|
||||
- Create an archive if it does not exist and add specific files to it:
|
||||
|
||||
`ark --add-to {{path/to/archive}} {{path/to/file1 path/to/file2 ...}}`
|
||||
13
linux/arpaname
Normal file
13
linux/arpaname
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# arpaname
|
||||
|
||||
> Provides corresponding ARPA name for IP addresses.
|
||||
> More information: <https://manned.org/arpaname>.
|
||||
|
||||
- Translate IP addresses (IPv4 and IPv6) to the corresponding ARPA name:
|
||||
|
||||
`arpaname {{ip_address}}`
|
||||
21
linux/arpspoof
Normal file
21
linux/arpspoof
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# arpspoof
|
||||
|
||||
> Forge ARP replies to intercept packets.
|
||||
> More information: <https://monkey.org/~dugsong/dsniff>.
|
||||
|
||||
- Poison all hosts to intercept packets on [i]nterface for the host:
|
||||
|
||||
`sudo arpspoof -i {{wlan0}} {{host_ip}}`
|
||||
|
||||
- Poison [t]arget to intercept packets on [i]nterface for the host:
|
||||
|
||||
`sudo arpspoof -i {{wlan0}} -t {{target_ip}} {{host_ip}}`
|
||||
|
||||
- Poison both [t]arget and host to intercept packets on [i]nterface for the host:
|
||||
|
||||
`sudo arpspoof -i {{wlan0}} -r -t {{target_ip}} {{host_ip}}`
|
||||
26
linux/as
Normal file
26
linux/as
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# as
|
||||
|
||||
> Portable GNU assembler.
|
||||
> Primarily intended to assemble output from `gcc` to be used by `ld`.
|
||||
> More information: <https://manned.org/as>.
|
||||
|
||||
- Assemble a file, writing the output to `a.out`:
|
||||
|
||||
`as {{file.s}}`
|
||||
|
||||
- Assemble the output to a given file:
|
||||
|
||||
`as {{file.s}} -o {{out.o}}`
|
||||
|
||||
- Generate output faster by skipping whitespace and comment preprocessing. (Should only be used for trusted compilers):
|
||||
|
||||
`as -f {{file.s}}`
|
||||
|
||||
- Include a given path to the list of directories to search for files specified in `.include` directives:
|
||||
|
||||
`as -I {{path/to/directory}} {{file.s}}`
|
||||
41
linux/ascii
Normal file
41
linux/ascii
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ascii
|
||||
|
||||
> Show ASCII character aliases.
|
||||
> More information: <http://www.catb.org/~esr/ascii/>.
|
||||
|
||||
- Show ASCII aliases of a character:
|
||||
|
||||
`ascii {{a}}`
|
||||
|
||||
- Show ASCII aliases in short, script-friendly mode:
|
||||
|
||||
`ascii -t {{a}}`
|
||||
|
||||
- Show ASCII aliases of multiple characters:
|
||||
|
||||
`ascii -s {{tldr}}`
|
||||
|
||||
- Show ASCII table in decimal:
|
||||
|
||||
`ascii -d`
|
||||
|
||||
- Show ASCII table in hexadecimal:
|
||||
|
||||
`ascii -x`
|
||||
|
||||
- Show ASCII table in octal:
|
||||
|
||||
`ascii -o`
|
||||
|
||||
- Show ASCII table in binary:
|
||||
|
||||
`ascii -b`
|
||||
|
||||
- Show options summary and complete ASCII table:
|
||||
|
||||
`ascii`
|
||||
33
linux/asciiart
Normal file
33
linux/asciiart
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# asciiart
|
||||
|
||||
> Convert images to ASCII.
|
||||
> More information: <https://github.com/nodanaonlyzuul/asciiart>.
|
||||
|
||||
- Read an image from a file and print in ASCII:
|
||||
|
||||
`asciiart {{path/to/image.jpg}}`
|
||||
|
||||
- Read an image from a URL and print in ASCII:
|
||||
|
||||
`asciiart {{www.example.com/image.jpg}}`
|
||||
|
||||
- Choose the output width (default is 100):
|
||||
|
||||
`asciiart --width {{50}} {{path/to/image.jpg}}`
|
||||
|
||||
- Colorize the ASCII output:
|
||||
|
||||
`asciiart --color {{path/to/image.jpg}}`
|
||||
|
||||
- Choose the output format (default format is text):
|
||||
|
||||
`asciiart --format {{text|html}} {{path/to/image.jpg}}`
|
||||
|
||||
- Invert the character map:
|
||||
|
||||
`asciiart --invert-chars {{path/to/image.jpg}}`
|
||||
29
linux/aspell
Normal file
29
linux/aspell
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aspell
|
||||
|
||||
> Interactive spell checker.
|
||||
> More information: <http://aspell.net/>.
|
||||
|
||||
- Spell check a single file:
|
||||
|
||||
`aspell check {{path/to/file}}`
|
||||
|
||||
- List misspelled words from `stdin`:
|
||||
|
||||
`cat {{path/to/file}} | aspell list`
|
||||
|
||||
- Show available dictionary languages:
|
||||
|
||||
`aspell dicts`
|
||||
|
||||
- Run `aspell` with a different language (takes two-letter ISO 639 language code):
|
||||
|
||||
`aspell --lang={{cs}}`
|
||||
|
||||
- List misspelled words from `stdin` and ignore words from personal word list:
|
||||
|
||||
`cat {{path/to/file}} | aspell --personal={{personal-word-list.pws}} list`
|
||||
37
linux/asterisk
Normal file
37
linux/asterisk
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# asterisk
|
||||
|
||||
> Run and manage telephone and exchange (phone) server instances.
|
||||
> More information: <https://wiki.asterisk.org/wiki/display/AST/Home>.
|
||||
|
||||
- [R]econnect to a running server, and turn on logging 3 levels of [v]erbosity:
|
||||
|
||||
`asterisk -r -vvv`
|
||||
|
||||
- [R]econnect to a running server, run a single command, and return:
|
||||
|
||||
`asterisk -r -x "{{command}}"`
|
||||
|
||||
- Show chan_SIP clients (phones):
|
||||
|
||||
`asterisk -r -x "sip show peers"`
|
||||
|
||||
- Show active calls and channels:
|
||||
|
||||
`asterisk -r -x "core show channels"`
|
||||
|
||||
- Show voicemail mailboxes:
|
||||
|
||||
`asterisk -r -x "voicemail show users"`
|
||||
|
||||
- Terminate a channel:
|
||||
|
||||
`asterisk -r -x "hangup request {{channel_ID}}"`
|
||||
|
||||
- Reload chan_SIP configuration:
|
||||
|
||||
`asterisk -r -x "sip reload"`
|
||||
25
linux/at
Normal file
25
linux/at
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# at
|
||||
|
||||
> Executes commands at a specified time.
|
||||
> More information: <https://man.archlinux.org/man/at.1>.
|
||||
|
||||
- Open an `at` prompt to create a new set of scheduled commands, press `Ctrl + D` to save and exit:
|
||||
|
||||
`at {{hh:mm}}`
|
||||
|
||||
- Execute the commands and email the result using a local mailing program such as Sendmail:
|
||||
|
||||
`at {{hh:mm}} -m`
|
||||
|
||||
- Execute a script at the given time:
|
||||
|
||||
`at {{hh:mm}} -f {{path/to/file}}`
|
||||
|
||||
- Display a system notification at 11pm on February 18th:
|
||||
|
||||
`echo "notify-send '{{Wake up!}}'" | at {{11pm}} {{Feb 18}}`
|
||||
25
linux/atool
Normal file
25
linux/atool
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# atool
|
||||
|
||||
> Manage archives of various formats.
|
||||
> More information: <https://www.nongnu.org/atool/>.
|
||||
|
||||
- List files in a `zip` archive:
|
||||
|
||||
`atool --list {{path/to/archive.zip}}`
|
||||
|
||||
- Unpack a tar.gz archive into a new subdirectory (or current directory if it contains only one file):
|
||||
|
||||
`atool --extract {{path/to/archive.tar.gz}}`
|
||||
|
||||
- Create a new `7z` archive with two files:
|
||||
|
||||
`atool --add {{path/to/archive.7z}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Extract all `zip` and rar archives in the current directory:
|
||||
|
||||
`atool --each --extract {{*.zip *.rar}}`
|
||||
37
linux/atop
Normal file
37
linux/atop
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# atop
|
||||
|
||||
> Linux system and process monitor.
|
||||
> More information: <https://manned.org/atop>.
|
||||
|
||||
- Start:
|
||||
|
||||
`atop`
|
||||
|
||||
- Start and display memory consumption for each process:
|
||||
|
||||
`atop -m`
|
||||
|
||||
- Start and display disk information:
|
||||
|
||||
`atop -d`
|
||||
|
||||
- Start and display background process information:
|
||||
|
||||
`atop -c`
|
||||
|
||||
- Start and display thread-specific resource utilization information:
|
||||
|
||||
`atop -y`
|
||||
|
||||
- Start and display the number of processes for each user:
|
||||
|
||||
`atop -au`
|
||||
|
||||
- Display help about interactive commands:
|
||||
|
||||
`?`
|
||||
41
linux/aura
Normal file
41
linux/aura
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aura
|
||||
|
||||
> The Aura Package Manager: a secure, multilingual package manager for Arch Linux and the AUR.
|
||||
> More information: <https://github.com/fosskers/aura>.
|
||||
|
||||
- Search for packages from the official repositories and AUR:
|
||||
|
||||
`aura --aursync --both --search {{keyword|regular_expression}}`
|
||||
|
||||
- Install a package from the AUR:
|
||||
|
||||
`aura --aursync {{package}}`
|
||||
|
||||
- Update all AUR packages in a verbose mode and remove all make dependencies:
|
||||
|
||||
`aura --aursync --diff --sysupgrade --delmakedeps --unsuppress`
|
||||
|
||||
- Install a package from the official repositories:
|
||||
|
||||
`aura --sync {{package}}`
|
||||
|
||||
- Synchronize and update all packages from the official repositories:
|
||||
|
||||
`aura --sync --refresh --sysupgrade`
|
||||
|
||||
- Downgrade a package using the package cache:
|
||||
|
||||
`aura --downgrade {{package}}`
|
||||
|
||||
- Remove a package and its dependencies:
|
||||
|
||||
`aura --remove --recursive --unneeded {{package}}`
|
||||
|
||||
- Remove orphan packages (installed as dependencies but not required by any package):
|
||||
|
||||
`aura --orphans --abandon`
|
||||
25
linux/auracle
Normal file
25
linux/auracle
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# auracle
|
||||
|
||||
> Command-line tool used to interact with Arch Linux's User Repository, commonly referred to as the AUR.
|
||||
> More information: <https://github.com/falconindy/auracle>.
|
||||
|
||||
- Display AUR packages that match a regular expression:
|
||||
|
||||
`auracle search '{{regular_expression}}'`
|
||||
|
||||
- Display information about one or more AUR packages:
|
||||
|
||||
`auracle info {{package1 package2 ...}}`
|
||||
|
||||
- Display the `PKGBUILD` file (build information) of one or more AUR packages:
|
||||
|
||||
`auracle show {{package1 package2 ...}}`
|
||||
|
||||
- Display updates for installed AUR packages:
|
||||
|
||||
`auracle outdated`
|
||||
42
linux/aurman
Normal file
42
linux/aurman
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aurman
|
||||
|
||||
> An Arch Linux utility to build and install packages from the Arch User Repository.
|
||||
> See also `pacman`.
|
||||
> More information: <https://github.com/polygamma/aurman>.
|
||||
|
||||
- Synchronize and update all packages:
|
||||
|
||||
`aurman --sync --refresh --sysupgrade`
|
||||
|
||||
- Synchronize and update all packages without show changes of `PKGBUILD` files:
|
||||
|
||||
`aurman --sync --refresh --sysupgrade --noedit`
|
||||
|
||||
- Install a new package:
|
||||
|
||||
`aurman --sync {{package}}`
|
||||
|
||||
- Install a new package without show changes of `PKGBUILD` files:
|
||||
|
||||
`aurman --sync --noedit {{package}}`
|
||||
|
||||
- Install a new package without prompting:
|
||||
|
||||
`aurman --sync --noedit --noconfirm {{package}}`
|
||||
|
||||
- Search the package database for a keyword from the official repositories and AUR:
|
||||
|
||||
`aurman --sync --search {{keyword}}`
|
||||
|
||||
- Remove a package and its dependencies:
|
||||
|
||||
`aurman --remove --recursive --nosave {{package}}`
|
||||
|
||||
- Clear the package cache (use two `--clean` flags to clean all packages):
|
||||
|
||||
`aurman --sync --clean`
|
||||
30
linux/aurvote
Normal file
30
linux/aurvote
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aurvote
|
||||
|
||||
> Vote for packages in the Arch User Repository.
|
||||
> To be able to vote, the file `~/.config/aurvote` must exist and contain your AUR credentials.
|
||||
> More information: <https://github.com/archlinuxfr/aurvote>.
|
||||
|
||||
- Interactively create the file `~/.config/aurvote` containing your AUR username and password:
|
||||
|
||||
`aurvote --configure`
|
||||
|
||||
- Vote for one or more AUR packages:
|
||||
|
||||
`aurvote {{package1 package2 ...}}`
|
||||
|
||||
- Unvote one or more AUR packages:
|
||||
|
||||
`aurvote --unvote {{package1 package2 ...}}`
|
||||
|
||||
- Check if one or more AUR packages have already been voted:
|
||||
|
||||
`aurvote --check {{package1 package2 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`aurvote --help`
|
||||
21
linux/ausyscall
Normal file
21
linux/ausyscall
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ausyscall
|
||||
|
||||
> Program that allows mapping syscall names and numbers.
|
||||
> More information: <https://manned.org/ausyscall>.
|
||||
|
||||
- Display syscall number of a specific system call:
|
||||
|
||||
`ausyscall {{search_pattern}}`
|
||||
|
||||
- Display name of a specific system call number:
|
||||
|
||||
`ausyscall {{system_call_number}}`
|
||||
|
||||
- Display all system calls for a specific architecture:
|
||||
|
||||
`ausyscall {{architecture}} --dump`
|
||||
41
linux/authconfig
Normal file
41
linux/authconfig
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# authconfig
|
||||
|
||||
> Configure system authentication resources.
|
||||
> More information: <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system-level_authentication_guide/authconfig-install>.
|
||||
|
||||
- Display the current configuration (or dry run):
|
||||
|
||||
`authconfig --test`
|
||||
|
||||
- Configure the server to use a different password hashing algorithm:
|
||||
|
||||
`authconfig --update --passalgo={{algorithm}}`
|
||||
|
||||
- Enable LDAP authentication:
|
||||
|
||||
`authconfig --update --enableldapauth`
|
||||
|
||||
- Disable LDAP authentication:
|
||||
|
||||
`authconfig --update --disableldapauth`
|
||||
|
||||
- Enable Network Information Service (NIS):
|
||||
|
||||
`authconfig --update --enablenis`
|
||||
|
||||
- Enable Kerberos:
|
||||
|
||||
`authconfig --update --enablekrb5`
|
||||
|
||||
- Enable Winbind (Active Directory) authentication:
|
||||
|
||||
`authconfig --update --enablewinbindauth`
|
||||
|
||||
- Enable local authorization:
|
||||
|
||||
`authconfig --update --enablelocauthorize`
|
||||
13
linux/auto-cpufreq
Normal file
13
linux/auto-cpufreq
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# auto-cpufreq
|
||||
|
||||
> Automatic CPU speed & power optimizer.
|
||||
> More information: <https://github.com/AdnanHodzic/auto-cpufreq>.
|
||||
|
||||
- Run `auto-cpufreq` in a specific mode:
|
||||
|
||||
`sudo auto-cpufreq --{{monitor|live|update|remove|stats|force=governor}}`
|
||||
29
linux/autopkgtest
Normal file
29
linux/autopkgtest
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# autopkgtest
|
||||
|
||||
> Run tests on Debian packages.
|
||||
> More information: <https://wiki.debian.org/ContinuousIntegration/autopkgtest>.
|
||||
|
||||
- Build the package in the current directory and run all tests directly on the system:
|
||||
|
||||
`autopkgtest -- {{null}}`
|
||||
|
||||
- Run a specific test for the package in the current directory:
|
||||
|
||||
`autopkgtest --test-name={{test_name}} -- {{null}}`
|
||||
|
||||
- Download and build a specific package with `apt-get`, then run all tests:
|
||||
|
||||
`autopkgtest {{package}} -- {{null}}`
|
||||
|
||||
- Test the package in the current directory using a new root directory:
|
||||
|
||||
`autopkgtest -- {{chroot}} {{path/to/new/root}}`
|
||||
|
||||
- Test the package in the current directory without rebuilding it:
|
||||
|
||||
`autopkgtest --no-built-binaries -- {{null}}`
|
||||
29
linux/autorandr
Normal file
29
linux/autorandr
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# autorandr
|
||||
|
||||
> Automatically change screen layout.
|
||||
> More information: <https://github.com/phillipberndt/autorandr>.
|
||||
|
||||
- Save the current screen layout:
|
||||
|
||||
`autorandr --save {{profile_name}}`
|
||||
|
||||
- Show the saved profiles:
|
||||
|
||||
`autorandr`
|
||||
|
||||
- Load the first detected profile:
|
||||
|
||||
`autorandr --change`
|
||||
|
||||
- Load a specific profile:
|
||||
|
||||
`autorandr --load {{profile_name}}`
|
||||
|
||||
- Set the default profile:
|
||||
|
||||
`autorandr --default {{profile_name}}`
|
||||
26
linux/avahi-browse
Normal file
26
linux/avahi-browse
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# avahi-browse
|
||||
|
||||
> Displays services and hosts exposed on the local network via mDNS/DNS-SD.
|
||||
> Avahi is compatible with Bonjour (Zeroconf) found in Apple devices.
|
||||
> More information: <https://www.avahi.org/>.
|
||||
|
||||
- List services available on the local network along with their addresses and ports, ignoring ones on the local machine:
|
||||
|
||||
`avahi-browse --all --resolve --ignore-local`
|
||||
|
||||
- Quickly list services in the local network in SSV format for scripts:
|
||||
|
||||
`avahi-browse --all --terminate --parsable`
|
||||
|
||||
- List domains in the neighbourhood:
|
||||
|
||||
`avahi-browse --browse-domains`
|
||||
|
||||
- Limit the search to a particular domain:
|
||||
|
||||
`avahi-browse --all --domain={{domain}}`
|
||||
17
linux/avahi-resolve
Normal file
17
linux/avahi-resolve
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# avahi-resolve
|
||||
|
||||
> Translate between host names and IP Addresses.
|
||||
> More information: <https://www.avahi.org/>.
|
||||
|
||||
- Resolve a local service to its IPv4:
|
||||
|
||||
`avahi-resolve -4 --name {{service.local}}`
|
||||
|
||||
- Resolve an IP to a hostname, verbosely:
|
||||
|
||||
`avahi-resolve --verbose --address {{IP}}`
|
||||
17
linux/avifenc
Normal file
17
linux/avifenc
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# avifenc
|
||||
|
||||
> AV1 Image File Format (AVIF) encoder.
|
||||
> More information: <https://aomediacodec.github.io/av1-avif/>.
|
||||
|
||||
- Convert a specific PNG image to AVIF:
|
||||
|
||||
`avifenc {{path/to/input.png}} {{path/to/output.avif}}`
|
||||
|
||||
- Encode with a specific speed (6=default, 0=slowest and 10=fastest):
|
||||
|
||||
`avifenc --speed {{2}} {{path/to/input.png}} {{path/to/output.avif}}`
|
||||
21
linux/backlight_control
Normal file
21
linux/backlight_control
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# backlight_control
|
||||
|
||||
> Control a linux machine's backlight using percentage values.
|
||||
> More information: <https://github.com/Hendrikto/backlight_control>.
|
||||
|
||||
- Increase/decrease the backlight by a specific percent count:
|
||||
|
||||
`backlight_control {{+|-}}{{5}}`
|
||||
|
||||
- Set the backlight strength to a specific percent count:
|
||||
|
||||
`backlight_control {{90}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`backlight_control`
|
||||
41
linux/balooctl
Normal file
41
linux/balooctl
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# balooctl
|
||||
|
||||
> File indexing and searching framework for KDE Plasma.
|
||||
> More information: <https://wiki.archlinux.org/index.php/Baloo>.
|
||||
|
||||
- Display the status of the indexer:
|
||||
|
||||
`balooctl status`
|
||||
|
||||
- Enable/Disable the file indexer:
|
||||
|
||||
`balooctl {{enable|disable}}`
|
||||
|
||||
- Clean the index database:
|
||||
|
||||
`balooctl purge`
|
||||
|
||||
- Suspend the file indexer:
|
||||
|
||||
`balooctl suspend`
|
||||
|
||||
- Resume the file indexer:
|
||||
|
||||
`balooctl resume`
|
||||
|
||||
- Display the disk space used by Baloo:
|
||||
|
||||
`balooctl indexSize`
|
||||
|
||||
- Check for any unindexed files and index them:
|
||||
|
||||
`balooctl check`
|
||||
|
||||
- Display help:
|
||||
|
||||
`balooctl --help`
|
||||
13
linux/batcat
Normal file
13
linux/batcat
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# batcat
|
||||
|
||||
> This command is an alias of `bat`.
|
||||
> More information: <https://github.com/sharkdp/bat>.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr bat`
|
||||
17
linux/battop
Normal file
17
linux/battop
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# battop
|
||||
|
||||
> An interactive viewer for the batteries installed in your notebook.
|
||||
> More information: <https://github.com/svartalf/rust-battop>.
|
||||
|
||||
- Display battery information:
|
||||
|
||||
`battop`
|
||||
|
||||
- Change battery information measurement [u]nit (default: human):
|
||||
|
||||
`battop -u {{human|si}}`
|
||||
33
linux/bcachefs
Normal file
33
linux/bcachefs
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bcachefs
|
||||
|
||||
> Manage `bcachefs` filesystems/devices.
|
||||
> More information: <https://bcachefs.org/bcachefs-principles-of-operation.pdf>.
|
||||
|
||||
- Format a partition with `bcachefs`:
|
||||
|
||||
`sudo bcachefs format {{path/to/partition}}`
|
||||
|
||||
- Mount a `bcachefs` filesystem:
|
||||
|
||||
`sudo bcachefs mount {{path/to/partition}} {{path/to/mountpoint}}`
|
||||
|
||||
- Create a RAID 0 filesystem where an SSD acts as a cache and an HDD acts as a long-term storage:
|
||||
|
||||
`sudo bcachefs format --label=ssd.ssd1 {{path/to/ssd/partition}} --label=hdd.hdd1 {{path/to/hdd/partition}} --replicas=1 --foreground_target=ssd --promote_target=ssd --background_target=hdd`
|
||||
|
||||
- Mount a multidevice filesystem:
|
||||
|
||||
`sudo bcachefs mount {{path/to/partition1}}:{{path/to/partition2}} {{path/to/mountpoint}}`
|
||||
|
||||
- Display disk usage:
|
||||
|
||||
`bcachefs fs usage --human-readable {{path/to/mountpoint}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`bcachefs`
|
||||
21
linux/bchunk
Normal file
21
linux/bchunk
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bchunk
|
||||
|
||||
> Convert CD images to a set of `.iso` and `.cdr` tracks.
|
||||
> More information: <http://he.fi/bchunk>.
|
||||
|
||||
- Convert binary CD into a standard iso9960 image file:
|
||||
|
||||
`bchunk {{path/to/image.bin}} {{path/to/image.cue}} {{path/to/output}}`
|
||||
|
||||
- Convert with verbose mode:
|
||||
|
||||
`bchunk -v {{path/to/image.bin}} {{path/to/image.cue}} {{path/to/output}}`
|
||||
|
||||
- Output audio files in WAV format:
|
||||
|
||||
`bchunk -w {{path/to/image.bin}} {{path/to/image.cue}} {{path/to/output}}`
|
||||
29
linux/beep
Normal file
29
linux/beep
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# beep
|
||||
|
||||
> A utility to beep the PC speaker.
|
||||
> More information: <https://github.com/spkr-beep/beep>.
|
||||
|
||||
- Play a beep:
|
||||
|
||||
`beep`
|
||||
|
||||
- Play a beep that repeats:
|
||||
|
||||
`beep -r {{repetitions}}`
|
||||
|
||||
- Play a beep at a specified frequency (Hz) and duration (milliseconds):
|
||||
|
||||
`beep -f {{frequency}} -l {{duration}}`
|
||||
|
||||
- Play each new frequency and duration as a distinct beep:
|
||||
|
||||
`beep -f {{frequency}} -l {{duration}} -n -f {{frequency}} -l {{duration}}`
|
||||
|
||||
- Play the C major scale:
|
||||
|
||||
`beep -f {{262}} -n -f {{294}} -n -f {{330}} -n -f {{349}} -n -f {{392}} -n -f {{440}} -n -f {{494}} -n -f {{523}}`
|
||||
29
linux/betterdiscordctl
Normal file
29
linux/betterdiscordctl
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# betterdiscordctl
|
||||
|
||||
> A program for managing BetterDiscord on Linux.
|
||||
> More information: <https://github.com/bb010g/betterdiscordctl#manual>.
|
||||
|
||||
- Install BetterDiscord on Discord Stable:
|
||||
|
||||
`sudo betterdiscordctl install`
|
||||
|
||||
- Install BetterDiscord on Discord Canary:
|
||||
|
||||
`sudo betterdiscordctl --d-flavors canary install`
|
||||
|
||||
- Install BetterDiscord on Discord PTB:
|
||||
|
||||
`sudo betterdiscordctl --d-flavors ptb install`
|
||||
|
||||
- Install BetterDiscord on Discord installed with Flatpak:
|
||||
|
||||
`sudo betterdiscordctl --d-install flatpak install`
|
||||
|
||||
- Install BetterDiscord on Discord installed with Snap:
|
||||
|
||||
`sudo betterdiscordctl --d-install snap install`
|
||||
25
linux/betterlockscreen
Normal file
25
linux/betterlockscreen
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# betterlockscreen
|
||||
|
||||
> Simple, minimal lock screen.
|
||||
> More information: <https://github.com/pavanjadhaw/betterlockscreen>.
|
||||
|
||||
- Lock the screen:
|
||||
|
||||
`betterlockscreen --lock`
|
||||
|
||||
- Change the lock screen background:
|
||||
|
||||
`betterlockscreen -u {{path/to/image.png}}`
|
||||
|
||||
- Lock the screen, showing some custom text:
|
||||
|
||||
`betterlockscreen -l pixel -t "{{custom lock screen text}}"`
|
||||
|
||||
- Lock the screen, with a custom monitor off timeout in seconds:
|
||||
|
||||
`betterlockscreen --off {{5}} -l`
|
||||
25
linux/bitwise
Normal file
25
linux/bitwise
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bitwise
|
||||
|
||||
> Multi base interactive calculator supporting dynamic base conversion and bit manipulation.
|
||||
> More information: <https://github.com/mellowcandle/bitwise>.
|
||||
|
||||
- Run using interactive mode:
|
||||
|
||||
`bitwise`
|
||||
|
||||
- Convert from decimal:
|
||||
|
||||
`bitwise {{12345}}`
|
||||
|
||||
- Convert from hexadecimal:
|
||||
|
||||
`bitwise {{0x563d}}`
|
||||
|
||||
- Convert a C-style calculation:
|
||||
|
||||
`bitwise "{{0x123 + 0x20 - 30 / 50}}"`
|
||||
33
linux/blastn
Normal file
33
linux/blastn
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# blastn
|
||||
|
||||
> Nucleotide-Nucleotide BLAST.
|
||||
> More information: <https://www.ncbi.nlm.nih.gov/books/NBK279684/table/appendices.T.blastn_application_options/>.
|
||||
|
||||
- Align two or more sequences using megablast (default), with the e-value threshold of 1e-9, pairwise output format (default):
|
||||
|
||||
`blastn -query {{query.fa}} -subject {{subject.fa}} -evalue {{1e-9}}`
|
||||
|
||||
- Align two or more sequences using blastn:
|
||||
|
||||
`blastn -task blastn -query {{query.fa}} -subject {{subject.fa}}`
|
||||
|
||||
- Align two or more sequences, custom tabular output format, output to file:
|
||||
|
||||
`blastn -query {{query.fa}} -subject {{subject.fa}} -outfmt {{'6 qseqid qlen qstart qend sseqid slen sstart send bitscore evalue pident'}} -out {{output.tsv}}`
|
||||
|
||||
- Search nucleotide databases using a nucleotide query, 16 threads (CPUs) to use in the BLAST search, with a maximum number of 10 aligned sequences to keep:
|
||||
|
||||
`blastn -query {{query.fa}} -db {{path/to/blast_db}} -num_threads {{16}} -max_target_seqs {{10}}`
|
||||
|
||||
- Search the remote non-redundant nucleotide database using a nucleotide query:
|
||||
|
||||
`blastn -query {{query.fa}} -db {{nt}} -remote`
|
||||
|
||||
- Display help (use `-help` for detailed help):
|
||||
|
||||
`blastn -h`
|
||||
33
linux/blastp
Normal file
33
linux/blastp
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# blastp
|
||||
|
||||
> Protein-Protein BLAST.
|
||||
> More information: <https://www.ncbi.nlm.nih.gov/books/NBK279684/table/appendices.T.blastp_application_options/>.
|
||||
|
||||
- Align two or more sequences using blastp, with the e-value threshold of 1e-9, pairwise output format, output to screen:
|
||||
|
||||
`blastp -query {{query.fa}} -subject {{subject.fa}} -evalue {{1e-9}}`
|
||||
|
||||
- Align two or more sequences using blastp-fast:
|
||||
|
||||
`blastp -task blastp-fast -query {{query.fa}} -subject {{subject.fa}}`
|
||||
|
||||
- Align two or more sequences, custom tabular output format, output to file:
|
||||
|
||||
`blastp -query {{query.fa}} -subject {{subject.fa}} -outfmt '{{6 qseqid qlen qstart qend sseqid slen sstart send bitscore evalue pident}}' -out {{output.tsv}}`
|
||||
|
||||
- Search protein databases using a protein query, 16 threads to use in the BLAST search, with a maximum number of 10 aligned sequences to keep:
|
||||
|
||||
`blastp -query {{query.fa}} -db {{blast_database_name}} -num_threads {{16}} -max_target_seqs {{10}}`
|
||||
|
||||
- Search the remote non-redundant protein database using a protein query:
|
||||
|
||||
`blastp -query {{query.fa}} -db {{nr}} -remote`
|
||||
|
||||
- Display help (use `-help` for detailed help):
|
||||
|
||||
`blastp -h`
|
||||
29
linux/blight
Normal file
29
linux/blight
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# blight
|
||||
|
||||
> Utility for changing the display brightness.
|
||||
> More information: <https://github.com/gutjuri/blight>.
|
||||
|
||||
- Set display brightness to 50%:
|
||||
|
||||
`blight set {{50}} -r`
|
||||
|
||||
- Show current display brightness:
|
||||
|
||||
`blight show`
|
||||
|
||||
- Print maximum display brightness:
|
||||
|
||||
`blight max`
|
||||
|
||||
- Increase display brightness in %:
|
||||
|
||||
`blight inc {{number}} -r`
|
||||
|
||||
- Decrease display brightness with internal units:
|
||||
|
||||
`blight dec {{number}}`
|
||||
21
linux/blkdiscard
Normal file
21
linux/blkdiscard
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# blkdiscard
|
||||
|
||||
> Discards device sectors on storage devices. Useful for SSDs.
|
||||
> More information: <https://manned.org/blkdiscard>.
|
||||
|
||||
- Discard all sectors on a device, removing all data:
|
||||
|
||||
`blkdiscard /dev/{{device}}`
|
||||
|
||||
- Securely discard all blocks on a device, removing all data:
|
||||
|
||||
`blkdiscard --secure /dev/{{device}}`
|
||||
|
||||
- Discard the first 100 MB of a device:
|
||||
|
||||
`blkdiscard --length {{100MB}} /dev/{{device}}`
|
||||
17
linux/blkid
Normal file
17
linux/blkid
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# blkid
|
||||
|
||||
> Lists all recognized partitions and their Universally Unique Identifier (UUID).
|
||||
> More information: <https://manned.org/blkid>.
|
||||
|
||||
- List all partitions:
|
||||
|
||||
`sudo blkid`
|
||||
|
||||
- List all partitions in a table, including current mountpoints:
|
||||
|
||||
`sudo blkid -o list`
|
||||
41
linux/bluetoothctl
Normal file
41
linux/bluetoothctl
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bluetoothctl
|
||||
|
||||
> Manage Bluetooth devices.
|
||||
> More information: <https://bitbucket.org/serkanp/bluetoothctl>.
|
||||
|
||||
- Enter the `bluetoothctl` shell:
|
||||
|
||||
`bluetoothctl`
|
||||
|
||||
- List all known devices:
|
||||
|
||||
`bluetoothctl devices`
|
||||
|
||||
- Power the Bluetooth controller on or off:
|
||||
|
||||
`bluetoothctl power {{on|off}}`
|
||||
|
||||
- Pair with a device:
|
||||
|
||||
`bluetoothctl pair {{mac_address}}`
|
||||
|
||||
- Remove a device:
|
||||
|
||||
`bluetoothctl remove {{mac_address}}`
|
||||
|
||||
- Connect to a paired device:
|
||||
|
||||
`bluetoothctl connect {{mac_address}}`
|
||||
|
||||
- Disconnect from a paired device:
|
||||
|
||||
`bluetoothctl disconnect {{mac_address}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`bluetoothctl help`
|
||||
29
linux/bluetoothd
Normal file
29
linux/bluetoothd
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bluetoothd
|
||||
|
||||
> Daemon to manage bluetooth devices.
|
||||
> More information: <https://manned.org/bluetoothd>.
|
||||
|
||||
- Start the daemon:
|
||||
|
||||
`bluetoothd`
|
||||
|
||||
- Start the daemon, logging to `stdout`:
|
||||
|
||||
`bluetoothd --nodetach`
|
||||
|
||||
- Start the daemon with a specific configuration file (defaults to `/etc/bluetooth/main.conf`):
|
||||
|
||||
`bluetoothd --configfile {{path/to/file}}`
|
||||
|
||||
- Start the daemon with verbose output to `stderr`:
|
||||
|
||||
`bluetoothd --debug`
|
||||
|
||||
- Start the daemon with verbose output coming from specific files in the bluetoothd or plugins source:
|
||||
|
||||
`bluetoothd --debug={{path/to/file1:path/to/file2:...}}`
|
||||
26
linux/blurlock
Normal file
26
linux/blurlock
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# blurlock
|
||||
|
||||
> A simple wrapper around the i3 screen locker `i3lock`, which blurs the screen.
|
||||
> See also: `i3lock`.
|
||||
> More information: <https://gitlab.manjaro.org/packages/community/i3/i3exit/-/blob/master/blurlock>.
|
||||
|
||||
- Lock the screen to a blurred screenshot of the current screen:
|
||||
|
||||
`blurlock`
|
||||
|
||||
- Lock the screen and disable the unlock indicator (removes feedback on keypress):
|
||||
|
||||
`blurlock --no-unlock-indicator`
|
||||
|
||||
- Lock the screen and don't hide the mouse pointer:
|
||||
|
||||
`blurlock --pointer {{default}}`
|
||||
|
||||
- Lock the screen and show the number of failed login attempts:
|
||||
|
||||
`blurlock --show-failed-attempts`
|
||||
25
linux/bmon
Normal file
25
linux/bmon
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bmon
|
||||
|
||||
> Monitor bandwidth and capture network related statistics.
|
||||
> More information: <https://github.com/tgraf/bmon>.
|
||||
|
||||
- Display the list of all the interfaces:
|
||||
|
||||
`bmon -a`
|
||||
|
||||
- Display data transfer rates in bits per second:
|
||||
|
||||
`bmon -b`
|
||||
|
||||
- Specify the policy to define which network interface(s) is/are displayed:
|
||||
|
||||
`bmon -p {{interface_1,interface_2,interface_3}}`
|
||||
|
||||
- Specify the interval (in seconds) in which rate per counter is calculated:
|
||||
|
||||
`bmon -R {{2.0}}`
|
||||
33
linux/boltctl
Normal file
33
linux/boltctl
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# boltctl
|
||||
|
||||
> Control thunderbolt devices.
|
||||
> More information: <https://manned.org/boltctl>.
|
||||
|
||||
- List connected (and authorized) devices:
|
||||
|
||||
`boltctl`
|
||||
|
||||
- List connected devices, including unauthorized ones:
|
||||
|
||||
`boltctl list`
|
||||
|
||||
- Authorize a device temporarily:
|
||||
|
||||
`boltctl authorize {{device_uuid}}`
|
||||
|
||||
- Authorize and remember a device:
|
||||
|
||||
`boltctl enroll {{device_uuid}}`
|
||||
|
||||
- Revoke a previously authorized device:
|
||||
|
||||
`boltctl forget {{device_uuid}}`
|
||||
|
||||
- Show more information about a device:
|
||||
|
||||
`boltctl info {{device_uuid}}`
|
||||
33
linux/bootctl
Normal file
33
linux/bootctl
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bootctl
|
||||
|
||||
> Control EFI firmware boot settings and manage boot loader.
|
||||
> More information: <https://manned.org/bootctl>.
|
||||
|
||||
- Show information about the system firmware and the bootloaders:
|
||||
|
||||
`bootctl status`
|
||||
|
||||
- Show all available bootloader entries:
|
||||
|
||||
`bootctl list`
|
||||
|
||||
- Set a flag to boot into the system firmware on the next boot (similar to `sudo systemctl reboot --firmware-setup`):
|
||||
|
||||
`sudo bootctl reboot-to-firmware true`
|
||||
|
||||
- Specify the path to the EFI system partition (defaults to `/efi/`, `/boot/` or `/boot/efi`):
|
||||
|
||||
`bootctl --esp-path={{/path/to/efi_system_partition/}}`
|
||||
|
||||
- Install `systemd-boot` into the EFI system partition:
|
||||
|
||||
`sudo bootctl install`
|
||||
|
||||
- Remove all installed versions of `systemd-boot` from the EFI system partition:
|
||||
|
||||
`sudo bootctl remove`
|
||||
42
linux/bpftool
Normal file
42
linux/bpftool
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bpftool
|
||||
|
||||
> Inspect and manipulate eBPF programs and maps in a simple way.
|
||||
> Some subcommands such as `bpftool prog` have their own usage documentation.
|
||||
> More information: <https://manned.org/bpftool>.
|
||||
|
||||
- List information about loaded `eBPF` programs:
|
||||
|
||||
`bpftool prog list`
|
||||
|
||||
- List `eBPF` program attachments in the kernel networking subsystem:
|
||||
|
||||
`bpftool net list`
|
||||
|
||||
- List all active links:
|
||||
|
||||
`bpftool link list`
|
||||
|
||||
- List all `raw_tracepoint`, `tracepoint`, `kprobe` attachments in the system:
|
||||
|
||||
`bpftool perf list`
|
||||
|
||||
- List `BPF Type Format (BTF)` data:
|
||||
|
||||
`bpftool btf list`
|
||||
|
||||
- List information about loaded maps:
|
||||
|
||||
`bpftool map list`
|
||||
|
||||
- Probe a network device "eth0" for supported `eBPF` features:
|
||||
|
||||
`bpftool feature probe dev {{eth0}}`
|
||||
|
||||
- Run commands in batch mode from a file:
|
||||
|
||||
`bpftool batch file {{myfile}}`
|
||||
33
linux/bpftrace
Normal file
33
linux/bpftrace
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bpftrace
|
||||
|
||||
> High-level tracing language for Linux eBPF.
|
||||
> More information: <https://github.com/iovisor/bpftrace>.
|
||||
|
||||
- Display bpftrace version:
|
||||
|
||||
`bpftrace -V`
|
||||
|
||||
- List all available probes:
|
||||
|
||||
`sudo bpftrace -l`
|
||||
|
||||
- Run a one-liner program (e.g. syscall count by program):
|
||||
|
||||
`sudo bpftrace -e '{{tracepoint:raw_syscalls:sys_enter { @[comm] = count(); }}}'`
|
||||
|
||||
- Run a program from a file:
|
||||
|
||||
`sudo bpftrace {{path/to/file}}`
|
||||
|
||||
- Trace a program by PID:
|
||||
|
||||
`sudo bpftrace -e '{{tracepoint:raw_syscalls:sys_enter /pid == 123/ { @[comm] = count(); }}}'`
|
||||
|
||||
- Do a dry run and display the output in eBPF format:
|
||||
|
||||
`sudo bpftrace -d -e '{{one_line_program}}'`
|
||||
30
linux/br
Normal file
30
linux/br
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# br
|
||||
|
||||
> Navigate directory trees interactively.
|
||||
> See also: `broot`.
|
||||
> More information: <https://github.com/Canop/broot>.
|
||||
|
||||
- Start and navigate the current directory tree interactively:
|
||||
|
||||
`br`
|
||||
|
||||
- Start displaying the size of files and directories:
|
||||
|
||||
`br --sizes`
|
||||
|
||||
- Start displaying permissions:
|
||||
|
||||
`br --permissions`
|
||||
|
||||
- Start displaying directories only:
|
||||
|
||||
`br --only-folders`
|
||||
|
||||
- Start displaying hidden files and directories:
|
||||
|
||||
`br --hidden`
|
||||
21
linux/braa
Normal file
21
linux/braa
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# braa
|
||||
|
||||
> Ultra-fast mass SNMP scanner allowing multiple hosts simultaneously.
|
||||
> More information: <https://github.com/mteg/braa>.
|
||||
|
||||
- Walk the SNMP tree of host with public string querying all OIDs under `.1.3.6`:
|
||||
|
||||
`braa public@{{ip}}:{{.1.3.6.*}}`
|
||||
|
||||
- Query the whole subnet `ip_range` for `system.sysLocation.0`:
|
||||
|
||||
`braa public@{{ip_range}}:{{.1.3.6.1.2.1.1.6.0}}`
|
||||
|
||||
- Attempt to set the value of `system.sysLocation.0` to a specific workgroup:
|
||||
|
||||
`braa private@{{ip}}:{{.1.3.6.1.2.1.1.6.0}}=s'{{workgroup}}'`
|
||||
29
linux/brctl
Normal file
29
linux/brctl
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# brctl
|
||||
|
||||
> Ethernet bridge administration.
|
||||
> More information: <https://manned.org/brctl>.
|
||||
|
||||
- Show a list with information about currently existing Ethernet bridges:
|
||||
|
||||
`sudo brctl show`
|
||||
|
||||
- Create a new Ethernet bridge interface:
|
||||
|
||||
`sudo brctl add {{bridge_name}}`
|
||||
|
||||
- Delete an existing Ethernet bridge interface:
|
||||
|
||||
`sudo brctl del {{bridge_name}}`
|
||||
|
||||
- Add an interface to an existing bridge:
|
||||
|
||||
`sudo brctl addif {{bridge_name}} {{interface_name}}`
|
||||
|
||||
- Remove an interface from an existing bridge:
|
||||
|
||||
`sudo brctl delif {{bridge_name}} {{interface_name}}`
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user