你的頁面標題

[myapp]

name = myapp

baseurl = http://download.rockylinux.org/pub/rocky/9/AppStream/x86_64/os

gpgcheck = 0

enabled = 1

   

[mybase]

name = mybase

baseurl = http://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os

gpgcheck = 0

enabled = 1


#!/bin/bash


2024/04/29 I am ???


= 1.讓使用者輸入一個數字,將這個數字帶給 num 變數


read -p Input 0~1000: num


num=${1}


if [ "$num" == "" ]; then


fi


echo "no number"


exit 2


check=$(echo "$num" | grep -v [0-9]')


if [ "$check" != "" ]; then


fi


echo "have non number"


exit 3


if [ "$num" -lt 10 -o "$num" -gt 1000 ]; then


fi


echo "number no good"


exit 4


time echo "scale=${num}; 4*a(1)" | bc -l


1. A. 文字终端/字符控制台 (Text Terminal/Console)

B. 控制台/終端機 (Console/Terminal)

C. 殼程式/命令行界面 (Shell/Command Line Interface)

D. cmd: 命令, --op1: 長選項, "para1": 選項參數, --op2: 長選項, para2: 選項參數

E. 列出系統支援的所有語系

2. A. (a)export LANG=en_US.utf8 (b)echo $LANG

B. date -d @16849

C. cal 02 2023 && date -d '2023-02-20' +%u

D. (a)date -d '2023-02-20' +%j (b)51

E. (a)date (b)date MMDDhhmm[[CC]YY][.ss]

3. A. 不需要

B. echo $HISTFILESIZE

C. man 5 group

D. man /dev/null

E. (a)find /etc -name "*shadow*" 2>/dev/null (b)依系統實際結果而定

4. A. /bin, /usr/bin

B. /dev, /sys

C. /etc

D. 核心模組

E. /usr/bin/mount; ./mount