Written 29 Aug 2026. This is a how-to, not a product card.
Put a short line into a file
After SSH works, put one short line into a file with echo so you don't need to open nano. You don't need a file manager for this.
Make an empty file makes a blank name. Edit a file from the couch opens the editor. Tonight you only need one short line on disk. echo prints those words, and the arrow next to it parks them in a file. You are still only writing a practice line in home. The computer does not need a desktop, a file manager, or a NAS for this one job.
Skip until SSH already works
SSH from the couch should already get you a prompt. If you only need an empty name with no words yet, that is make an empty file. If you need to change several lines, that is edit a file from the couch. If you only want to read a file that already has words, that is read a file without opening the editor. Skip this whole note if you only need a house share other computers browse. That is a folder the house can open.
What this is
echo prints a short line. The single arrow > puts that line into a file (and replaces whatever was there). The double arrow >> adds a line at the end. You run it on the computer, after SSH.
It does not open an editor, make an empty file, or dump a file you already have. Those jobs are nano, touch, and cat. One short line, same computer, parked in a file you named.
Write one line in home
SSH in. Put one short line into a practice file. A short name with no spaces is easier to type later:
echo 'hello from the computer' > ~/hello.txt
The tilde ~ is a short name for your home folder. Single quotes keep the words together. The single arrow > means put this into the file. If hello.txt already had words, they are gone. That is the whole first-night trick for a brand-new line.
Then peek without opening the editor:
cat ~/hello.txt
You should see that same short line. That is enough for tonight.
Useful extras, still writing only
Need a second line under the first? Use the double arrow so you don't wipe the first line:
echo 'second line' >> ~/hello.txt
cat ~/hello.txt
You should see both lines. The double arrow >> means add at the end.
Need the file empty again before a clean rewrite? That empty-file job is make an empty file, or rewrite with one echo and a single arrow.
Need a folder first? That is make a folder. Then keep the filename and drop the line inside:
echo 'hello from the computer' > ~/notes/hello.txt
If notes is missing, make it first. echo will not invent the folder for you.
If you see command not found, install the usual tools, then try again:
sudo apt install coreutils
Debian and Ubuntu Server usually already have it. That install is not a reason to buy a file manager.
When you are done practicing:
rm -i ~/hello.txt
What this is not
This is not an empty file with no words. That is make an empty file. It is not an editor for several lines. That is edit a file from the couch. It is not a dump of a file you already have. That is read a file without opening the editor.
What next
Need an empty name first? Make an empty file. Need to change several lines? Edit a file from the couch. Need a short dump after you write? Read a file without opening the editor.
Skip
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip
printenvas tonight's job. Printenv prints HOME and PATH, not echo: see HOME and PATH. - Skip
yesas tonight's job. Yes repeats a line: repeat a line until you stop. Echo prints once. - Skip pointing the single arrow at anything under
/etc, SSH settings, or a file you care about. Practice only in home tonight. A single arrow replaces the whole file. - Skip
nanoif one short line is enough. That editor job is edit a file from the couch. - Skip SSH settings,
/etc/shadow, and anything under/etc/ssh. Looking at trusted laptop keys is see which laptop keys the computer already trusts. - Skip buying a file manager, a “cloud IDE,” or a NAS to put one short line in a text file.
- Skip opening SSH to the internet so you can write files from a coffee shop. That is keep the computer on the house network.
Sources
Debian: echo. Ubuntu: echo. GNU coreutils: echo. Official pages only. For the login, see SSH from the couch. For an empty file, see make an empty file. For the editor, see edit a file from the couch. For a short dump, see read a file without opening the editor.