Recently Updated Pages
服务器上使用 ssh-agent
Shell Script Snippets
Updated 3 days ago by E笔记
登录时自动运行ssh-agent 添加eval $(ssh-agent -s)到.bashrc 退出登录时自动退出ssh-agent 添加trap 'eval $(ssh-agent -s...
获取本机IPv6地址
Shell Script Snippets
Updated 3 days ago by E笔记
dig -6 TXT +short o-o.myaddr.l.google.com @ns1.google.com
随机生成密码
Shell Script Snippets
Updated 4 months ago by E笔记
cat /dev/urandom |tr -dc 'a-zA-Z0-9'|fold -w 20 |head -n 10
通过SysRq调用重启服务器
Shell Script Snippets
Updated 4 months ago by E笔记
# 允许 magic SysRq 功能 echo 1 > /proc/sys/kernel/sysrq # 立即重启 echo b > /proc/sysrq-trigger