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

  • 7 months ago

    use >> append

    • Login to reply the answers
  • 7 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
      7 months agoReport

      Hahahaha, you are putting your breakfast in a file.

    • Login to reply the answers
  • Anonymous
    7 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

    • Login to reply the answers
Still have questions? Get your answers by asking now.