Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions hello.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#!/bin/bash

#Author : Utrains
#Date : 01-Nov-2021
#Date created : 01-Nov-2021
#Date modified: 06-NOV-2022
## ---------- script that display hello world in the screen -----------------

## ---------- script that display hello word in the screen -----------------
echo "Hello World !"
#sleep 3
echo "Hello Desiree! How are you today?"
#sleep 3
echo "What can I do for you today?"
#sleep 3
pwd
#sleep 3
echo "Your kernel version is"
uname -r

echo "Yello Word !"
6 changes: 3 additions & 3 deletions if_statement_1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
#Author : Utrains
#Date : 01-Nov-2021

## ---------- If statement allow you to check specific condition -----------------
## ---------- If statement allows you to check specific conditions -----------------

# ------You can use tabulation ti indent your code for better visibility ------------
# ------You can use tabulation to indent your code for better visibility ------------
yum install finger -y
if [$? -eq 0] # --> this line check if the previous command work well
if [$? -eq 0] # --> this line check if the previous command works well
then
echo "Finger installed successfully"
else
Expand Down