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/sdbOverwrite 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=fdatasyncWrite 1GB with a forced sync at the end to measure real write speed.
-
lsns -t net,pid,mntList network, PID and mount namespaces, for example to see how containers are isolated.
-
systemd-cglsShow the systemd cgroup hierarchy as a tree, with the processes in each group.