{"id":26820169,"url":"https://github.com/timintech/essential-linux-commands","last_synced_at":"2025-03-30T06:28:50.131Z","repository":{"id":269742812,"uuid":"908328600","full_name":"TimInTech/Essential-Linux-Commands","owner":"TimInTech","description":"A collection of essential Linux commands and system administration guides for beginners and advanced users.","archived":false,"fork":false,"pushed_at":"2025-03-11T06:27:18.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T16:56:49.888Z","etag":null,"topics":["bash","debian","linux","linux-commands","linux-guide","linux-mint","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/TimInTech.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}},"created_at":"2024-12-25T18:48:52.000Z","updated_at":"2025-03-11T06:27:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"50500516-851e-426d-88a6-9b428900a22a","html_url":"https://github.com/TimInTech/Essential-Linux-Commands","commit_stats":null,"previous_names":["gummiflip/anleitungen-f-r-linux-systeme","timintech/anleitungen-f-r-linux-systeme","timintech/essential-linux-commands"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimInTech%2FEssential-Linux-Commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimInTech%2FEssential-Linux-Commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimInTech%2FEssential-Linux-Commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimInTech%2FEssential-Linux-Commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimInTech","download_url":"https://codeload.github.com/TimInTech/Essential-Linux-Commands/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285653,"owners_count":20752947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bash","debian","linux","linux-commands","linux-guide","linux-mint","terminal"],"created_at":"2025-03-30T06:28:49.417Z","updated_at":"2025-03-30T06:28:50.120Z","avatar_url":"https://github.com/TimInTech.png","language":null,"readme":"# 📖 Essential Linux System Commands \u0026 Guides\n\nWelcome to the **Essential Linux System Commands \u0026 Guides** repository! 🚀  \nThis repository contains an extensive collection of Linux commands for efficient system management, troubleshooting, and automation.\n\n## 📌 Features\n✅ Covers **system updates, disk management, software installation, networking, and cleanup tasks**  \n✅ Beginner-friendly with clear explanations and command examples  \n✅ Useful for **Sysadmins, DevOps, and Linux enthusiasts**  \n\n---\n\n## 🛠 Key Sections\n\n### 🔹 System Updates \u0026 Upgrades\nManage updates and keep your system secure.\n\n- **Update package lists:**\n  ```bash\n  sudo apt update\n  ```\n  This command refreshes the package lists, ensuring the system has the latest information about available updates.\n\n- **Upgrade all installed packages:**\n  ```bash\n  sudo apt upgrade -y\n  ```\n  Installs all available updates for the system. It is recommended to run this command regularly.\n\n- **Upgrade the distribution (if necessary):**\n  ```bash\n  sudo apt dist-upgrade\n  ```\n  This command upgrades the system and makes necessary changes to dependencies that a simple upgrade might not address.\n\n- **Manually install a `.deb` package:**\n  ```bash\n  sudo dpkg -i [filename.deb]\n  ```\n  Replace `[filename.deb]` with the actual file name. This command is used to install locally downloaded `.deb` packages.\n\n---\n\n### 🔹 Disk Management\n\n- **List attached drives:**\n  ```bash\n  lsblk\n  ```\n  Displays all available drives and partitions. Very useful for seeing which devices are connected.\n\n- **Check and repair a disk:**\n  ```bash\n  sudo fsck /dev/sdX\n  ```\n  Replace `sdX` with the drive name. This command checks the file system for errors and repairs them if possible.\n\n- **Check disk space usage:**\n  ```bash\n  df -h\n  ```\n  Displays available and used storage space on all drives in a human-readable format.\n\n---\n\n### 🔹 System Maintenance \u0026 Cleanup\n\n- **Remove unnecessary packages:**\n  ```bash\n  sudo apt autoremove\n  ```\n  Removes packages that are no longer needed, such as old kernel versions or libraries.\n\n- **Clean package cache:**\n  ```bash\n  sudo apt autoclean\n  ```\n  Deletes old package files that are no longer required.\n\n- **Clear all cached packages:**\n  ```bash\n  sudo apt clean\n  ```\n  Completely removes all stored package files from the cache.\n\n- **Delete old system logs:**\n  ```bash\n  sudo journalctl --vacuum-time=2weeks\n  ```\n  Removes logs older than two weeks to free up disk space.\n\n---\n\n### 🔹 Network Diagnostics\n\n- **Show IP addresses:**\n  ```bash\n  ip a\n  ```\n  Displays all active network adapters and their configurations.\n\n- **Perform a ping test:**\n  ```bash\n  ping google.com\n  ```\n  Checks the connection to a target address.\n\n- **Scan a network for devices using Nmap:**\n  ```bash\n  sudo apt install nmap\n  nmap 192.168.1.0/24\n  ```\n  Scans a network for active devices and open ports.\n\n- **Check route to a destination server:**\n  ```bash\n  sudo apt install traceroute\n  traceroute google.com\n  ```\n  Shows the path that network packets take to reach a remote host.\n\n---\n\n### 🔹 Software Installation\n\n- **Install a package using APT:**\n  ```bash\n  sudo apt install [package_name]\n  ```\n  Installs an application from the official repositories.\n\n- **Remove a package:**\n  ```bash\n  sudo apt remove [package_name]\n  ```\n  Uninstalls an application but keeps configuration files.\n\n- **Completely remove a package and its config files:**\n  ```bash\n  sudo apt purge [package_name]\n  ```\n\n- **Install Snap packages:**\n  ```bash\n  sudo snap install [package_name]\n  ```\n  Snap packages are universal and work on all Linux distributions.\n\n---\n\n### 🔹 Advanced System Tools\n\n- **Timeshift (System Backups):**\n  ```bash\n  sudo apt install timeshift\n  ```\n  Allows creating system snapshots for easy recovery.\n\n- **Htop (System Monitoring):**\n  ```bash\n  sudo apt install htop\n  ```\n  An interactive tool for monitoring system resources like CPU and memory usage.\n\n- **BleachBit (System Cleanup):**\n  ```bash\n  sudo apt install bleachbit\n  ```\n  Removes temporary files and frees up storage space.\n\n---\n\n## 📬 Contact\n💬 **Email:** gummiflip@outlook.de  \n🌍 **GitHub:** [TimInTech](https://github.com/TimInTech)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimintech%2Fessential-linux-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimintech%2Fessential-linux-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimintech%2Fessential-linux-commands/lists"}