Linux Command Line Basics

A beginner's guide to common Linux commands

1. Listing Files

ls

Lists files and directories.

2. Changing Directory

cd /path

Navigate between folders.

3. Viewing Files

cat file.txt

Outputs file contents.

4. Copy & Move

cp, mv, rm

Manipulate files and folders.

5. Permissions

chmod, chown

Manage access control.

6. Searching

grep, find

Search files or text.

7. System Info

top, df, free

Monitor system resources.

8. APT Commands

apt update, apt install

Install and update packages.

9. Create File

touch file.txt

Creates empty file.

10. Make Directory

mkdir folder

Creates new folder.

11. View Logs

tail -f /var/log/syslog

Live log output.

12. Networking Tools

ping, curl, ip a

Check network and HTTP.

13. Manage Users

adduser, usermod

Create and modify users.

14. Compress Files

tar -czf

Create compressed archives.

15. Define Aliases

alias ll='ls -la'

Create custom commands.

16. Help Pages

man command

Show built-in help for commands.