Linuxlab

Files and directories

Files and directories are what you work with in the terminal every day. In this lesson you make a directory, create a file and a copy of it, move a file with a rename, and delete the leftovers by pattern. A handful of commands cover almost all the daily work with files.

You create every file yourself in your home directory. Each step is checked by the button.

What to understand

A file is a set of data under a name, for example a text or a picture.

A directory is a folder that holds files and other directories. That is where the tree comes from.

A pattern is * standing in for part of a name. *.tmp means 'any name that ends in .tmp'.

Steps

1. Make a dire

Free with account

Finish this lesson with a free account

This lesson is free once you sign in. Create an account to keep reading and open the lab.

Create a free account

Already have an account? Sign in