Little Star Blog

路在脚下,心向远方

ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain

为什么出现 当出现ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain 时候一般是免密码登陆丢了,我们可以重新设置下免密登陆。 解决 重新生成公私钥 执行如下命令。此

如何使用stat修改文件元数据时间

修改 “修改时间” touch -mt YYYYMMDDhhmm filename 例如 touch -mt 202305181505 sysin.txt 修改 “访问时间和修改时间” touch -t YYYYMMDDhhmm filename 例如 touch -t 202205191505 sysin.txt NOW=$(date) && date -s “2023-09-05 08:00:00” && touch sysin.txt && date -s “$NOW”

如何测试磁盘性能


如何测试磁盘性能


生成测试文件

生成40万个测试文件 mkdir tmp/; seq 1 400000 | xargs -I{} touch tmp/file_{}