Labthrift Labthrift What to buy. What to skip. Why.

Written 29 Aug 2026. This is a how-to, not a product card.

Delete a file carefully

After SSH works, delete one file with rm -i. The computer asks before it goes. Skip rm -rf. You don't need a NAS for this.

Rename or move a file keeps the bytes under a new name. Tonight the throwaway practice file can go away for real. rm is remove. One file, home folder, ask first. Useful after copy a file without leaving the computer left a spare you no longer want. The computer does not need a trash can app, a desktop, or a NAS for this one job.

Skip until SSH already works

SSH from the couch should already get you a prompt. If you want the file under a better name and still on disk, that is rename or move a file. If you want a second copy and the original to stay, that is copy a file without leaving the computer. If the file is still only on the laptop, that is copy a file to the computer from your laptop. 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

rm deletes a file. You run it on the computer, after SSH. The name is gone. There is no Recycle Bin on a typical server. That is why tonight we type rm -i. The -i means ask. It does not rename. That is mv. It does not leave a spare. That is cp. It does not talk to the laptop. That is scp. One path, same computer, file gone.

Make a throwaway, then delete it

SSH in. Make a practice file in home if you don't already have one:

echo 'delete me' > ~/delete-me.txt

See that it is there:

ls ~/delete-me.txt

Then ask before delete:

rm -i ~/delete-me.txt

The computer should ask something like remove regular file. Type y and Enter if that is the file you meant. Type n if it is not. Swap the name for yours. Practice in home. Skip anything under / or /etc.

See that it is gone

List home:

ls ~

You don't want delete-me.txt any more. Optional exact check:

ls ~/delete-me.txt

You want “No such file or directory.” That is success. The computer removed the file. It did not hide it in a trash folder.

Optional: one empty folder

Empty folders are a different tool. If you made a practice folder with make a folder and it is empty:

rmdir ~/notes-practice

rmdir only works when the folder has nothing inside. If it complains the directory is not empty, list it with see what's in a folder, move or delete the files first, then try again. Skip rm -rf. That flag can wipe a whole tree with no useful undo, and it is not tonight’s job.

What this is not

This is not a rename that keeps the bytes. That is rename or move a file. It is not a second copy. That is copy a file without leaving the computer. It is not a file from the laptop. That is copy a file to the computer from your laptop. It is not emptying the disk of old logs. That is clear old logs when the disk is tight. It is not a checked backup. That is a backup of the folder.

What next

Need a spare before you delete? Copy a file without leaving the computer. Need the name to change instead? Rename or move a file. Need the names again? See what's in a folder. Need a folder for practice files? Make a folder. Need to read a file without opening the editor? Read a file without opening the editor. Need to change a line first? Edit a file from the couch. Need a file from the laptop instead? Copy a file to the computer from your laptop. Tired of retyping the same long line? Reuse a command you already typed. When key login is boring on every computer you use, turn off password login once the key works. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.

Skip

Sources

GNU coreutils: rm invocation. Debian: rm. Ubuntu: rm. GNU coreutils: rmdir invocation. Official pages only. For the login, see SSH from the couch. For a rename that keeps the file, see rename or move a file. For a spare that keeps the original, see copy a file without leaving the computer. For listing names, see see what's in a folder. For making a folder, see make a folder.

Also on this topic

SSH from the couchType commands on the computer from your laptop, on the house network. Password login first. Don't open this to the internet. Rename or move a fileAfter SSH works, rename or move a file with mv so the name matches the job. The old name is gone. You don't need a NAS for this. Copy a file without leaving the computerAfter SSH works, copy a file with cp so you can edit a spare without wrecking the original. You don't need a NAS for this. Make a folderAfter SSH works, make a folder with mkdir so copies and edits have a place to land. You don't need a NAS for this. See what's in a folderAfter SSH works, list the folder you are sitting in with ls. You don't need a file manager app for this. Copy a file to the computer from your laptopAfter SSH works, use scp to move one file without a USB stick. A short name like lab makes the typing shorter. You don't need a NAS for this. Edit a file from the couchAfter SSH works, open a file with nano, change a line, and save. The keys at the bottom of the screen are the whole trick. You don't need a new editor. Reuse a command you already typedAfter SSH works, flip back through commands with the Up arrow or history. You don't need a notebook for the same long line twice. See if the computer still has roomAfter the house folder is working, check that the computer is not filling up. Photos stop copying when the disk is full. You don't need a NAS for this look. Turn off password login once the key worksAfter the laptop key login is boring, tell SSH to stop accepting the password. The key is how you get in. A keyboard on the computer is the backup now.