{"id":28820258,"url":"https://github.com/codehariom/linux-command-line-cheat-sheet","last_synced_at":"2026-02-03T10:01:14.375Z","repository":{"id":298921408,"uuid":"1001524899","full_name":"codehariom/Linux-Command-Line-Cheat-Sheet","owner":"codehariom","description":"Ultimate Linux Command Line Cheat Sheet","archived":false,"fork":false,"pushed_at":"2025-06-13T15:27:45.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-13T16:44:53.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codehariom.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-13T14:27:29.000Z","updated_at":"2025-06-13T15:27:49.000Z","dependencies_parsed_at":"2025-06-13T16:44:56.821Z","dependency_job_id":null,"html_url":"https://github.com/codehariom/Linux-Command-Line-Cheat-Sheet","commit_stats":null,"previous_names":["codehariom/linux-command-line-cheat-sheet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codehariom/Linux-Command-Line-Cheat-Sheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehariom%2FLinux-Command-Line-Cheat-Sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehariom%2FLinux-Command-Line-Cheat-Sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehariom%2FLinux-Command-Line-Cheat-Sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehariom%2FLinux-Command-Line-Cheat-Sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codehariom","download_url":"https://codeload.github.com/codehariom/Linux-Command-Line-Cheat-Sheet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehariom%2FLinux-Command-Line-Cheat-Sheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29040721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T09:57:37.951Z","status":"ssl_error","status_checked_at":"2026-02-03T09:55:14.920Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-18T21:08:58.582Z","updated_at":"2026-02-03T10:01:14.365Z","avatar_url":"https://github.com/codehariom.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Ultimate Linux Command Line Cheat Sheet**  \n\nThis cheat sheet provides a **comprehensive** list of **essential Linux commands** for system administration, file management, networking, and more.  \n\n---\n\n## **📌 1. System Information**  \n| Command | Description |\n|---------|-------------|\n| `uname -a` | Show **all system information** (kernel, hostname, etc.) |\n| `uname -r` | Display **kernel version** |\n| `lsb_release -a` | Show **Linux distribution details** |\n| `uptime` | Display **system uptime \u0026 load average** |\n| `hostname` | Show **hostname** |\n| `hostname -I` | List **all IP addresses** |\n| `last reboot` | Show **reboot history** |\n| `date` | Display **current date \u0026 time** |\n| `cal` | Show **calendar** |\n| `w` | List **logged-in users \u0026 their processes** |\n| `whoami` | Show **current username** |\n\n---\n\n## **🖥️ 2. Hardware Information**  \n| Command | Description |\n|---------|-------------|\n| `cat /proc/cpuinfo` | Show **CPU details** |\n| `cat /proc/meminfo` | Display **memory information** |\n| `free -h` | Show **RAM usage** (human-readable) |\n| `lspci -tv` | List **PCI devices** (GPU, network cards, etc.) |\n| `lsusb -tv` | List **USB devices** |\n| `dmidecode` | Show **BIOS \u0026 hardware details** |\n| `hdparm -i /dev/sda` | Check **disk info** |\n| `hdparm -tT /dev/sda` | Test **disk read speed** |\n\n---\n\n## **📊 3. Performance Monitoring**  \n| Command | Description |\n|---------|-------------|\n| `top` | Interactive **process monitor** |\n| `htop` | Enhanced **process viewer** |\n| `mpstat 1` | Show **CPU stats** (per core) |\n| `vmstat 1` | Display **virtual memory stats** |\n| `iostat 1` | Monitor **disk I/O stats** |\n| `tcpdump -i eth0` | Capture **network traffic** |\n| `netstat -tuln` | List **open ports \u0026 services** |\n\n---\n\n## **👥 4. User Management**  \n| Command | Description |\n|---------|-------------|\n| `id` | Show **user \u0026 group IDs** |\n| `last` | View **login history** |\n| `who` | List **logged-in users** |\n| `useradd -m username` | **Create a new user** |\n| `userdel username` | **Delete a user** |\n| `usermod -aG groupname username` | **Add user to a group** |\n| `passwd username` | **Change user password** |\n\n---\n\n## **📂 5. File \u0026 Directory Commands**  \n| Command | Description |\n|---------|-------------|\n| `ls -al` | List **all files (including hidden)** |\n| `pwd` | Show **current directory** |\n| `mkdir dirname` | **Create a directory** |\n| `rmdir dirname` | **Remove a directory** |\n| `rm file` | **Delete a file** |\n| `rm -rf dirname` | **Force-delete a directory** |\n| `cp file1 file2` | **Copy a file** |\n| `cp -r dir1 dir2` | **Copy a directory** |\n| `mv file1 file2` | **Move/rename a file** |\n| `ln -s /path linkname` | **Create a symlink** |\n| `touch file` | **Create an empty file** |\n| `cat file` | **View file contents** |\n| `less file` | **View file page-by-page** |\n| `head -n 5 file` | Show **first 5 lines** |\n| `tail -f file` | **Follow file changes** |\n\n---\n\n## **🔍 6. Searching \u0026 Data Manipulation**  \n| Command | Description |\n|---------|-------------|\n| `grep \"text\" file` | **Search for text** in a file |\n| `grep -r \"text\" /dir` | **Recursively search** |\n| `find / -name \"*.log\"` | **Find files by name** |\n| `locate filename` | **Quick file search** (updatedb) |\n| `awk '{print $1}' file` | **Extract column** from text |\n| `sed 's/old/new/g' file` | **Replace text** in a file |\n| `sort file` | **Sort file contents** |\n| `diff file1 file2` | **Compare two files** |\n\n---\n\n## **⚙️ 7. Process Management**  \n| Command | Description |\n|---------|-------------|\n| `ps aux` | List **all running processes** |\n| `kill -9 PID` | **Force-kill a process** |\n| `killall processname` | **Kill all matching processes** |\n| `bg` | Send to **background** |\n| `fg` | Bring to **foreground** |\n| `nohup command \u0026` | Run **after logout** |\n\n---\n\n## **🔒 8. File Permissions**  \n| Permission | Meaning | Example |\n|-----------|---------|---------|\n| `chmod 755 file` | `rwxr-xr-x` (User: rwx, Group: r-x, Others: r-x) |\n| `chmod 644 file` | `rw-r--r--` (User: rw-, Group: r--, Others: r--) |\n| `chown user:group file` | **Change owner \u0026 group** |\n\n---\n\n## **🌐 9. Networking**  \n| Command | Description |\n|---------|-------------|\n| `ifconfig` | Show **network interfaces** |\n| `ping google.com` | **Test connectivity** |\n| `dig google.com` | **DNS lookup** |\n| `netstat -tuln` | List **open ports** |\n| `ssh user@host` | **Connect via SSH** |\n| `scp file user@host:/path` | **Secure file copy** |\n| `wget URL` | **Download a file** |\n| `curl URL` | **Fetch URL content** |\n\n---\n\n## **📦 10. Archives \u0026 Compression**  \n| Command | Description |\n|---------|-------------|\n| `tar -cvf archive.tar dir/` | **Create a tar archive** |\n| `tar -xvf archive.tar` | **Extract tar archive** |\n| `tar -czvf archive.tar.gz dir/` | **Compress with gzip** |\n| `tar -xzvf archive.tar.gz` | **Extract gzip archive** |\n| `zip archive.zip file` | **Create ZIP file** |\n| `unzip archive.zip` | **Extract ZIP file** |\n\n---\n\n## **📌 11. Package Management**  \n| Command | Description |\n|---------|-------------|\n| `apt update` | **Update package list** (Debian/Ubuntu) |\n| `apt install package` | **Install a package** |\n| `apt remove package` | **Remove a package** |\n| `yum install package` | **Install (RHEL/CentOS)** |\n| `dnf install package` | **Install (Fedora)** |\n| `rpm -i package.rpm` | **Install RPM package** |\n\n---\n\n## **💾 12. Disk Usage**  \n| Command | Description |\n|---------|-------------|\n| `df -h` | Show **disk space usage** |\n| `du -sh dir/` | **Directory size** |\n| `fdisk -l` | List **partitions** |\n| `mount /dev/sda1 /mnt` | **Mount a filesystem** |\n\n\n## **💾 13. File Editor**  \n| Command | Description |\n|---------|-------------|\n| `ex` | Show **basic editor** |\n| `vi` | **visual editor** |\n| `nano` |  **pico clone** |\n| `view` | **view file only** |\n\n\n---\n\n## **🚀 Bonus: Shortcuts \u0026 Tips**  \n- `Ctrl + C` → **Kill current process**  \n- `Ctrl + Z` → **Suspend process**  \n- `Ctrl + D` → **Exit terminal**  \n- `!!` → **Rerun last command**  \n- `history` → **View command history**  \n\n---\n\n### **📚 Conclusion**  \nThis cheat sheet covers **90% of daily Linux commands**. Bookmark it for quick reference!  \n\n🔹 **For more details:** Use `man command` (e.g., `man ls`) for full documentation.  \n\n## Folow for more [LinkedIn](https://www.linkedin.com/in/realhariom/) and [Github](github.com/codehariom/)\n\n### 🚀 Happy Coding Journey\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehariom%2Flinux-command-line-cheat-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodehariom%2Flinux-command-line-cheat-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehariom%2Flinux-command-line-cheat-sheet/lists"}