Linux Command Basics

To interact with Linux through the command line, you need to use a Terminal. This is the window where you type your commands and see the output.

Opening the Terminal

The method to open a terminal varies by distribution, but common shortcuts include:

Anatomy of a Command

Most Linux commands follow a standard structure:

Structure: command -options arguments

Example: Using ls -l /home

Essential First Commands

1. clear

If your terminal screen gets too cluttered, use the clear command to wipe the screen clean.

Bash

clear

2. exit

To close the terminal session properly, you can type exit.

Bash

exit