rjcn.dev

Category: Tips

  • Docker Tip – Delete all

    ⚠️ Warning: These commands permanently delete all Docker data. Ensure you have backed up any important data before running them.

    • Stop all running containers:
    docker stop $(docker ps -aq)
    • Remove all containers:
    docker rm $(docker ps -aq)
    • Remove all images:
    docker rmi -f $(docker images -aq)
    • Remove all volumes:
    docker volume rm $(docker volume ls -q)

    ⚠️ For a faster, all-in-one cleanup (networks and build also): ⚠️

    docker system prune -a --volumes --force

  • Linux Tip #1 – neofetch / fastfetch

    If you want to have all details of your server/pc, you can use fastfetch. Neofetch is no longer actively maintained and therefore removed from debian 12 and more recent versions.

    sudo apt update && 
    sudo apt upgrade -y && 
    sudo apt install fastfetch -y && 
    fastfetch

    example output for my laptop:

    keahi@xpsdeb
    ------------
    OS: Debian GNU/Linux 13 (trixie) x86_64
    Host: XPS 13 9305
    Kernel: Linux 6.12.63+deb13-amd64
    Uptime: 8 hours, 24 mins
    Packages: 1886 (dpkg), 27 (flatpak)
    Shell: bash 5.2.37
    Display (SHP14AE): 1920x1080 @ 60 Hz (as 1536x864) in 13" [Built-in] *
    Display (PHL 275E1): 2560x1440 @ 60 Hz in 27" [External]
    DE: GNOME 48.7
    WM: Mutter (Wayland)
    WM Theme: Adwaita
    Theme: Adwaita [GTK2/3/4]
    Icons: Adwaita [GTK2/3/4]
    Font: Cantarell (11pt) [GTK2/3/4]
    Cursor: Adwaita (24px)
    Terminal: GNOME Terminal 3.56.2
    Terminal Font: Monospace (11pt)
    CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 (8)
    GPU: Intel Iris Xe Graphics @ 1.30 GHz [Integrated]
    Memory: 6.86 GiB / 15.36 GiB (45%)
    Swap: 0 B / 15.73 GiB (0%)
    Disk (/): 230.30 GiB / 451.96 GiB (51%) - ext4
    Local IP (tun0): 10.19.18.166/24
    Battery (DELL G8VCF6C): 100% [AC Connected]
    Locale: en_US.UTF-8

    The source can be found at github:

    https://github.com/fastfetch-cli/fastfetch