use sshfs to mount remote filesystem , command sample

安裝 command : apt-get install sshfs sshfs [[email protected]]host:[remote_directory] mountpoint [options] sshfs -p 2200 [email protected]:/home/rimmon DEV fusermount -u DEV sshfs -p 2200 -o reconnect [email protected]:/mnt/tslog_bak ~/TSLOG_BAK fusermount -u ~/TSLOG_BAK 速度測試 sshfs -p 2200 -o reconnect [email protected]:/mnt/tslog_bak ~/TSLOG_BAK 1.1G 費時 19秒 , 約 55MB/s

[memo] 用 shell awk 加總 column

ls -l `find /mnt/tslog/archive/ -name “*20190[1..6]*” -type f` | awk ‘{sum += $5} END {print sum}’ 160038650315 ls -l `find /mnt/tslog_bak -name “*20190[1..6]*” -type f` | awk ‘{sum += $5} END {print sum}’ 160038650315 ls -l `find /mnt/tslog_backup2 -name “*20190[1..6]*” -type f` | awk ‘{sum += $5} END {print sum}’ 160038650315