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
foocalledbar.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.txtinto the hidden directoryhoo - Delete
bar.txtfrom directory.hoo
Run these commands in Terminal if possible.