Hands-on task
This task is step 4 of the course “First steps in Linux”
Write and append a line to a file
- Create the file
/root/hello.txtwith a single line:Hello, Linux - The file
/root/todo.txtalready lists two to-dos. Append a third line to the end:buy coffee. The first two lines must stay as they are.
You can copy the text of the lines straight from the task.
What you'll practise:
- echo
- redirection >
- appending >>
- quotes