Currently browsing category

Linux, Page 12

sed 前後加文字

sed -i -e ‘s/^/lfs_migrate -y /’ scratch.txt 在每一行前面加入 lfs_migrate -y sed -i -e ‘s/$/ \&/’ scratch.txt 在每一行後面加入 & 符號

iperf 測試速度

$ iperf -c 172.23.1.51 -t 60 -i 5 ———————————————————— Client connecting to 172.23.1.51, TCP port 5001 TCP window size: 49.5 KByte (default) …

OpenSSH Legacy Options

Unable to negotiate with legacyhost: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 $ ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 username@xxx.xxx.xxx.xxx Unable to negotiate with …