{"id":28373487,"url":"https://github.com/dev-alamin/useful-linux-commands","last_synced_at":"2026-01-29T10:03:01.790Z","repository":{"id":287653690,"uuid":"965401534","full_name":"dev-alamin/useful-linux-commands","owner":"dev-alamin","description":"This repository contains a categorized and extensible list of Linux terminal commands for everyday use, system administration, server management, and development tasks.","archived":false,"fork":false,"pushed_at":"2025-04-13T04:46:26.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T10:37:45.534Z","etag":null,"topics":["cli","linux","shell","terminal"],"latest_commit_sha":null,"homepage":"","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/dev-alamin.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-04-13T04:42:15.000Z","updated_at":"2025-04-26T17:49:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"211a3c51-e2ea-4696-a745-c1a7a1361b67","html_url":"https://github.com/dev-alamin/useful-linux-commands","commit_stats":null,"previous_names":["dev-alamin/useful-linux-commands"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-alamin/useful-linux-commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-alamin%2Fuseful-linux-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-alamin%2Fuseful-linux-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-alamin%2Fuseful-linux-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-alamin%2Fuseful-linux-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-alamin","download_url":"https://codeload.github.com/dev-alamin/useful-linux-commands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-alamin%2Fuseful-linux-commands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28875446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T09:47:23.353Z","status":"ssl_error","status_checked_at":"2026-01-29T09:47:19.357Z","response_time":59,"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":["cli","linux","shell","terminal"],"created_at":"2025-05-29T19:39:26.991Z","updated_at":"2026-01-29T10:03:01.782Z","avatar_url":"https://github.com/dev-alamin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐧 Useful Linux Commands Cheat Sheet\n\nA categorized and extensible collection of essential Linux commands for developers, sysadmins, and power users. Perfect for quick reference and GitHub documentation.\n\n---\n\n## 📁 Directory \u0026 File Navigation\n\n| Command | Description |\n|---------|-------------|\n| `ls -la` | List all files and directories with permissions |\n| `cd /path/to/dir` | Change directory |\n| `pwd` | Show current directory path |\n| `tree` | Display directory tree structure |\n| `du -sh *` | Show human-readable size of each item in the current directory |\n| `find . -type f` | List all files recursively |\n| `find .` | List all files and directories recursively |\n| `find . \\| wc -l` | Count total files and directories (inodes used) |\n| `find . -type f \\| wc -l` | Count only files |\n| `find . -type d \\| wc -l` | Count only directories |\n\n---\n\n## 🧹 Disk \u0026 Inode Management\n\n| Command | Description |\n|---------|-------------|\n| `df -h` | Show disk space usage (human-readable) |\n| `du -sh` | Show size of the current folder |\n| `du -sh * \\| sort -h` | Show and sort all subfolders by size |\n| `ncdu` | Interactive disk usage analyzer |\n| `stat filename` | Show detailed info about a file |\n| `find . -type f -name '*.log' -delete` | Delete all `.log` files recursively |\n\n---\n\n## 🔒 Permissions \u0026 Ownership\n\n| Command | Description |\n|---------|-------------|\n| `chmod +x script.sh` | Make a script executable |\n| `chmod 755 file` | Set permissions (rwx for owner, rx for others) |\n| `chown user:group file` | Change file ownership |\n| `ls -l` | List files with permission and ownership info |\n\n---\n\n## 💻 SSH \u0026 Remote Access\n\n| Command | Description |\n|---------|-------------|\n| `ssh user@host` | Connect to a remote server |\n| `scp file.txt user@host:/path` | Copy file to a remote server |\n| `rsync -avz file/ user@host:/path/` | Sync files to remote (efficiently) |\n| `ssh-keygen` | Generate an SSH key pair |\n| `ssh-copy-id user@host` | Copy SSH key to remote server for passwordless login |\n\n---\n\n## ⚙️ Process \u0026 System Monitoring\n\n| Command | Description |\n|---------|-------------|\n| `top` | Display real-time system processes |\n| `htop` | Enhanced process viewer |\n| `ps aux \\| grep nginx` | Search for a process by name |\n| `kill -9 PID` | Force kill a process by PID |\n| `uptime` | Show how long the system has been running |\n| `free -h` | Show memory usage |\n| `vmstat` | Show system performance stats |\n\n---\n\n## 📦 Package Management\n\n### Debian/Ubuntu-based:\n\n| Command | Description |\n|---------|-------------|\n| `sudo apt update \u0026\u0026 sudo apt upgrade` | Update packages and OS |\n| `sudo apt install package` | Install a package |\n| `sudo apt remove package` | Remove a package |\n\n### RHEL/CentOS-based:\n\n| Command | Description |\n|---------|-------------|\n| `sudo yum update` | Update packages |\n| `sudo yum install package` | Install a package |\n| `sudo yum remove package` | Remove a package |\n\n---\n\n## 📂 File Compression\n\n| Command | Description |\n|---------|-------------|\n| `tar -czf archive.tar.gz folder/` | Create compressed archive |\n| `tar -xzf archive.tar.gz` | Extract archive |\n| `zip -r archive.zip folder/` | Create ZIP archive |\n| `unzip archive.zip` | Extract ZIP archive |\n\n---\n\n## 📝 Text Manipulation \u0026 Logs\n\n| Command | Description |\n|---------|-------------|\n| `cat file.txt` | View file content |\n| `head -n 20 file.txt` | First 20 lines of file |\n| `tail -n 20 file.txt` | Last 20 lines of file |\n| `tail -f /var/log/syslog` | Follow log file in real time |\n| `grep 'search' file.txt` | Search for text in file |\n| `sed -i 's/old/new/g' file.txt` | Replace text in file |\n| `wc -l file.txt` | Count lines in a file |\n\n---\n\n## 🔁 Networking \u0026 Utilities\n\n| Command | Description |\n|---------|-------------|\n| `ping domain.com` | Test network connectivity |\n| `curl -I https://example.com` | Get HTTP response headers |\n| `wget URL` | Download file from internet |\n| `netstat -tulpn` | Show listening ports and services |\n| `ss -tuln` | View open ports (modern netstat) |\n\n---\n\n## 🐚 Miscellaneous\n\n| Command | Description |\n|---------|-------------|\n| `history` | Show command history |\n| `alias ll='ls -la'` | Create an alias |\n| `crontab -e` | Edit user's cron jobs |\n| `whoami` | Show current user |\n| `hostname -I` | Show IP address of server |\n\n---\n\n✅ Keep updating this list as you explore more Linux tools and commands!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-alamin%2Fuseful-linux-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-alamin%2Fuseful-linux-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-alamin%2Fuseful-linux-commands/lists"}