Skip to content

duf - ein hübsches Kommandozeilen Tool

Linux
1 1 174
  • Zur Anzeige, wie viel Platz noch auf den Platten frei ist, nimmt man ja meistens

    frank@debian:~$ df -h
    Dateisystem                 Größe Benutzt Verf. Verw% Eingehängt auf
    udev                          30G       0   30G    0% /dev
    tmpfs                        5,9G    2,0M  5,9G    1% /run
    /dev/mapper/nvme0n1p4_crypt  399G    333G   64G   85% /
    tmpfs                         30G       0   30G    0% /dev/shm
    tmpfs                        5,0M     16K  5,0M    1% /run/lock
    /dev/mapper/nvme0n1p4_crypt  399G    333G   64G   85% /home
    /dev/nvme0n1p2               921M    321M  537M   38% /boot
    /dev/sda1                    458G     82G  353G   19% /mnt/Backup
    /dev/sdb1                    917G    787G   85G   91% /mnt/1TB
    /dev/nvme0n1p1               952M    5,9M  946M    1% /boot/efi
    /dev/sdc1                    3,6T    269G  3,2T    8% /mnt/Backup_PVE
    //192.168.3.12/samba-share   835G    324G  511G   39% /mnt/NAS
    tmpfs                        5,9G    2,5M  5,9G    1% /run/user/1000
    

    Ok, man erkennt was man sucht, aber ist das was für die Augen? Hier kommt das nette Tool duf ins Spiel.

    frank@debian:~$ duf
    ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ 7 local devices                                                                                                  │
    ├─────────────────┬────────┬────────┬────────┬───────────────────────────────┬───────┬─────────────────────────────┤
    │ MOUNTED ON      │   SIZE │   USED │  AVAIL │              USE%             │ TYPE  │ FILESYSTEM                  │
    ├─────────────────┼────────┼────────┼────────┼───────────────────────────────┼───────┼─────────────────────────────┤
    │ /               │ 398.7G │ 332.4G │  63.2G │ [################....]  83.4% │ btrfs │ /dev/mapper/nvme0n1p4_crypt │
    │ /boot           │ 920.7M │ 320.1M │ 536.9M │ [######..............]  34.8% │ ext4  │ /dev/nvme0n1p2              │
    │ /boot/efi       │ 951.1M │   5.8M │ 945.3M │ [....................]   0.6% │ vfat  │ /dev/nvme0n1p1              │
    │ /home           │ 398.7G │ 332.4G │  63.2G │ [################....]  83.4% │ btrfs │ /dev/mapper/nvme0n1p4_crypt │
    │ /mnt/1TB        │ 916.7G │ 786.1G │  84.0G │ [#################...]  85.8% │ ext4  │ /dev/sdb1                   │
    │ /mnt/Backup     │ 457.4G │  81.5G │ 352.6G │ [###.................]  17.8% │ ext4  │ /dev/sda1                   │
    │ /mnt/Backup_PVE │   3.6T │ 268.8G │   3.1T │ [#...................]   7.3% │ ext4  │ /dev/sdc1                   │
    ╰─────────────────┴────────┴────────┴────────┴───────────────────────────────┴───────┴─────────────────────────────╯
    ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ 1 network device                                                                                          │
    ├────────────┬────────┬────────┬────────┬───────────────────────────────┬──────┬────────────────────────────┤
    │ MOUNTED ON │   SIZE │   USED │  AVAIL │              USE%             │ TYPE │ FILESYSTEM                 │
    ├────────────┼────────┼────────┼────────┼───────────────────────────────┼──────┼────────────────────────────┤
    │ /mnt/NAS   │ 834.1G │ 323.4G │ 510.7G │ [#######.............]  38.8% │ cifs │ //192.168.3.12/samba-share │
    ╰────────────┴────────┴────────┴────────┴───────────────────────────────┴──────┴────────────────────────────╯
    ╭────────────────────────────────────────────────────────────────────────────────────────────────╮
    │ 5 special devices                                                                              │
    ├────────────────┬───────┬───────┬───────┬───────────────────────────────┬──────────┬────────────┤
    │ MOUNTED ON     │  SIZE │  USED │ AVAIL │              USE%             │ TYPE     │ FILESYSTEM │
    ├────────────────┼───────┼───────┼───────┼───────────────────────────────┼──────────┼────────────┤
    │ /dev           │ 29.3G │    0B │ 29.3G │                               │ devtmpfs │ udev       │
    │ /dev/shm       │ 29.4G │    0B │ 29.4G │                               │ tmpfs    │ tmpfs      │
    │ /run           │  5.9G │  2.0M │  5.9G │ [....................]   0.0% │ tmpfs    │ tmpfs      │
    │ /run/lock      │  5.0M │ 16.0K │  5.0M │ [....................]   0.3% │ tmpfs    │ tmpfs      │
    │ /run/user/1000 │  5.9G │  2.5M │  5.9G │ [....................]   0.0% │ tmpfs    │ tmpfs      │
    ╰────────────────┴───────┴───────┴───────┴───────────────────────────────┴──────────┴────────────╯
    

    Hier noch als Screenshot, weil das nicht richtig dargestellt wird.

    cb87a10e-c324-4358-9d83-312815ef0902-grafik.png

    Klare Empfehlung von mir und steht jetzt auf meiner Liste, der Standardpakete die ich bei Neuinstallationen brauche 😉

  • 0 Stimmen
    2 Beiträge
    25 Aufrufe
    frankm@nrw.socialF
    @julialee Meiner Meinung nach Linux Mint Cinnamon.
  • Nextcloud - Update auf 28.0.0

    Nextcloud nextcloud linux
    5
    3
    0 Stimmen
    5 Beiträge
    556 Aufrufe
    FrankMF
    28.0.1 ist da. Den Log Reader wieder aktiviert. Gleiches Verhalten. Kann ich so leider nicht gebrauchen, also wieder deaktiviert.
  • Ansible - Hetzner Server erstellen

    Verschoben Ansible ansible linux hcloud
    1
    3
    0 Stimmen
    1 Beiträge
    330 Aufrufe
    Niemand hat geantwortet
  • ZFS - Wichtige Befehle

    Linux zfs linux
    3
    0 Stimmen
    3 Beiträge
    874 Aufrufe
    FrankMF
    Heute mal drüber gestolpert, das es auch so was geben kann. root@pve2:~# zpool status pool: pool_NAS state: ONLINE status: Some supported and requested features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. scan: scrub repaired 0B in 00:20:50 with 0 errors on Sun Apr 13 00:44:51 2025 config: NAME STATE READ WRITE CKSUM pool_NAS ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ata-WDC_WDS100T1R0A-68A4W0_230520800733 ONLINE 0 0 0 ata-WDC_WDS100T1R0A-68A4W0_230520801376 ONLINE 0 0 0 errors: No known data errors Was machen? Als erstes mal ein Backup angestoßen. Danach root@pve2:~# zpool get all pool_NAS | grep feature pool_NAS feature@async_destroy enabled local pool_NAS feature@empty_bpobj active local pool_NAS feature@lz4_compress active local pool_NAS feature@multi_vdev_crash_dump enabled local pool_NAS feature@spacemap_histogram active local pool_NAS feature@enabled_txg active local pool_NAS feature@hole_birth active local pool_NAS feature@extensible_dataset active local pool_NAS feature@embedded_data active local pool_NAS feature@bookmarks enabled local pool_NAS feature@filesystem_limits enabled local pool_NAS feature@large_blocks enabled local pool_NAS feature@large_dnode enabled local pool_NAS feature@sha512 enabled local pool_NAS feature@skein enabled local pool_NAS feature@edonr enabled local pool_NAS feature@userobj_accounting active local pool_NAS feature@encryption enabled local pool_NAS feature@project_quota active local pool_NAS feature@device_removal enabled local pool_NAS feature@obsolete_counts enabled local pool_NAS feature@zpool_checkpoint enabled local pool_NAS feature@spacemap_v2 active local pool_NAS feature@allocation_classes enabled local pool_NAS feature@resilver_defer enabled local pool_NAS feature@bookmark_v2 enabled local pool_NAS feature@redaction_bookmarks enabled local pool_NAS feature@redacted_datasets enabled local pool_NAS feature@bookmark_written enabled local pool_NAS feature@log_spacemap active local pool_NAS feature@livelist enabled local pool_NAS feature@device_rebuild enabled local pool_NAS feature@zstd_compress enabled local pool_NAS feature@draid enabled local pool_NAS feature@zilsaxattr disabled local pool_NAS feature@head_errlog disabled local pool_NAS feature@blake3 disabled local pool_NAS feature@block_cloning disabled local pool_NAS feature@vdev_zaps_v2 disabled local Das kommt von neuen Funktionen, die zu ZFS hinzugefügt wurden und bei Erstellung des Pools nicht vorhanden waren. Dann upgraden wir mal root@pve2:~# zpool upgrade pool_NAS This system supports ZFS pool feature flags. Enabled the following features on 'pool_NAS': zilsaxattr head_errlog blake3 block_cloning vdev_zaps_v2 Kontrolle root@pve2:~# zpool status pool: pool_NAS state: ONLINE scan: scrub repaired 0B in 00:20:50 with 0 errors on Sun Apr 13 00:44:51 2025 config: NAME STATE READ WRITE CKSUM pool_NAS ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ata-WDC_WDS100T1R0A-68A4W0_230520800733 ONLINE 0 0 0 ata-WDC_WDS100T1R0A-68A4W0_230520801376 ONLINE 0 0 0 errors: No known data errors Features kontrollieren root@pve2:~# zpool get all pool_NAS | grep feature pool_NAS feature@async_destroy enabled local pool_NAS feature@empty_bpobj active local pool_NAS feature@lz4_compress active local pool_NAS feature@multi_vdev_crash_dump enabled local pool_NAS feature@spacemap_histogram active local pool_NAS feature@enabled_txg active local pool_NAS feature@hole_birth active local pool_NAS feature@extensible_dataset active local pool_NAS feature@embedded_data active local pool_NAS feature@bookmarks enabled local pool_NAS feature@filesystem_limits enabled local pool_NAS feature@large_blocks enabled local pool_NAS feature@large_dnode enabled local pool_NAS feature@sha512 enabled local pool_NAS feature@skein enabled local pool_NAS feature@edonr enabled local pool_NAS feature@userobj_accounting active local pool_NAS feature@encryption enabled local pool_NAS feature@project_quota active local pool_NAS feature@device_removal enabled local pool_NAS feature@obsolete_counts enabled local pool_NAS feature@zpool_checkpoint enabled local pool_NAS feature@spacemap_v2 active local pool_NAS feature@allocation_classes enabled local pool_NAS feature@resilver_defer enabled local pool_NAS feature@bookmark_v2 enabled local pool_NAS feature@redaction_bookmarks enabled local pool_NAS feature@redacted_datasets enabled local pool_NAS feature@bookmark_written enabled local pool_NAS feature@log_spacemap active local pool_NAS feature@livelist enabled local pool_NAS feature@device_rebuild enabled local pool_NAS feature@zstd_compress enabled local pool_NAS feature@draid enabled local pool_NAS feature@zilsaxattr enabled local pool_NAS feature@head_errlog active local pool_NAS feature@blake3 enabled local pool_NAS feature@block_cloning enabled local pool_NAS feature@vdev_zaps_v2 enabled local So, alle neuen Features aktiviert. Jetzt kann der Pool weiterhin seine Arbeit machen.
  • FreeOTP+

    Linux linux freeotp+
    3
    1
    0 Stimmen
    3 Beiträge
    604 Aufrufe
    FrankMF
    Falls mal jemand von FreeOTP+ zum Bitwarden Authenticator wechseln möchte, ich habe da mal was gebaut https://forgejo.linux-nerds.org/frank/freeotpplus-export-to-bitwarden-authenticator
  • Hetzner Cloud - Volumes

    Allgemeine Diskussionen linux
    1
    3
    0 Stimmen
    1 Beiträge
    1k Aufrufe
    Niemand hat geantwortet
  • Youtube in Grav

    Grav grav linux
    1
    0 Stimmen
    1 Beiträge
    545 Aufrufe
    Niemand hat geantwortet
  • Sidebar im Theme Quark bearbeiten

    Grav grav linux
    1
    0 Stimmen
    1 Beiträge
    627 Aufrufe
    Niemand hat geantwortet