Skip to content

Misc

View the current kernel version and build by running

Bash
1
2
3
$> uname -a
# outdated wsl kernel
Linux THINK-**** 4.4.0-19041-Microsoft #1237-Microsoft Sat Sep 11

Find the name of the linux distro via the command line

Bash
$> cat /etc/*-release
$ cat /etc/os-release         [On Debian, Ubuntu and Mint]
$ cat /etc/os-release         [On RHEL/CentOS/Fedora and Rocky Linux/AlmaLinux]
$ cat /etc/gentoo-release     [On Gentoo Linux]
$ cat /etc/os-release         [On Alpine Linux]
$ cat /etc/os-release         [On Arch Linux]
$ cat /etc/SuSE-release       [On OpenSUSE]

## htop

```bash title="htop: View a specific process"
# Using filter
$> htop --filter "process_name"

# Using pgrep
$> htop -p $(pgrep -d, -f "process_name")