mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,7 +6,7 @@ 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>.
|
||||
> More information: <https://docs.asterisk.org>.
|
||||
|
||||
- [R]econnect to a running server, and turn on logging 3 levels of [v]erbosity:
|
||||
|
||||
|
||||
37
tldr/linux/auditctl
Normal file
37
tldr/linux/auditctl
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# auditctl
|
||||
|
||||
> Utility to control the behavior, get status and manage rules of the Linux Auditing System.
|
||||
> More information: <https://manned.org/auditctl>.
|
||||
|
||||
- Display the [s]tatus of the audit system:
|
||||
|
||||
`sudo auditctl -s`
|
||||
|
||||
- [l]ist all currently loaded audit rules:
|
||||
|
||||
`sudo auditctl -l`
|
||||
|
||||
- [D]elete all audit rules:
|
||||
|
||||
`sudo auditctl -D`
|
||||
|
||||
- [e]nable/disable the audit system:
|
||||
|
||||
`sudo auditctl -e {{1|0}}`
|
||||
|
||||
- Watch a file for changes:
|
||||
|
||||
`sudo auditctl -a always,exit -F arch=b64 -F path={{/path/to/file}} -F perm=wa`
|
||||
|
||||
- Recursively watch a directory for changes:
|
||||
|
||||
`sudo auditctl -a always,exit -F arch=b64 -F dir={{/path/to/directory/}} -F perm=wa`
|
||||
|
||||
- Display [h]elp:
|
||||
|
||||
`auditctl -h`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# eopkg
|
||||
|
||||
> Package manager for Solus.
|
||||
> More information: <https://getsol.us/articles/package-management/basics/en/>.
|
||||
> More information: <https://help.getsol.us/docs/user/package-management/basics>.
|
||||
|
||||
- Install a specific package:
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# feedreader
|
||||
|
||||
> A GUI desktop RSS client.
|
||||
> More information: <https://jangernert.github.io/FeedReader/>.
|
||||
> Note: FeedReader is no longer being maintained.
|
||||
> More information: <https://github.com/jangernert/FeedReader>.
|
||||
|
||||
- Print the count of unread articles:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gummy
|
||||
|
||||
> Screen brightness/temperature manager for Linux/X11.
|
||||
> More information: <https://github.com/Fushko/gummy>.
|
||||
> More information: <http://web.archive.org/web/20230717200025/https://github.com/Fushko/gummy>.
|
||||
|
||||
- Set the screen temperature to 3000K:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# kdialog
|
||||
|
||||
> Show KDE dialog boxes from within shell scripts.
|
||||
> More information: <https://develop.kde.org/deploy/kdialog/>.
|
||||
> More information: <https://develop.kde.org/docs/administration/kdialog/>.
|
||||
|
||||
- Open a dialog box displaying a specific message:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# lxterminal
|
||||
|
||||
> Terminal emulator for LXDE.
|
||||
> More information: <https://wiki.lxde.org/en/LXTerminal>.
|
||||
> More information: <https://github.com/lxde/lxterminal>.
|
||||
|
||||
- Open an LXTerminal window:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ntpdate
|
||||
|
||||
> Synchronize and set the date and time via NTP.
|
||||
> More information: <http://support.ntp.org/documentation>.
|
||||
> More information: <https://manned.org/ntpdate>.
|
||||
|
||||
- Synchronize and set date and time:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# obabel
|
||||
|
||||
> Translate chemistry-related data.
|
||||
> More information: <https://openbabel.org/wiki/Main_Page>.
|
||||
> More information: <https://open-babel.readthedocs.io/en/latest/Command-line_tools/babel.html>.
|
||||
|
||||
- Convert a .mol file to XYZ coordinates:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# rpmbuild
|
||||
|
||||
> RPM Package Build tool.
|
||||
> More information: <https://docs.fedoraproject.org/en-US/quick-docs/creating-rpm-packages/>.
|
||||
> More information: <https://manned.org/man/rpmbuild>.
|
||||
|
||||
- Build binary and source packages:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# swupd
|
||||
|
||||
> Package management utility for Clear Linux.
|
||||
> More information: <https://docs.01.org/clearlinux/latest/guides/clear/swupd.html>.
|
||||
> More information: <https://www.clearlinux.org/clear-linux-documentation/guides/clear/swupd.html>.
|
||||
|
||||
- Update to the latest version:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# vrms
|
||||
|
||||
> Report non-free packages installed on Debian-based OSes.
|
||||
> More information: <https://debian.pages.debian.net/vrms/>.
|
||||
> More information: <https://salsa.debian.org/debian/check-dfsg-status>.
|
||||
|
||||
- List non-free and contrib packages (and their description):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# warpd
|
||||
|
||||
> A modal keyboard driven pointer manipulation program.
|
||||
> More information: <https://github.com/rvaiya/warpd/blob/master/man.md>.
|
||||
> More information: <https://github.com/rvaiya/warpd/blob/master/warpd.1.md>.
|
||||
|
||||
- Run warpd in normal mode:
|
||||
|
||||
|
||||
41
tldr/mypy
Normal file
41
tldr/mypy
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mypy
|
||||
|
||||
> Type check Python code.
|
||||
> More information: <https://mypy.readthedocs.io/en/stable/running_mypy.html>.
|
||||
|
||||
- Type check a specific file:
|
||||
|
||||
`mypy {{path/to/file.py}}`
|
||||
|
||||
- Type check a specific [m]odule:
|
||||
|
||||
`mypy -m {{module_name}}`
|
||||
|
||||
- Type check a specific [p]ackage:
|
||||
|
||||
`mypy -p {{package_name}}`
|
||||
|
||||
- Type check a string of code:
|
||||
|
||||
`mypy -c "{{code}}"`
|
||||
|
||||
- Ignore missing imports:
|
||||
|
||||
`mypy --ignore-missing-imports {{path/to/file_or_directory}}`
|
||||
|
||||
- Show detailed error messages:
|
||||
|
||||
`mypy --show-traceback {{path/to/file_or_directory}}`
|
||||
|
||||
- Specify a custom configuration file:
|
||||
|
||||
`mypy --config-file {{path/to/config_file}}`
|
||||
|
||||
- Display [h]elp:
|
||||
|
||||
`mypy -h`
|
||||
Reference in New Issue
Block a user