Skip to main content
$Training4Linux
  • Learning paths
  • Start here
  • Reference
  • My learning
  1. Home
  2. File & Directory Management

File & Directory Management

Copy, move, search and archive files and directories.

Networking & DNS 6 Mail Servers (Exim, Postfix) 6 File & Directory Management 16 Permissions & Ownership 6 Process & Job Management 6 Package Management 9 User & Group Management 8 System Monitoring & Logs 6 Text Processing & Editors 6 Disk & Storage 6 Systemd & Services 6 Firewall & Security 6 Shell & Environment Basics 8 System & Hardware Info 6 Scheduling & Automation 4 Archiving & Compression 6 Remote Access & File Transfer 5

16 commands in this section.

cat Beginner

Print file contents to the screen, or join files together.

cat [options] file...
cp Beginner

Copy files and directories.

cp [options] source destination
diff Intermediate

Compare two files line by line.

diff [options] file1 file2
find Intermediate

Search for files matching complex criteria.

find [path] [expression]
head Beginner

Show the first lines of a file.

head [options] file
ln Intermediate

Create hard or symbolic links between files.

ln [options] target link_name
ls Beginner

List directory contents.

ls [options] [path]
mkdir Beginner

Create a new directory.

mkdir [options] directory
mv Beginner

Move or rename files and directories.

mv [options] source destination
rm Beginner

Remove files and directories.

rm [options] file
rsync Intermediate

Efficiently synchronise files locally or over SSH.

rsync [options] source destination
stat Intermediate

Display detailed file or filesystem status.

stat [options] file
tail Beginner

Show the last lines of a file, optionally following new additions.

tail [options] file
tar Beginner

Create and extract archive files.

tar [options] archive-file [files...]
touch Beginner

Create an empty file, or update a file's timestamp.

touch [options] file
wc Beginner

Count lines, words and bytes in a file.

wc [options] file
$Training4Linux

Build practical Linux confidence, one useful skill at a time. Structured lessons, your own lab and a reference that stays close.

Build your skills

  • Learning paths
  • Set up your lab
  • My learning & privacy

Find an answer

  • Command reference
  • Browse distributions
  • Search lessons & commands
  • About Training4Linux
© 2026 Training4Linux.co.uk · Learn with purpose. Practise with care.