mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 23:54:52 +00:00
Update cheatsheets
This commit is contained in:
@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Print full Apache configuration:
|
||||
|
||||
`apachectl -S`
|
||||
|
||||
- Display help:
|
||||
|
||||
`apachectl -h`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Add githooks to the current repository:
|
||||
|
||||
`aurpublish setup`
|
||||
|
||||
- Display help:
|
||||
|
||||
`aurpublish {{[-h|--help]}}`
|
||||
|
||||
@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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`
|
||||
`avahi-browse {{[-a|--all]}} {{[-r|--resolve]}} {{[-l|--ignore-local]}}`
|
||||
|
||||
- Quickly list services in the local network in SSV format for scripts:
|
||||
|
||||
`avahi-browse --all --terminate --parsable`
|
||||
`avahi-browse {{[-a|--all]}} {{[-t|--terminate]}} {{[-p|--parsable]}}`
|
||||
|
||||
- List domains in the neighbourhood:
|
||||
|
||||
`avahi-browse --browse-domains`
|
||||
`avahi-browse {{[-D|--browse-domains]}}`
|
||||
|
||||
- Limit the search to a particular domain:
|
||||
|
||||
`avahi-browse --all --domain={{domain}}`
|
||||
`avahi-browse {{[-a|--all]}} --domain={{domain}}`
|
||||
|
||||
@@ -10,8 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Resolve a local service to its IPv4:
|
||||
|
||||
`avahi-resolve -4 --name {{service.local}}`
|
||||
`avahi-resolve -4 {{[-n|--name]}} {{service.local}}`
|
||||
|
||||
- Resolve an IP to a hostname, verbosely:
|
||||
|
||||
`avahi-resolve --verbose --address {{IP}}`
|
||||
`avahi-resolve {{[-v|--verbose]}} {{[-a|--address]}} {{IP}}`
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Watch for changes in bridge interfaces:
|
||||
|
||||
`bridge {{[mo|monitor]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`bridge {{[h|help]}}`
|
||||
|
||||
@@ -10,20 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List password information for the user:
|
||||
|
||||
`chage --list {{username}}`
|
||||
`chage {{[-l|--list]]} {{username}}`
|
||||
|
||||
- Enable password expiration in 10 days:
|
||||
|
||||
`sudo chage --maxdays {{10}} {{username}}`
|
||||
`sudo chage {{[-M|--maxdays]}} {{10}} {{username}}`
|
||||
|
||||
- Disable password expiration:
|
||||
|
||||
`sudo chage --maxdays {{-1}} {{username}}`
|
||||
`sudo chage {{[-M|--maxdays]}} {{-1}} {{username}}`
|
||||
|
||||
- Set account expiration date:
|
||||
|
||||
`sudo chage --expiredate {{YYYY-MM-DD}} {{username}}`
|
||||
`sudo chage {{[-E|--expiredate]}} {{YYYY-MM-DD}} {{username}}`
|
||||
|
||||
- Force user to change password on next log in:
|
||||
|
||||
`sudo chage --lastday {{0}} {{username}}`
|
||||
`sudo chage {{[-d|--lastday]}} {{0}} {{username}}`
|
||||
|
||||
- Re-enable an account:
|
||||
|
||||
`sudo chage {{[-E|--expiredate]}} -1 {{username}}`
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit the `cu` session when in connection:
|
||||
|
||||
`<Enter><~><.>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`cu --help`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Prompt the user for a yes/no question:
|
||||
|
||||
`dialog --yesno "{{Continue?}}" {{7}} {{40}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`dialog`
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`fadvise --help`
|
||||
`fadvise {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display all possible data columns:
|
||||
|
||||
`fincore --output-all {{path/to/file}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`fincore {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Specify the audio driver:
|
||||
|
||||
`fluidsynth {{[-a|--audio-driver]}} {{pipewire|pulseaudio}} {{path/to/soundfont.sf2}} {{path/to/file.midi}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`fluidsynth {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Launch an application:
|
||||
|
||||
`gtk-launch {{Application_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gtk-launch {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display interface status:
|
||||
|
||||
`ifstatus {{interface_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ifstatus`
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`informant --help`
|
||||
`informant {{[-h|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Leave a static multicast group:
|
||||
|
||||
`sudo ip {{[m|maddress]}} {{[d|delete]}} {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ip {{[m|maddress]}} {{[h|help]}}`
|
||||
|
||||
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- List available transmit power levels for the interface:
|
||||
|
||||
`iwinfo {{interface}} txpowerlist`
|
||||
|
||||
- Display help:
|
||||
|
||||
`iwinfo h`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- List all available folders:
|
||||
|
||||
`kwallet-query {{kdewallet}} {{[-l|--list-entries]}} {{[-f|--folder]}} ""`
|
||||
|
||||
- Display help:
|
||||
|
||||
`kwallet-query {{[-h|--help]}}`
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`libinput -h`
|
||||
`libinput {{[-h|--help]}}`
|
||||
|
||||
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Log a user out on all of their sessions:
|
||||
|
||||
`loginctl terminate-user {{username}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`loginctl {{[-h|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Print log messages as they happen:
|
||||
|
||||
`logread -f`
|
||||
|
||||
- Display help:
|
||||
|
||||
`logread -h`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- List open IPv4 or IPv6 sockets:
|
||||
|
||||
`lsfd -i{{4|6}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lsfd {{[-h|--help]}}`
|
||||
|
||||
@@ -14,20 +14,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display users belonging to a specific group:
|
||||
|
||||
`lslogins --groups={{groups}}`
|
||||
`lslogins {{[-g|--groups]}} {{groups}}`
|
||||
|
||||
- Display user accounts:
|
||||
|
||||
`lslogins --user-accs`
|
||||
`lslogins {{[-u|--user-accs]}}`
|
||||
|
||||
- Display last logins:
|
||||
|
||||
`lslogins --last`
|
||||
`lslogins {{[-L|--last]}}`
|
||||
|
||||
- Display system accounts:
|
||||
|
||||
`lslogins --system-accs`
|
||||
`lslogins {{[-s|--system-accs]}}`
|
||||
|
||||
- Display supplementary groups:
|
||||
|
||||
`lslogins --supp-groups`
|
||||
`lslogins {{[-G|--supp-groups]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Attach to a container:
|
||||
|
||||
`sudo lxc-attach {{container_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-attach {{[-?|--help]}}`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit `lxc-console`:
|
||||
|
||||
`<Ctrl a><q>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-console {{[-?|--help]}}`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Create a container passing options to a template:
|
||||
|
||||
`sudo lxc-create {{[-n|--name]}} {{container_name}} {{[-t|--template]}} download -- {{[-d|--dist]}} {{distro-name}} {{[-r|--release]}} {{release-version}} {{[-a|--arch]}} {{arch}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-create {{[-?|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Delete a container:
|
||||
|
||||
`sudo lxc-destroy {{container_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-destroy {{[-?|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Query information from a container:
|
||||
|
||||
`sudo lxc-info {{container_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-info {{[-?|--help]}}`
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- List containers in a fancy, column-based output:
|
||||
|
||||
`sudo lxc-ls {{[-f|--fancy]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-ls {{[-?|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit out of a foreground container (run this in a separate terminal):
|
||||
|
||||
`sudo lxc-stop {{container_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-start {{[-?|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Stop a container:
|
||||
|
||||
`sudo lxc-stop {{container_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`lxc-stop {{[-?|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Exit minicom:
|
||||
|
||||
`<Ctrl a><x><Enter>`
|
||||
|
||||
- Display help:
|
||||
|
||||
`minicom {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- View all-time network statistics:
|
||||
|
||||
`nstat {{[-a|--ignore]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`nstat {{[-h|--help]}}`
|
||||
|
||||
@@ -24,3 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Start interactive mode with the specified disk selected:
|
||||
|
||||
`sudo parted {{/dev/sdX}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`parted {{[-h|--help]}}`
|
||||
|
||||
@@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Remove a partition in interactive mode:
|
||||
|
||||
`rm {{/dev/sdXN}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`?`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- View a file:
|
||||
|
||||
`pg {{path/to/file}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pg {{[-h|--help]}}`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Record a sample recording using a different sample rate:
|
||||
|
||||
`pw-cat --record --rate {{6000}} {{path/to/file.wav}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-cat {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Monitor a device instead of reserving it:
|
||||
|
||||
`pw-reserve {{[-n|--name]}} {{audioN}} {{[-m|--monitor]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-reserve {{[-h|--help]}}`
|
||||
|
||||
@@ -11,3 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Run a program:
|
||||
|
||||
`pw-v4l2 {{program}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pw-v4l2 -h`
|
||||
|
||||
@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Enable debug mode:
|
||||
|
||||
`qmake -d`
|
||||
|
||||
- Display help:
|
||||
|
||||
`qmake -help`
|
||||
|
||||
@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Use a configuration file to fetch mirrors:
|
||||
|
||||
`sudo reflector @{{/etc/xdg/reflector/reflector.conf}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`reflector {{[-h|--help]}}`
|
||||
|
||||
@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Pass the asked password to another program:
|
||||
|
||||
`systemd-ask-password | {{command}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`systemd-ask-password {{[-h|--help]}}`
|
||||
|
||||
@@ -15,3 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Install drivers for detected hardware:
|
||||
|
||||
`sudo ubuntu-drivers install`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ubuntu-drivers`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Listen to events:
|
||||
|
||||
`ubus subscribe {{event_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`ubus`
|
||||
|
||||
@@ -35,3 +35,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Discard uncommitted changes:
|
||||
|
||||
`uci revert {{config}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`uci`
|
||||
|
||||
@@ -23,8 +23,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add a user to supplementary groups (mind the lack of whitespace):
|
||||
|
||||
`sudo usermod {{[-a|--append]}} {{[-G|--groups]}} {{group1,group2,...}} {{username}}`
|
||||
`sudo usermod {{[-aG|--append --groups]}} {{group1,group2,...}} {{username}}`
|
||||
|
||||
- Change a user home directory:
|
||||
|
||||
`sudo usermod {{[-m|--move-home]}} {{[-d|--home]}} {{path/to/new_home}} {{username}}`
|
||||
|
||||
- Lock an account:
|
||||
|
||||
`sudo usermod {{[-L|--lock]}} {{username}}`
|
||||
|
||||
- Unlock an account:
|
||||
|
||||
`sudo usermod {{[-U|--unlock]}} {{username}}`
|
||||
|
||||
@@ -19,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Skip testing for Vulkan support:
|
||||
|
||||
`waypipe --test-skip-vulkan ssh {{user}}@{{server}} {{program}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`waypipe {{[-h|--help]}}`
|
||||
|
||||
Reference in New Issue
Block a user