π Table of Contents
| π₯ Basic Features of Linux |
| βοΈ Unix vs Linux Comparison |
| π Popular Linux Distributions |
| ποΈ Layered Architecture of Linux |
| π§ How to Get a Linux System |
|
|
|
Created by: Linus Torvalds as a hobby project. First Release: August 25, 1991. |
|
- GNU Project: Richard Stallmanβs FSF initiated GNU to replace proprietary Unix.
- Linux + GNU: The Linux kernel combined with GNU tools created a complete OS.
- Linux Distros: Red Hat, Debian, and Ubuntu made Linux widely accessible.
- Servers & Data Centers: Linux dominates due to reliability, performance & cost-efficiency.
- Android: Based on the Linux kernel, it became the worldβs leading mobile OS.
- Git: Created by Linus Torvalds, revolutionizing version control.
- Cloud & IoT: Powers cloud computing, containerization (Docker, Kubernetes), and embedded systems.
- π₯οΈ Portable: Runs on different hardware platforms.
- π Open Source: Freely available source code.
- π₯ Multi-User: Supports multiple users simultaneously.
- π οΈ Shell: Command-line interface to interact with the system.
- π Security: Highly secure and stable.
| Feature | Unix | Linux |
|---|---|---|
| Cost | Proprietary (Paid) | Free & Open Source |
| Source Code | Closed | Open Source |
| Users | Mainly Enterprises | Individuals & Enterprises |
| Security | Secure | Highly Secure |
| Customizability | Limited | Highly Customizable |
| Distributions | Single (varies by vendor) | Ubuntu, Fedora, Debian, etc. |
- Red Hat Enterprise Linux (RHEL)
- Fedora Linux
- Debian Linux
- SUSE Enterprise Linux
- Ubuntu Linux
- Hardware Layer: Physical devices like CPU, RAM, HDD.
- Kernel Layer: Core component managing hardware resources.
- Shell Layer: Command-line interface between users and the kernel.
- User Layer: Applications and utilities that interact with the shell.
- Install directly on a Laptop or Desktop.
- Use a Virtual Machine (VMWare/VirtualBox).
- Provision a Linux VM on cloud platforms (AWS, Azure, GCP).
- Use a Docker Image for lightweight experimentation.
- Try an Online Linux Terminal for practice.
π Linux is Everywhere! Embrace Open Source! π§
- Basic Linux Commands
- File and Directory Operations
- View Files (Open/Read)
- File and Directory Management
- Advanced Usage
- Visuals & Examples
- Usage Tips
- Resources
- Contributing
A comprehensive cheat sheet of essential Linux commands to help you navigate, manage files, and perform administrative tasks easily!
man <command>: Show the manual of a specific command. (man cal)
pwd: Print the current working directory.cd <directoryname>: Change directory.
clear: Clear the terminal screen.
ls: List files in the current directory.cat <filename>: Display file content.less <filename>: View file content page by page. (Usespaceto scroll,qto quit)more <filename>: Similar tolessbut displays content in percentage. (Usespaceto scroll,qto quit)
head -<num_of_lines> <filename>: Show the first n lines of a file.tail -<num_of_lines> <filename>: Show the last n lines of a file.
touch <filename>: Create a new empty file.cat > <filename>: Create a file and start writing content.nano <filename>: Create/edit a file with the nano editor.vi <filename>: Create/edit a file with the vi editor.
rm <filename>: Remove a file.rm -rf <directoryname>: Remove a directory and its contents.
mkdir <directoryname>: Create a new directory.rmdir <directoryname>: Remove an empty directory.
sudo: Execute a command as another user (commonly root).chmod: Change the permissions of files or directories.chown: Change file owner and group.
π‘ Here's an example of using the
lscommand to list files in a directory:
$ ls
file1.txt file2.txt my_directory/
$ cat file1.txt
This is the content of file1.

