Linux bash常用命令案例记录

  1. scp (if the private key is id_rsa, [-i] can be removed)
    scp -i key -P port localfile user@ip:path

  2. back to the beginning of line
    Ctrl + a

  3. go to the end of line
    Ctrl + e

  4. cut character from current position to the beginning
    Ctrl + u

  5. cut character from current position to the end
    Ctrl + k

  6. set timezone
    timedatectl set-timezone Asia/Hong_Kong

  7. run in background
    nohup command > logfile 2>&1 &

posted @ 2024-05-02 21:15  摩斯乱码  阅读(1)  评论(0编辑  收藏  举报