Creating and removing · Création et suppression
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Cette page nécessite un navigateur récent (avec support SharedArrayBuffer). Veuillez mettre à jour Chrome, Edge, Firefox ou Safari vers la dernière version.
English
Making things
mkdirmakes a directory;touchmakes an empty file:
- After these, you have a
notesfolder with an emptytodo.txtinside it.
Français
Créer des éléments
mkdircrée un répertoire ;touchcrée un fichier vide :
mkdir notes
touch notes/todo.txt
- Après cela, vous avez un dossier
notesavec un fichier videtodo.txtà l'intérieur.
English
Copying and moving
cpcopies a file;mvmoves (or renames) it:
mv old newis also how you rename something — moving it to a new name.
Français
Copier et déplacer
cpcopie un fichier ;mvle déplace (ou le renomme) :
cp hello.txt backup.txt
mv backup.txt notes/backup.txt
mv old newsert aussi à renommer quelque chose — en le déplaçant vers un nouveau nom.
English
Removing — carefully
rmremoves a file. To remove a folder and everything in it, add-r(recursive):
- ⚠️ There is no recycle bin on the command line.
rmis permanent — always check before you delete.
Français
Supprimer — avec précaution
rmsupprime un fichier. Pour supprimer un dossier et tout ce qu'il contient, ajoutez-r(récursif) :
rm backup.txt
rm -r notes
- ⚠️ Il n'y a pas de corbeille en ligne de commande.
rmest permanent — vérifiez toujours avant de supprimer.
English
Common mistakes
rmdeletes for good — there is no recycle bin.mkdirmakes a folder;rmdironly removes an empty one.
Français
Erreurs courantes
rmsupprime définitivement — il n'y a pas de corbeille.mkdircrée un dossier ;rmdirne supprime qu'un dossier vide.
Explore · Explorer
Folders and files · Dossiers et fichiers
mkdir / touch add to the tree; cd moves where you are. · mkdir / touch ajoutent à l'arbre ; cd déplace où vous êtes.
Make a new folder called notes with mkdir notes. The check then lists the folder to confirm it appeared. · Créez un nouveau dossier nommé notes avec mkdir notes. La vérification liste ensuite le dossier pour confirmer son apparition.
Make a copy of hello.txt named backup.txt using cp. · Faites une copie de hello.txt nommée backup.txt en utilisant cp.