Skip to content

Benjr.tw

  • Linux
    • Stress & Performance
    • Hardware Info
    • System Monitor
    • Security
    • Desktop
    • PXE
    • Filesystem Hierarchy Standard
    • Linux 開機選項
    • Linux Package Manager
    • 備份 Backup
  • Virtualization
    • Docker & Podman
    • CoreOS
  • NAS/SAN
  • Programming Language
    • Python
    • Bash shell script
    • Perl
    • PHP
    • Node.JS
    • VBA
    • javascript
    • Power Query
    • PowerShell
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • SQLite
    • MariaDB JSON

RHEL – 指定 Kickstart 路徑

2017-06-122018-09-21 adminLinux, RedHat / CentOS

Loading

測試環境為 RedHat RHEL7 在安裝 RHEL 時可以透過 kickstart 的方式來進行預先選訂安裝項目,這個檔案存放位址可以為 本地端裝置(硬碟或是光碟) 或者遠端網路上的某一台伺服器所提供的服務上的檔案,下面是有支援的方式 (inst.ks 使用的檔案路徑同 inst.repo ) […]

Read more

Linux command – sed

2017-06-082017-09-28 adminBash shell script, Linux

Loading

透過 sed (Stream EDitor) 與 awk 都可以把文件做過濾和轉換成新的輸出內容.不過 sed 適合用於一整行的資料處理,而 awk – https://benjr.tw/97139 則比較適合將一整行做多個 欄位 的資料處理.先來看看 sed 的幾個範例. 先產生一個文 […]

Read more

Bash Shell Script – select 迴圈

2017-06-072017-07-12 adminBash shell script, Linux

Loading

select select 的語法如下,他是一個無限迴圈會一直重覆讓使用者輸入資料並執行 do done 內的 script . 下面這個範例就是使用 select 這一無限迴圈,使用者可以選擇 1) A , 2) B , 3) C , 4) D ,並執行 do done 內的 script,需要使 […]

Read more

Bash Shell – source script, sh script, ./script (2)

2017-06-012018-06-14 adminBash shell script, Linux

Loading

測試環境為 Ubuntu 16.04 x64 用下面的 script 來觀察 source script, sh script, ./script 執行後各項變數是否保留. sh script 與 ./script 我開了兩個 SSH 連線,一個用來執行程式,一個用來觀察程序的變化. 一開始先檢查程 […]

Read more

Bash Shell Script – read

2017-05-082019-04-30 adminBash shell script, Linux

Loading

下面是 read 可以加的參數,他們代表什麼意思! 測試環境為 Ubuntu 16.04 x64 read [-ers] [-a aname] [-d delim] [-i text] [-n nchars] [-N nchars] [-p prompt] [-t timeout] [-ufd] [ […]

Read more

Bash Shell Script – echo

2017-05-052017-08-14 adminBash shell script, Linux

Loading

通常 echo 會接參數 -e ,這是代表什麼意思 測試環境為 Ubuntu 16.04 x64 使用參數 -e 之後就可以 啟用下面幾種 反斜線 (\) 轉義的功能 echo – display a line of text -e enable interpretation of ba […]

Read more

Bash Shell Script – $() , ${} , $(())

2017-05-052017-07-12 adminBash shell script, Linux

Loading

測試環境為 Ubuntu 16.04 x64 $() , ${} , $(()) 這幾個的用法差別是?? $() ( ) 代表 子 shell 的起始與結束. $ 表示變數字元. $(指令) 代表運行命令並將其輸出 (process substitution) ,與 `指令` 是相同的用法. 直接執 […]

Read more

IPMI IOL (IPMI Over Lan)

2017-05-042017-07-05 adminBMC / IPMI, Linux

Loading

IPMI 有分成為 Inband 與 Outband,主要的區分為: Inband (In-Band) Console Redirection (就是透過 serial port 也就是一般所說的 comport,還可以透過另外一種 outband – serial over LAN 來 […]

Read more

IPMI SOL (Serial Over Lan)

2017-05-032018-06-29 adminBMC / IPMI, Linux

Loading

關於 IPMI 的基礎概念請參考 https://benjr.tw/11240 IPMI 有分成為 Inband 與 Outband,主要的區分為: Inband (In-Band) Console Redirection (就是透過 serial port 也就是一般所說的 comport,還可以 […]

Read more

Bash Shell Script – 變數 測試 , 替換

2017-04-282017-07-12 adminBash shell script, Linux

Loading

測試環境為 Ubuntu 16.04 x64 – 用來判斷變數是否存在,不存在則由後面字串來取代. 變數 Name 已經設定過為 Ben,所以不會被取代. 變數 Name 已經設定過為空字串,所以不會被取代. 變數 Names 沒有設定過,所以會被取代. :- 用來判斷變數是否存在,不存 […]

Read more

文章導覽

較舊的文章
較新的文章

近期文章

  • Windows – Network Sharing + Port forwarding to VM
  • Ansible – gather facts
  • Ansible – host_vars 定義特定的變量
  • Ansible 範例 – Chrony daemon
  • Ubuntu NTP Client 校時設定

近期留言

  • 「Jackson2734」於〈Ubuntu NTP Client 校時設定〉發佈留言
  • 「w」於〈Ubuntu 16.04 Server PXE 安裝〉發佈留言
  • 「admin」於〈TCP/IP 常見封包〉發佈留言
  • 「stu」於〈TCP/IP 常見封包〉發佈留言
  • 「student」於〈Linux command – tcpdump〉發佈留言

分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
  • Privacy Policy
  • 隱私權政策
Powered by WordPress | Theme: Astrid by aThemes.