Menu
Coddy logo textTech

Recap - Log Builder

Part of the Fundamentals section of Coddy's Terminal journey — lesson 42 of 82.

challenge icon

Challenge

Easy

Build a simple activity log from scratch using multiple redirection techniques. Run these commands in order:

  1. Use echo with > to write Session started to a new file called activity.log
  2. Use echo with >> to append User logged in to activity.log
  3. Use echo with >> to append Task completed to activity.log
  4. Try to list a folder called invalid_path and redirect the error to activity.log using 2>>
  5. Use cat to display the final contents of activity.log

Try it yourself

Terminal

All lessons in Fundamentals