Skip to content

Commit d5de921

Browse files
committed
Improve commands
1 parent 80ab430 commit d5de921

83 files changed

Lines changed: 3013 additions & 667 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎assets/commands/apport.md‎

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ Automatic crash reporting and diagnostics system
44

55
# TLDR
66

7-
Show **crash report** for a PID
7+
**Regenerate stack traces** of a crash report and print them
88

99
```apport-retrace -s [/var/crash/_bin_foo.1000.crash]```
1010

11+
**Retrace in a sandbox** with downloaded debug symbols and open gdb
12+
13+
```apport-retrace -g -S system -C [~/.cache/apport-retrace] [/var/crash/report.crash]```
14+
1115
**List** pending crash reports
1216

1317
```ls /var/crash/```
@@ -20,24 +24,28 @@ Show **crash report** for a PID
2024

2125
```sudo systemctl enable apport```
2226

27+
**Disable** apport crash reporting
28+
29+
```sudo systemctl disable --now apport```
30+
2331
File bug report **from crash**
2432

2533
```ubuntu-bug [/var/crash/report.crash]```
2634

2735
# SYNOPSIS
2836

29-
**apport** (system daemon)
37+
**/usr/share/apport/apport** [_--start_|_--stop_]
3038

3139
# DESCRIPTION
3240

3341
**apport** is Ubuntu's crash reporting system that automatically collects data when applications crash, including core dumps, package versions, and system information. It stores crash reports in /var/crash/ for later submission.
3442

35-
When enabled, apport intercepts segmentation faults and other crashes, creating .crash files that can be reported to Launchpad or analyzed locally.
43+
When enabled, apport registers itself as the kernel's core dump handler, intercepting segmentation faults and other crashes and creating .crash files that can be reported to Launchpad or analyzed locally. It is not run directly by users; **apport-cli**, **apport-retrace**, **apport-unpack** and **ubuntu-bug** work with the reports it produces.
3644

3745
# CONFIGURATION
3846

3947
**/etc/default/apport**
40-
> Main configuration file. Set enabled=1 to collect crash reports or enabled=0 to disable.
48+
> Main configuration file. Set enabled=1 (the upstream default) to collect crash reports or enabled=0 to disable. Override once with **sudo service apport start force_start=1**.
4149
4250
**/var/crash/**
4351
> Directory where crash report files are stored.
@@ -58,7 +66,7 @@ When enabled, apport intercepts segmentation faults and other crashes, creating
5866
5967
# CAVEATS
6068

61-
Core dumps can consume significant disk space. Crash reports may contain sensitive information. Disabled by default in production environments.
69+
Core dumps can consume significant disk space. Crash reports may contain sensitive information such as memory contents, so review them before uploading.
6270

6371
# HISTORY
6472

@@ -67,3 +75,11 @@ Core dumps can consume significant disk space. Crash reports may contain sensiti
6775
# SEE ALSO
6876

6977
[apport-cli](/man/apport-cli)(1), [apport-unpack](/man/apport-unpack)(1), [ubuntu-bug](/man/ubuntu-bug)(1), [coredumpctl](/man/coredumpctl)(1), [dmesg](/man/dmesg)(1)
78+
79+
# RESOURCES
80+
81+
```[Source code](https://github.com/canonical/apport)```
82+
83+
```[Homepage](https://launchpad.net/apport)```
84+
85+
<!-- verified: 2026-11-09 -->

‎assets/commands/apt-clone.md‎

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ Restore into a **specific directory** (debootstrap)
2020

2121
```sudo apt-clone restore [path/to/clone.tar.gz] --destination [path/to/directory]```
2222

23+
**Simulate** a restore without changing the system
24+
25+
```sudo apt-clone restore --simulate [path/to/clone.tar.gz]```
26+
27+
Show **differences** between a clone file and the system
28+
29+
```sudo apt-clone show-diff [path/to/clone.tar.gz]```
30+
2331
Show **information** about a clone file
2432

2533
```apt-clone info [path/to/apt-clone-state-hostname.tar.gz]```
@@ -49,22 +57,37 @@ Clone files are compressed tar archives containing package lists and APT source
4957
**restore-new-distro** _source_ _new_distro_codename_
5058
> Restore a clone file while attempting to upgrade packages to a new distribution release.
5159
60+
**show-diff** _source_ [**--destination** _path_]
61+
> Show the difference between a clone file and the system.
62+
5263
**info** _source_
5364
> Display information about a clone file.
5465
5566
# PARAMETERS
5667

5768
**--source** _path_
58-
> Specify an alternative source directory for cloning (default is /).
69+
> Source directory of the system or chroot for **clone** (default is /).
5970
6071
**--destination** _path_
61-
> Specify the destination directory for restore (debootstraps the clone into this directory).
72+
> Destination directory for **restore**, **restore-new-distro** and **show-diff** (default is /).
6273
6374
**--with-dpkg-repack**
64-
> Include package files for packages no longer available in repositories.
75+
> Add packages that can no longer be downloaded to the state bundle, using dpkg-repack. This can make the bundle rather big.
6576
6677
**--with-dpkg-status**
67-
> Include the full dpkg status file.
78+
> Include a full copy of the dpkg status file, mostly useful for debugging.
79+
80+
**--extra-files** _glob_...
81+
> Include extra files in the clone.
82+
83+
**--simulate**
84+
> Only simulate **restore** or **restore-new-distro**.
85+
86+
**--exclude** _package_...
87+
> Exclude the listed packages from **restore**.
88+
89+
**--rewrite-server** _url_
90+
> Rewrite all URIs in sources.list to the given URL during **restore**.
6891
6992
**-h**, **--help**
7093
> Show help message and exit.
@@ -79,3 +102,9 @@ Restoring a clone on a different release version may fail due to package incompa
79102
# SEE ALSO
80103

81104
[apt](/man/apt)(8), [dpkg](/man/dpkg)(1), [apt-get](/man/apt-get)(8), [apt-mark](/man/apt-mark)(8)
105+
106+
# RESOURCES
107+
108+
```[Source code](https://github.com/mvo5/apt-clone)```
109+
110+
<!-- verified: 2026-11-09 -->

‎assets/commands/apturl.md‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ It has been pre-installed on Ubuntu since version 7.10, providing a user-friendl
2828

2929
# PARAMETERS
3030

31-
**-p**, **--http-proxy**
31+
**-p**, **--http-proxy** _proxy_
3232
> Specify an HTTP proxy for package downloads
3333
3434
**apt:_package_**
@@ -46,6 +46,9 @@ It has been pre-installed on Ubuntu since version 7.10, providing a user-friendl
4646
**?refresh=yes**
4747
> Force a repository refresh before looking for the package
4848
49+
**?minver=**
50+
> Minimum version that the package candidate must provide
51+
4952
# CAVEATS
5053

5154
Requires a graphical environment (X11/Wayland). Should only be used with trusted links. Verification dialogs should be read carefully. Exit codes: 0 = success, 1 = cancelled, 2 = error, 3 = invalid arguments.
@@ -56,4 +59,12 @@ Requires a graphical environment (X11/Wayland). Should only be used with trusted
5659

5760
# SEE ALSO
5861

59-
[apt](/man/apt)(8), [apt-get](/man/apt-get)(8), [dpkg](/man/dpkg)(1), [snap](/man/snap)(8)
62+
[apt](/man/apt)(8), [apt-get](/man/apt-get)(8), [dpkg](/man/dpkg)(1), [snap](/man/snap)(8), [gdebi](/man/gdebi)(8)
63+
64+
# RESOURCES
65+
66+
```[Source code](https://git.launchpad.net/apturl)```
67+
68+
```[Homepage](https://launchpad.net/apturl)```
69+
70+
<!-- verified: 2026-11-09 -->

‎assets/commands/aur.md‎

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ Collection of scripts for managing AUR packages through a local repository.
2020

2121
```aur sync -u```
2222

23-
**Clean** build files after syncing
23+
Build a package in a **clean chroot**
2424

2525
```aur sync -c [package]```
2626

27+
**Clean** leftover work files after a successful build
28+
29+
```aur sync -C [package]```
30+
2731
Install a package **without review prompts**
2832

2933
```aur sync --no-view --no-confirm [package]```
@@ -32,7 +36,7 @@ Install a package **without review prompts**
3236

3337
```aur fetch [package]```
3438

35-
Show the **dependency tree** for a package
39+
Show the **dependency pairs** for a package
3640

3741
```aur depends [package]```
3842

@@ -42,7 +46,7 @@ Show the **dependency tree** for a package
4246

4347
# DESCRIPTION
4448

45-
**aur** (aurutils) is a collection of scripts for managing AUR packages through a local pacman repository. It automates downloading PKGBUILDs, building packages in clean chroots, and adding them to a local repository that pacman can use directly.
49+
**aur** (aurutils) is a collection of scripts for managing AUR packages through a local pacman repository. It automates downloading PKGBUILDs, building packages (optionally in clean chroots), and adding them to a local repository that pacman can use directly.
4650

4751
Unlike AUR helpers that install packages directly, aurutils maintains a proper local repository, enabling cleaner dependency management and the ability to share built packages across systems.
4852

@@ -64,16 +68,40 @@ Unlike AUR helpers that install packages directly, aurutils maintains a proper l
6468
> Build packages from downloaded sources
6569
6670
**depends**
67-
> Display package dependency trees
71+
> Resolve package dependencies using aurweb and print them as pkgbase and dependency pairs
72+
73+
**view**
74+
> Inspect build files before they are executed
75+
76+
**query**
77+
> Send requests to the aurweb RPC interface
78+
79+
**vercmp**
80+
> Compare local package versions against the AUR
81+
82+
**chroot**
83+
> Build packages in a systemd-nspawn container
84+
85+
**graph**
86+
> Print package and dependency order from .SRCINFO data
87+
88+
**srcver**
89+
> List the latest revision of VCS packages
6890
6991
# CAVEATS
7092

71-
Requires a local repository to be configured in **/etc/pacman.conf**. Uses **vifm** by default for PKGBUILD review (configurable via **AUR_PAGER** environment variable). Building occurs in a clean chroot, requiring the **devtools** package. Initial setup is more involved than simple AUR helpers like yay or paru.
93+
Requires a local repository to be configured in **/etc/pacman.conf**. Build files are shown with **AUR_PAGER** if defined, otherwise with **vifm** if installed. Packages are built with makepkg by default; building in a container needs **-c**/**--chroot** and the **devtools** package. Initial setup is more involved than simple AUR helpers like yay or paru.
7294

7395
# HISTORY
7496

7597
**aurutils** was created to provide a more robust and scriptable approach to AUR package management on Arch Linux. It follows the Unix philosophy of small, composable tools rather than a monolithic AUR helper.
7698

7799
# SEE ALSO
78100

79-
[aur-sync](/man/aur-sync)(1), [pacman](/man/pacman)(8), [makepkg](/man/makepkg)(8), [yay](/man/yay)(1)
101+
[aur-sync](/man/aur-sync)(1), [aurutils](/man/aurutils)(1), [pacman](/man/pacman)(8), [makepkg](/man/makepkg)(8), [yay](/man/yay)(1)
102+
103+
# RESOURCES
104+
105+
```[Source code](https://github.com/aurutils/aurutils)```
106+
107+
<!-- verified: 2026-11-09 -->

‎assets/commands/bgpgrep.md‎

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ Filter and search BGP routing data in MRT format
2020

2121
```bgpgrep [path/to/rib.mrt.gz] -supernet [8.8.8.8/32]```
2222

23+
**Match** an exact prefix and write results to a file
24+
25+
```bgpgrep -o [output.txt] [path/to/rib.mrt.gz] -exact [192.0.2.0/24]```
26+
2327
**Detect bogon ASNs** in routing data
2428

2529
```bgpgrep [path/to/rib.mrt.gz] -bogon-asn```
@@ -34,24 +38,51 @@ Filter and search BGP routing data in MRT format
3438

3539
# SYNOPSIS
3640

37-
**bgpgrep** [_file ..._] [_filter expressions_]
41+
**bgpgrep** [_options_] [_file ..._] [_expression_]
3842

3943
# PARAMETERS
4044

45+
**-o** _file_
46+
> Write output to a file instead of standard output (option form, before the file list).
47+
48+
**--no-color**
49+
> Disable colored output.
50+
51+
**--dump-bytecode**
52+
> Dump the filtering engine bytecode to standard error.
53+
54+
**-h**, **--help**, **-?**
55+
> Print a short help message.
56+
57+
**-type** _msg-type_
58+
> Match BGP messages of the given type, by name (OPEN, UPDATE) or number.
59+
60+
**-attr** _attribute-type_
61+
> Match UPDATE messages containing the given path attribute, by name or number.
62+
4163
**-peer** _address|asn_
4264
> Match routes received from a specific peer, identified by IP address or AS number.
4365
4466
**-aspath** _pattern_
4567
> Match routes whose AS path matches the given pattern. Supports AS number sequences and regular expression-like syntax.
4668
47-
**-supernet** _prefix_
69+
**-exact** _prefix|file_
70+
> Match routes for exactly the specified prefixes.
71+
72+
**-supernet** _prefix|file_
4873
> Match routes that are supernets of (or equal to) the specified prefix.
4974
5075
**-subnet** _prefix|file_
5176
> Match routes that are subnets of the specified prefix, or match against a prefix list from a file.
5277
78+
**-related** _prefix|file_
79+
> Match routes that are subnets or supernets of the specified prefix.
80+
5381
**-communities** _expression_
54-
> Match routes with specific BGP community values. Supports wildcard patterns.
82+
> Match routes with at least one of the given BGP community values. Supports wildcard patterns.
83+
84+
**-all-communities** _expression_
85+
> Match routes carrying all of the given BGP community values.
5586
5687
**-bogon-asn**
5788
> Match routes containing bogon (reserved/unallocated) AS numbers in the AS path.
@@ -62,13 +93,13 @@ Filter and search BGP routing data in MRT format
6293
**-timestamp** _condition_
6394
> Filter by timestamp using comparison operators (e.g., ">=2021-07-01").
6495
65-
**-and**
96+
**-and**, **-a**
6697
> Logical AND between filter conditions (default when combining filters).
6798
68-
**-or**
99+
**-or**, **-o**
69100
> Logical OR between filter conditions.
70101
71-
**-not**
102+
**-not**, **!**
72103
> Negate the following filter condition.
73104
74105
# DESCRIPTION
@@ -77,12 +108,18 @@ Filter and search BGP routing data in MRT format
77108

78109
Each line of output is prefixed with a character indicating the message type: `=` for RIB snapshot, `+` for announcement, `-` for withdrawal, and `#` for BGP state change. The output uses a pipe-delimited format where the 9th field contains the peer address and ASN, enabling easy integration with standard command-line tools like `cut` and `awk`.
79110

80-
The tool supports filtering by prefix, AS path patterns, peer, communities, and timestamp. Multiple filters can be combined using boolean operators (`-and`, `-or`, `-not`) with parentheses for grouping. It handles both IPv4 and IPv6 prefixes and supports compressed MRT files (gzip, bzip2).
111+
The tool supports filtering by prefix, AS path patterns, peer, communities, and timestamp. Multiple filters can be combined using boolean operators (`-and`, `-or`, `-not`) with parentheses for grouping. It handles both IPv4 and IPv6 prefixes and supports compressed MRT files (such as gzip, bzip2 and xz). A **-** file operand reads uncompressed MRT data from standard input. Filters apply only to BGP messages: other information such as state changes is always printed.
81112

82113
# CAVEATS
83114

84-
Input must be in MRT format (common BGP dump format). Filter option names use single-dash long form (e.g., `-peer`, not `--peer`). AS path matching patterns use bgpgrep-specific syntax that differs from standard regular expressions.
115+
Input must be in MRT format (common BGP dump format). Options must precede the file list, and filter terms use single-dash long form (e.g., `-peer`, not `--peer`). AS path matching patterns use bgpgrep-specific syntax that differs from standard regular expressions.
85116

86117
# SEE ALSO
87118

88-
[traceroute](/man/traceroute)(1), [whois](/man/whois)(1)
119+
[peerindex](/man/peerindex)(1), [traceroute](/man/traceroute)(1), [whois](/man/whois)(1)
120+
121+
# RESOURCES
122+
123+
```[Source code](https://codeberg.org/1414codeforge/ubgpsuite)```
124+
125+
<!-- verified: 2026-11-09 -->

0 commit comments

Comments
 (0)