File management

File management in the terminal covers the commands to create, copy, move and delete: mkdir creates a directory, touch an empty file, cp copies, mv moves or renames, rm deletes. rm is permanent, with no trash, and rm -r recursively deletes a directory.

Example

mkdir archives
cp rapport.txt archives/
mv ancien.txt nouveau.txt

Related concepts

The whole glossary