{"id":19810206,"url":"https://github.com/smtkanchana66/linux-bible","last_synced_at":"2026-05-08T13:17:10.585Z","repository":{"id":226434246,"uuid":"722128806","full_name":"smtkanchana66/Linux-Bible","owner":"smtkanchana66","description":"Welcome to the Linux Command Bible repository! This guide aims to be a comprehensive resource for learning and mastering Linux commands.","archived":false,"fork":false,"pushed_at":"2024-03-31T07:00:56.000Z","size":2144,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T06:46:19.616Z","etag":null,"topics":["bash","bash-script","bash-script-cheat-sheet","bash-scripting","cheat-sheets","command-line","command-line-tool","linux","linux-terminal","linuxcheatsheet","linuxcommand","linuxcommands","terminal","terminal-commands"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smtkanchana66.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-11-22T13:52:06.000Z","updated_at":"2025-01-04T18:54:23.000Z","dependencies_parsed_at":"2024-03-07T15:45:43.033Z","dependency_job_id":"b62836c0-d983-41e5-9a2e-5518010617f0","html_url":"https://github.com/smtkanchana66/Linux-Bible","commit_stats":null,"previous_names":["smtkanchana66/linux-bible"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smtkanchana66%2FLinux-Bible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smtkanchana66%2FLinux-Bible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smtkanchana66%2FLinux-Bible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smtkanchana66%2FLinux-Bible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smtkanchana66","download_url":"https://codeload.github.com/smtkanchana66/Linux-Bible/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241153542,"owners_count":19918820,"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","bash-script","bash-script-cheat-sheet","bash-scripting","cheat-sheets","command-line","command-line-tool","linux","linux-terminal","linuxcheatsheet","linuxcommand","linuxcommands","terminal","terminal-commands"],"created_at":"2024-11-12T09:19:50.033Z","updated_at":"2026-05-08T13:17:05.545Z","avatar_url":"https://github.com/smtkanchana66.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux Command Bible\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/smtkanchana66/Linux-Bible/blob/main/res/linux.png\" /\u003e\n\u003c/p\u003e\n\n\n\n# Table of Contents\n\n\n1. [Getting Started](#getting-started)\n2. [Basic Commands](#basic-commands)\n3. [Git command](#Git-command)\n4. [User Management](#User-Management)\n5. [System Maintenance](#System-Maintenance)\n6. [System Logs](#System-Log)\n7. [Process Management](#Process-Management)\n8. [Network Management](#Network-Management)\n9. [Filesystem Management](#Filesystem-Management)\n10. [Security](#Security)\n11. [Disk Management](#Disk-Management)\n12. [System Performance Monitoring](#System-Performance-Monitoring)\n13. [Software Package Management](#Software-Package-Management)\n14. [System Backup and Restore](#System-Backup-and-Restore)\n15. [System Maintenance and Updates](#System-Maintenance-and-Updates)\n16. [Network Configuration and Troubleshooting:](#Network-Configuration-and-Troubleshooting)\n17. [Security and Permissions](#Security-and-Permissions)\n18. [System Monitoring and Resource Usage2](#System-Monitoring-and-Resource-Usage)\n19. [Advanced Process Management](#Advanced-Process-Management)\n\n\n11. [Contributing](#contributing)\n12. [License](#license)\n\n# Getting Started\n\nIf you're new to Linux, start here! This section will cover the basics, including how to access the command line and essential concepts.\n\n\n\n\n# Basic Commands\n\n#### Change Directory\n```bash\ncd [directory]\n```\n#### List Files\n```bash\nls\n```\n#### Make Directory\n```bash\nmkdir [directory_name]\n```\n#### Create a File\n```bash\ntouch [file_name]\n```\n#### Copy File\n```bash\ncp [source_file] [destination]\n```\n#### Move/Rename File\n```bash\nmv [old_name] [new_name]\n```\n#### Remove/Delete File\n```bash\nrm [file_name]\n```\n#### Open a File in a Text Editor (e.g., Nano):\n```bash\nnano [filename]\n```\n#### Open a File in a Text Editor (e.g., vi):\n```bash\nvi [filename]\n```\n\u003cbr\u003e\n\n\n\n\n# Git command\n\n#### Clone a Repository from GitHub:\n```bash\ngit clone https://github.com/username/repository.git\n```\n#### Check Git Status:\n```bash\ngit status\n```\n#### Stage your changes:\n```bash\ngit add README.md\n```\n#### Commit the changes:\n```bash\ngit commit -m \"Updated Linux Bible in README.md\"\n``` \n#### Push the changes to GitHub:\n```bash\ngit push origin master\n```\n\u003e [!IMPORTANT]\n\u003e If you're working on a branch other than master, replace it with the appropriate branch name.\n\u003e If this is your first time pushing to the repository, Git may prompt you to configure your username and email:\n```bash\ngit config --global user.email \"you@example.com\"\ngit config --global user.name \"Your Name\"\n```\n#### Check the status:\n```bash\ngit status\n```\n\u003cbr\u003e\n\n\n\n\n# System Administration\n\n#### Display System Information:\n```bash\nuname -a\n```\n#### View CPU Information:\n```bash\nlscpu\n```\n#### Check Memory Usage:\n```bash\nfree -m\n```\n#### Disk Space Usage:\n```bash\ndf -h\n```\n\u003cbr\u003e\n\n\n\n# User Management \n\n#### Add a User:\n```bash\nsudo adduser username\n```\n#### Add a User to the sudo Group:\n```bash\nsudo usermod -aG sudo username\n```\n#### Change User Password:\n```bash\npasswd username\n```\n#### Delete a User:\n``` bash\nsudo deluser username\n```\n\u003cbr\u003e\n\n\n\n# System Maintenance\n\n#### Update Package Lists:\n```bash\nsudo apt update\n```\n#### Upgrade Installed Packages:\n```bash\nsudo apt upgrade\n```\n#### Install a New Package:\n```bash\nsudo apt install packagename\n```\n#### Restart the System:\n```bash\nsudo reboot\n```\n\u003cbr\u003e\n\n\n\n\n# System Logs\n\n#### View System Logs:\n```bash\njournalctl\n```\n#### Check Last System Reboot Time:\n```bash\nlast reboot\n```\n\u003cbr\u003e\n\n\n\n# Process Management\n\n#### List Running Processes:\n```bash\nps aux\n```\n#### Kill a Process:\n```bash\nkill PID\n```\n#### Check System Load:\n```bash\nuptime\n```\n\n#### Monitor System Resources:\n```bash\ntop\n```\n\n\u003cbr\u003e\n\n\n\n\n# Network Management\n\n#### Display Network Configuration:\n```bash\nifconfig\n```\n#### Check Open Ports:\n```bash\nnetstat -tuln\n```\n#### Verify Connectivity:\n```bash\nping example.com\n```\n#### View Network Statistics:\n```bash\nnetstat -s\n```\n\u003cbr\u003e\n\n\n\n# Filesystem Management\n\n#### Check Filesystem Integrity:\n```bash\nfsck /dev/sda1\n```\n#### Find Large Files:\n```bash\nfind / -type f -size +100M\n```\n\u003e [!NOTE]\n\u003eSearches for files larger than 100 megabytes on the system.\n\u003cbr\u003e\n\n\n\n\n# Security\n\n#### Update Security Packages:\n```bash\nsudo apt-get install unattended-upgrades\n```\n```bash\nsudo dpkg-reconfigure --priority=low unattended-upgrades\n```\n#### Check for Rootkits:\n```bash\nrkhunter --check\n```\n#### Firewall Configuration (using UFW):\n```bash\nsudo ufw status\n```\n```bash\n    sudo ufw allow 22\n```\n```bash\nsudo ufw enable\n```\n\u003e [!NOTE]\n\u003eChecks the firewall status, allows SSH traffic, and enables the firewall.\n\u003cbr\u003e\n\n\n# System Information\n\n#### List USB Devices:\n```bash\nlsusb\n```\n#### Check PCI Devices:\n```bash\nlspci\n```\n\u003e [!NOTE]\n\u003eLists PCI devices connected to the system.\n\u003cbr\u003e\n\n# User and Group Management\n\n#### List All Users:\n```bash\ngetent passwd\n```\n\u003e [!NOTE]\n\u003eShows a list of all user accounts on the system.\n\n#### List All Groups:\n```bash\ngetent group\n```\n#### Change User's Primary Group:\n```bash\nusermod -g newgroup username\n```\n\u003cbr\u003e\n\n\n\n# Disk Management\n\n#### Check Disk I/O Statistics:\n```bash\niostat\n```\n#### View Filesystem Mount Points:**\n```bash\ndf -hT\n```\n\u003cbr\u003e\n\n\n\n# System Performance Monitoring\n\n#### Monitor CPU Usage (using `htop`)\n```bash\nsudo apt install htop\nhtop\n```\n\u003e [!NOTE]\n\u003eInteractive process viewer that provides a visual representation of CPU and memory usage.\n\n#### Check System Temperature (using `lm-sensors`)\n```bash\nsudo apt install lm-sensors\nsensors\n```\n\u003cbr\u003e\n\n\n\n# Software Package Management\n\n#### Search for a Package:\n```bash\napt search packagename\n```\n#### Remove Unused Dependencies:\n```bash\nsudo apt autoremove\n```\n\u003cbr\u003e\n\n\n\n# System Backup and Restore\n\n#### Create a System Backup (using `tar`):\n ```bash\n tar -cvzf backup.tar.gz /path/to/backup\n ```\n\n#### Restore from Backup:\n```bash\ntar -xvzf backup.tar.gz -C /path/to/restore\n```\n\u003cbr\u003e\n\n\n# System Maintenance and Updates\n\n#### Check for System Updates (using `apt`):\n```bash\nsudo apt update\n```\n\n### Clean Package Cache:\n```bash\nsudo apt clean\n```\n### Monitor System Logs (using `journalctl`):\n```bash\njournalctl -xe\n```\n\u003cbr\u003e\n\n\n    \n# Network Configuration and Troubleshooting\n\n#### Configure Network Interfaces:\n```bash\nsudo nano /etc/network/interfaces\n```\n#### DNS Troubleshooting (using `nslookup` or `dig`):\n```bash\nnslookup example.com\n```\nor\n```bash\ndig example.com\n```\n\u003cbr\u003e\n\n\n\n# Security and Permissions\n\n#### Check File Permissions:\n```bash\nls -l filename\n```\n\n#### Check System Security Updates (using `unattended-upgrades`):\n```bash\ncat /var/log/unattended-upgrades/unattended-upgrades.log\n```\n\u003cbr\u003e\n\n\n\n# System Monitoring and Resource Usage\n\n#### Check System Resource Usage (using `sar`):\n```bash\nsudo apt install sysstat\nsar -u\n```\n#### Monitor Disk Space Usage (using `du`):\n```bash\ndu -h\n```\n\u003cbr\u003e\n\n\n# Advanced Process Management\n\n#### Monitor Process Resources (using `pidstat`):\n```bash\nsudo apt install sysstat\npidstat 1\n```\n#### Background Process Management (using `nohup`):\n```bash\nnohup command \u0026\n```\n\u003cbr\u003e\n\n\n# License\n\nThis Linux Command Bible is licensed under [Apache-2.0 license]. See the [LICENSE](LICENSE) file for details.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmtkanchana66%2Flinux-bible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmtkanchana66%2Flinux-bible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmtkanchana66%2Flinux-bible/lists"}