Skip to content

Commands cheatsheet

Here is a summary of the most useful commands to know when you use the terminal:

# List files and directories
ls

# Change directory
cd <directory>

# Print the working directory
pwd

# Create a directory
mkdir <directory>

# Remove a file
rm <file>

# Remove a directory
rm -r <directory>

# Copy a file
cp <source> <destination>

# Copy a directory
cp -r <source> <destination>

# Move a file
mv <source> <destination>

# Print the content of a file
cat <file>

# Print the content of a file with pagination
less <file>