From 1f72b340830599db862fc4c0c4fd0ddeeeca2895 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Mon, 20 Jan 2025 00:17:31 +0000 Subject: [PATCH] Update cheatsheets --- tldr/alacritty | 14 +++++++++++--- tldr/linux/insmod | 1 + tldr/linux/kmod | 19 +++++++++++++++++++ tldr/linux/lsmod | 4 ++-- tldr/linux/modinfo | 1 + tldr/linux/modprobe | 1 + tldr/linux/pw-dump | 4 ++++ tldr/linux/rmmod | 1 + 8 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 tldr/linux/kmod diff --git a/tldr/alacritty b/tldr/alacritty index 08346369..7413da13 100644 --- a/tldr/alacritty +++ b/tldr/alacritty @@ -8,15 +8,23 @@ source: https://github.com/tldr-pages/tldr.git > Cross-platform, GPU-accelerated terminal emulator. > More information: . -- Open a new Alacritty window: +- Start a new Alacritty process and create a window: `alacritty` -- Run in a specific directory: +- Start the Alacritty daemon (without creating a window): + +`alacritty --daemon` + +- Create a new window using the already running Alacritty process: + +`alacritty msg create-window` + +- Start the shell in a specific directory (also works with `alacritty msg create-window`): `alacritty --working-directory {{path/to/directory}}` -- [e]xecute a command in a new Alacritty window: +- [e]xecute a command in a new Alacritty window (also works with `alacritty msg create-window`): `alacritty -e {{command}}` diff --git a/tldr/linux/insmod b/tldr/linux/insmod index 8b6f496e..91877c3b 100644 --- a/tldr/linux/insmod +++ b/tldr/linux/insmod @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # insmod > Dynamically load modules into the Linux Kernel. +> See also: `kmod`, for other module management commands. > More information: . - Insert a kernel module into the Linux kernel: diff --git a/tldr/linux/kmod b/tldr/linux/kmod new file mode 100644 index 00000000..38efce6e --- /dev/null +++ b/tldr/linux/kmod @@ -0,0 +1,19 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# kmod + +> Manage Linux kernel modules. +> This program is usually called via its symlinks: `lsmod`, `rmmod`, `insmod`, `modinfo`, `modprobe`, and `depmod`. +> See their respective pages for more information. +> More information: . + +- List currently loaded kernel modules: + +`kmod list` + +- Display the static device nodes information provided by the modules of the currently running kernel: + +`kmod static-nodes` diff --git a/tldr/linux/lsmod b/tldr/linux/lsmod index 15d626dd..e126f4ea 100644 --- a/tldr/linux/lsmod +++ b/tldr/linux/lsmod @@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # lsmod -> Shows the status of Linux kernel modules. -> See also `modprobe`, which loads kernel modules. +> Show the status of Linux kernel modules. +> See also: `kmod`, for other module management commands. > More information: . - List all currently loaded kernel modules: diff --git a/tldr/linux/modinfo b/tldr/linux/modinfo index f7cb4dc9..a0156d26 100644 --- a/tldr/linux/modinfo +++ b/tldr/linux/modinfo @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # modinfo > Extract information about a Linux kernel module. +> See also: `kmod`, for other module management commands. > More information: . - List all attributes of a kernel module: diff --git a/tldr/linux/modprobe b/tldr/linux/modprobe index c65dcf4f..876f2653 100644 --- a/tldr/linux/modprobe +++ b/tldr/linux/modprobe @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # modprobe > Add or remove modules from the Linux kernel. +> See also: `kmod`, for other module management commands. > More information: . - Pretend to load a module into the kernel, but don't actually do it: diff --git a/tldr/linux/pw-dump b/tldr/linux/pw-dump index fc1b47f2..3ce96e1f 100644 --- a/tldr/linux/pw-dump +++ b/tldr/linux/pw-dump @@ -13,6 +13,10 @@ source: https://github.com/tldr-pages/tldr.git `pw-dump` +- Print a JSON representation of an object: + +`pw-dump {{object_id}}` + - Dump the current state [m]onitoring changes, printing it again: `pw-dump --monitor` diff --git a/tldr/linux/rmmod b/tldr/linux/rmmod index 8ac67bc6..92842beb 100644 --- a/tldr/linux/rmmod +++ b/tldr/linux/rmmod @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # rmmod > Remove modules from the Linux kernel. +> See also: `kmod`, for other module management commands. > More information: . - Remove a module from the kernel: