{"id":15051027,"url":"https://github.com/tim0n3/lazy-bash","last_synced_at":"2026-03-17T09:36:23.855Z","repository":{"id":217349820,"uuid":"743657934","full_name":"tim0n3/lazy-bash","owner":"tim0n3","description":"This is lazy-bash. I made this because I was tired to using the long commands required to administer linux systems. It's designed to be modular and extensible, making it simple for customizations to streamline common tasks","archived":false,"fork":false,"pushed_at":"2025-12-30T13:20:06.000Z","size":367,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T17:36:27.901Z","etag":null,"topics":["bash","bashrc-configs","bashrc-enhance","debian-linux"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tim0n3.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-15T17:51:42.000Z","updated_at":"2025-12-30T13:20:10.000Z","dependencies_parsed_at":"2024-03-05T12:25:21.321Z","dependency_job_id":"7e38476e-dbba-449d-89ea-1795a7e3ed4b","html_url":"https://github.com/tim0n3/lazy-bash","commit_stats":null,"previous_names":["tim0n3/lazy-bash"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tim0n3/lazy-bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim0n3%2Flazy-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim0n3%2Flazy-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim0n3%2Flazy-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim0n3%2Flazy-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tim0n3","download_url":"https://codeload.github.com/tim0n3/lazy-bash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim0n3%2Flazy-bash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30620748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T08:10:05.930Z","status":"ssl_error","status_checked_at":"2026-03-17T08:10:04.972Z","response_time":56,"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":["bash","bashrc-configs","bashrc-enhance","debian-linux"],"created_at":"2024-09-24T21:30:33.359Z","updated_at":"2026-03-17T09:36:23.824Z","avatar_url":"https://github.com/tim0n3.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lazy-bash\nThis is lazy-bash. I made this because I was tired of using the long commands required to administer linux systems. It's designed to be modular and extensible, making it simple for customizations to streamline common tasks\n\n  - [Features](#features)\n    - [Prompt Customization](#prompt-customization)\n    - [Aliases for Common Commands](#aliases-for-common-commands)\n    - [Network Administration Aliases](#network-administration-aliases)\n    - [System Information Aliases](#system-information-aliases)\n    - [Package Management Aliases](#package-management-aliases)\n    - [File Management Aliases](#file-management-aliases)\n    - [Archive Management Aliases](#archive-management-aliases)\n    - [Custom Functions](#custom-functions)\n    - [Logging and Analysis Commands](#logging-and-analysis-commands)\n    - [System Information Display on Shell Startup](#system-information-display-on-shell-startup)\n    - [Help Command](#help-command)\n  - [Installation](#installation)\n    - [Dependencies](#dependencies)\n    - [New method](#new-method)\n    - [Old method](#old-method)\n\n## Features\n\n### Prompt Customization\n- The prompt displays the current user, host, and working directory.\n- Colored prompt for better visibility.\n\n### Aliases for Common Commands\n- `ls` aliases for color-coded listing (`ls --color=auto`), detailed listing (`ll`), and showing all files (`la`).\n- Additional system administration aliases for package management (`update`, `install`, `remove`, `purge`, `autoremove`, `search`), editing `.bashrc` (`editbash`), and reloading `.bashrc` (`reloadbash`).\n\n### Network Administration Aliases\n- `ipinfo`: Shows public IP information.\n- `netstatl`: Lists all listening ports.\n\n### System Information Aliases\n- `cpuinfo`: Displays CPU information.\n- `meminfo`: Displays memory information.\n- `diskinfo`: Displays disk space information.\n\n### Package Management Aliases\n- `showpackages`: Shows installed packages.\n- `showfiles`: Shows files installed by a package.\n- `showsize`: Shows installed package sizes.\n- `upgrades`: Shows available package upgrades.\n- `fullupdate`: Upgrades packages, including kernel packages.\n\n### File Management Aliases\n- `filesearch`: Searches for files by name.\n- `bigfiles`: Lists the largest files in the current directory.\n- `showhidden`: Shows hidden files and directories.\n- `editfile`: Opens a text file for editing with Vim.\n\n### Archive Management Aliases\n- `extract`: Extracts files from a tar.gz archive.\n- `compress`: Creates a tar.gz archive.\n\n### Custom Functions\n- `restartservice`: Restarts a systemd service.\n- `startservice`: Starts a systemd service.\n- `stopservice`: Stops a systemd service.\n- `findfile`: Finds a file by name.\n\n### Logging and Analysis Commands\n- `viewsyslogs`: Views system logs.\n- `viewapplogs \u003capplication-name\u003e`: Views specific application logs.\n- `viewrebootlogs`: Views reboot logs.\n- `viewwarninglogs`: Views warning logs.\n- `viewerrorlogs`: Views error logs.\n- `viewauthlogs`: Views authentication logs.\n\n### System Information Display on Shell Startup\n- Displays system information including neofetch output, IP address, CPU load, uptime, and last reboot state when starting an interactive shell.\n\n### Help Command\n- `help`: Displays a comprehensive help message explaining all aliases and functions.\n\n## Installation\n\nBefore using the installation script, make sure you have the following dependencies installed:\n\n### Dependencies\n\n- **curl**: Used to download the customized `.bashrc` file from a GitHub raw link.\n- **neofetch**: Displays system information when starting an interactive shell.\n- **iptables**: Manages the netfilter firewall rules for IPv4.\n- **netstat**: Displays network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.\n- **gnuplot**: Generates system load graphs for the last 5, 10, and 15 minutes.\n\nEnsure these dependencies are installed using your system's package manager. For example, on a Debian-based system, you can install them using the following commands:\n\n```bash\nsudo apt-get install curl neofetch iptables net-tools gnuplot\n```\n\n## New method:\n\n- Ensure you are in your `$HOME` folder by typing `cd` and pressing `return`\n- Verify your location by then typing `pwd` and pressing `return`. It should show your current directory as `/home/\u003cyour_username\u003e`\n- Then proceed to run the following command.\n\n```bash\nbash \u003c(curl -sSL https://raw.githubusercontent.com/tim0n3/lazy-bash/main/binfiles/setup.sh)\n```\n\n## Old method\n\nAfter ensuring that all dependencies are installed, you can use the provided installation script:\n\nTo install this customized `.bashrc` configuration, you can paste the following script in your terminal or run it from a file:\n\n```bash\n#!/bin/bash\n\nfunction newbashrc() {\n    # GitHub raw link to the file you want to append\n    github_raw_link=\"https://raw.githubusercontent.com/tim0n3/lazy-bash/main/bashrc\"\n\n    # Local path to the .bashrc file\n    bashrc_path=\"$HOME/.bashrc\"\n\n    # Download the file from the GitHub raw link\n    content=$(curl -sSL \"$github_raw_link\")\n\n    # Check if the download was successful\n    if [ -n \"$content\" ]; then\n        # Append the contents to the .bashrc file\n        echo -e \"\\n# Appended from $github_raw_link\\n$content\" \u003e\u003e \"$bashrc_path\"\n        echo \"Contents appended to $bashrc_path\"\n    else\n        echo \"Failed to download the file from $github_raw_link\"\n    fi\n}\n\n# Run the installation script\nnewbashrc\n```\n\nFeel free to customize the aliases, functions, and settings to suit your preferences and workflow.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim0n3%2Flazy-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim0n3%2Flazy-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim0n3%2Flazy-bash/lists"}