Sync with rsync and show progress

Mirror a directory to a remote host and delete files that are not in the source.

rsync -avz --progress --delete src/ user@host:/dest/

tool
linux133 commands
tags
linuxfilesystem

More linux commands

  • shred -vzn 1 /dev/sdb

    Overwrite the disk once with random data, then with zeros, and show progress. For SSD and NVMe, use the drive's built-in secure erase instead.

  • smartctl -a /dev/sda | grep -E 'SMART overall|Reallocated|Pending|Uncorrectable'

    Show the overall SMART health and key signs that a disk is about to fail.

  • dd if=/dev/zero of=/tmp/testfile bs=1M count=1024 conv=fdatasync

    Write 1GB with a forced sync at the end to measure real write speed.

  • lsns -t net,pid,mnt

    List network, PID and mount namespaces, for example to see how containers are isolated.

  • systemd-cgls

    Show the systemd cgroup hierarchy as a tree, with the processes in each group.

all 133 linux commands