Chapter 2 answers
Jump to navigation Jump to search
Revision as of 22:50, 29 March 2016 by Admin (Text replacement - "</source>" to "</syntaxhighlight>")
- Write a program that prints your favorite movie name. It should print director name on the next line.
#!/bin/bash echo "The Shawshank Redemption" echo "Frank Darabont"
- Write a shell script that prints out your name and waits for the user to press the [Enter] key before the script ends.
#!/bin/bash echo "Vivek Gite" read -p "Press [Enter] key to continue..." fakeEnterKey
- List 10 builtin and external commands.
- cd to /etc/init.d and view various system init scripts.
cd /etc/init.d ls vi ssh