Currently browsing

October 2019

CentOS 7 設定時間同步

可以先用下列指令看是否有同步 # timedatectl 假設沒和 ntp server 同步可以用下列指令使其同步 # timedatectl set-ntp yes 如果發現時區設錯可以用下列指令更改 # timedatectl set-timezone Asia/Taipei 如果不要和 ntp server 同步,想要手動校正時間,請參考下面指令 # timedatectl …

將所有圖片轉成 pdf 檔案

用下列指令就可以按照檔案順序轉 pdf 格式 $ convert `ls -1 *.jpg` file.pdf or $ i=300; convert `ls -1 *.jpg` -compress jpeg -quality 100 \ -density …