Skip to content
Ricky
Chinese

搜尋

Searching… No matching pages. Matching pages are listed below. Search is unavailable. Please try again.

Linux

All posts

在 Shell 中輸出 ASCII 藝術字 banner sudo apt install sysvbanner $ banner hello # # ###### # # #### # # # # # # # ###### ##### # # # # # # # # # # # # # # # # # # # # ###### ###### ###### #### FIGlet: Frank, Ian, and …

如何讓終端輸出覆蓋同一行 問題簡介 $ cat print_status.sh !/bin/bash echo "[INFO] Processing file: readme.txt" sleep 2 To simulate the file processing echo "[INFO] Processing file: veryPowerfulService.service" sleep 2 echo …

在 Bash 中解析命令列參數 getopts getopts optstring opt [arg ...] #!/bin/bash while getopts 'abc:h' opt; do case "$opt" in a) echo "Processing option 'a'" ;; b) echo "Processing option 'b'" ;; c) arg="$OPTARG" echo …

如何設定時區與 NTP 服務在 RHEL7/CentOS7 chrony 包含兩個程序,chronyd 是一個可以在啟動時啟動的守護進程,chronyc 是一個命令行界面程序,可用於監控 chronyd 的性能並在運行時更改各種運行參數。 注意 ntpd 和 chronyd 擇一就可,不要同時運作。 設定時區 ~# timedatectl set-timezone Asia/Taipei ~# …

Ubuntu 18.04 透過 netplan 設定網路卡 IP 照上面的說明看了一下 /etc/netplan 目錄,查閱一下 /etc/netplan/50-cloud-init.yaml,如下: # This file is generated from information provided by # the datasource. Changes to it will not persist …