The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

   Votes:  7β€…
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/896957 ID: /2017/03/26/
Created: March 26, 2017
Upload: January 1, 2025    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


If I understand your question correctly you want to use:

echo "hello" > ~/Desktop/new_file.txt && echo "world" >> ~/Desktop/new_file.txt

Then to check the results use cat ~/Desktop/new_file.txt which shows:

hello
world

There’s a shorter way of doing this but I’m kind of new to Linux myself.

⇧ How to make zenity "transient parent" warning disappear permanently How can I "diff" two files with Nautilus?  β‡©