13,420
edits
Changes
→LINUX PRACTICE QUESTIONS
'''Review Questions:'''
'''PART A: WRITE BASH SHELL SCRIPT CODE'''
'''Write the answer to each question below the question in the space provided.'''
# Write a Bash shell script that clears the screen and displays the text Hello World on the screen.<br><br><br><br><br>What permissions are required to run this Bash shell script?<br><br><br>What are the different ways that you can run this Bash shell script from the command line?<br><br><br>
# Write a Bash shell script that will clear the screen and then display all arguments that were entered after your Bash shell script when it was run. Also have the Bash shell script display the number of arguments that were entered after your Bash shell script.<br><br><br><br><br><br><br><br>
'''PART B: WALK-THRUS'''
'''Write the expected output from running each of the following Bash shell scripts You can assume that these Bash shell script files have execute permissions. Show your work.'''
'''Walkthru #1:'''
'''cat walkthru1.bash'''
#!/usr/bin/bash
word1=”counter”
word2=”clockwise”
echo “The combined word is: $word2$word1”
WRITE OUTPUT FROM ISSUING:
'''./walkthru1.bash'''
Walkthru #2:
'''cat walkthru2.bash'''
#!/usr/bin/bash
echo “result1: $1”
echo “result2: $2”
echo “result3: $3”
echo “result 4:”
echo “$*”
WRITE OUTPUT FROM ISSUING:
'''./walkthru2.bash apple orange banana'''
[[Category:ULI101]]