• seq 输出数字系列

    Untitled

  • cat 倒叙输出

    • head -6 /etc/passwd | cat -n |tac

    Untitled

  • ssh代理登录(参考:https://www.xiebruce.top/650.html)

    • ssh代理登录
  • 从 known_hosts 文件中删除所有属于 hostname 的密钥

    • ssh-keygen -R 172.30.33.179

      ➜ netlops@netlopsdeMacBook-Air  ~/  ssh-keygen -R 172.30.33.179
      # Host 172.30.33.179 found: line 8
      # Host 172.30.33.179 found: line 9
      # Host 172.30.33.179 found: line 10
      /Users/netlops/.ssh/known_hosts updated.
      Original contents retained as /Users/netlops/.ssh/known_hosts.old
      
  • 监听文件小工具:inotifywait和inotifywatch

    inotifywait文件监控

    https://wangchujiang.com/linux-command/c/inotifywait.html

  • /bin/bash —rcfile 用法

    • 使用**--rcfile**选项时,Bash shell将读取指定的文件,并将其作为启动文件,rcfile文件通常包含一些Bash shell的配置信息,如环境变量,别名,函数等
      • 例子