今回は、シェルスクリプトでhelloworldと表示します。

手順

1.CentOS81号機にログイン
2.Chronyのインストール
3.セキュリティ設定
4.動作確認

1.CentOS81号機にログイン

TeraTermで、CentOS1号機にrootでログインします。

2.helloworldのインストール

# シェルスクリプトの作成
[root@CE08PRDD104 tmp]# vi helloworld.sh
!/bin/bash
echo helloworld

# シェルスクリプトに実行権を付与する
[root@CE08PRDD104 tmp]# chmod +x helloworld.sh

# シェルスクリプトの実行
[root@CE08PRDD104 tmp]# . helloworld.sh
helloworld