Practical 1: Bash Commands
Each person will create a sequence of bash commands that does the following:
- Move to your home directory
- List the contents of your home directory
- Create a new directory called
foo
- Move into
foo
- Create a new text file in
foo
calledbar.txt
- Add the line “Hello BWSI 2019!” to the file
bar.txt
- Append the line “My name is __” to
bar.txt
- Display the contents of
bar.txt
- Move up one directory, create a hidden directory called
hoo
, and movebar.txt
into the hidden directoryhoo
- Delete
bar.txt
from directory.hoo
Run these commands in Terminal if possible.