Creating and removing
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
Making things
mkdirmakes a directory;touchmakes an empty file:
mkdir notes
touch notes/todo.txt
- After these, you have a
notesfolder with an emptytodo.txtinside it.
Copying and moving
cpcopies a file;mvmoves (or renames) it:
cp hello.txt backup.txt
mv backup.txt notes/backup.txt
mv old newis also how you rename something — moving it to a new name.
Removing — carefully
rmremoves a file. To remove a folder and everything in it, add-r(recursive):
rm backup.txt
rm -r notes
- ⚠️ There is no recycle bin on the command line.
rmis permanent — always check before you delete.
Make a new folder called notes with mkdir notes. The check then lists the folder to confirm it appeared.
Click Run to see the output here.
Make a copy of hello.txt named backup.txt using cp.
Click Run to see the output here.