Exercise (File Management)
- Log into Linux either directly to VM or through SSH
- Output the text 'Hello World' to command line using the echo command
- Create a file called 'hello.txt' containing the text 'Hello World' using the echo command
- Print the contents of the file out to the command line using the cat command
- Append the text 'Hello Again' to the 'hello.txt' file using the echo command
- Output the first line of the 'hello.txt' file to the command line using the head command
- Move the 'hello.txt' file to the myDocs directory using the mv command
- Create a copy of the 'hello.txt' file called 'hello-backup.txt' using the cp command
- Delete the 'hello.txt' file using the rm command
- Delete the myDocs directory using the rm command