Essential Linux Commands

Master the terminal with these powerful commands.

Browse Commands Explore Tools
$ ls -la
$ grep "error" log.txt
$ chmod +x script.sh
$ curl ifconfig.me
$ █

Common Linux Commands

ls

List directory contents.

ls -la

Show all files, including hidden, with details.

cd

Change directory.

cd /home/user

Move to /home/user.

pwd

Print working directory.

pwd

Shows current absolute path.

grep

Search text using patterns.

grep "error" syslog

Find lines containing "error" in syslog.

chmod

Change file permissions.

chmod +x script.sh

Make script.sh executable.

ssh

Secure Shell remote login.

ssh user@host

Connect to remote host.

curl

Transfer data (HTTP/HTTPS).

curl -O https://example.com/file

Download file.

sudo

Execute as superuser.

sudo apt update

Update package list (Debian).

df

Disk space usage.

df -h

Human-readable disk usage.

top

Process monitor (real-time).

top

View running processes.

nano

Simple text editor.

nano file.txt

Edit file.txt.

history

Show command history.

history | grep ssh

Find ssh commands used.