Flash Sale: Flat 75% + Addl. 15% Off + 30-days Extra Lab on self-paced Courses | Use Coupon FS15 in Checkout | Offer Expires In

  Enroll Now

Linux Basics

Redirecting the output of a program

The output of a program can be saved to a file:

    myprogram > myfile

If myfile does not exist, it will be created. If it exists it will be overwritten.

INSTRUCTIONS

Please follow these steps:

  1. Run the following command to save the output of echo to a file:

    echo "hello" > hello.out
    
  2. Append world to it:

    echo "world" >> hello.out
    
  3. Check by typing:

    cat hello.out
    

No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here