How to keep adding to a file in linux without erasing what i previously typed after using cat to view a file in linux?

used touch and cat basically

3 Answers

Relevance
  • 5 months ago

    use >> append

  • 5 months ago

    You can append to a file by using two greater than signs (>>).

    For example

    echo "cheese" >> file

    echo "eggs" >> file

    • Marvin
      Lv 7
      5 months agoReport

      Hahahaha, you are putting your breakfast in a file.

  • Anonymous
    5 months ago

    echo just google it, pretty easy to redirect to a file and then redirect with append... you CAN use google right? >> scormoobay_brain

Still have questions? Get your answers by asking now.