{"id":21447104,"url":"https://github.com/gongt/linux-toolbox","last_synced_at":"2026-04-17T15:02:54.485Z","repository":{"id":150765044,"uuid":"69497617","full_name":"GongT/linux-toolbox","owner":"GongT","description":"a set of useful commands on fedora linux","archived":false,"fork":false,"pushed_at":"2025-03-11T11:27:57.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T01:37:56.243Z","etag":null,"topics":["bash","fedora","linux"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GongT.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":"2016-09-28T19:40:29.000Z","updated_at":"2025-03-11T11:28:01.000Z","dependencies_parsed_at":"2024-09-07T01:37:57.572Z","dependency_job_id":null,"html_url":"https://github.com/GongT/linux-toolbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GongT%2Flinux-toolbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GongT%2Flinux-toolbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GongT%2Flinux-toolbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GongT%2Flinux-toolbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GongT","download_url":"https://codeload.github.com/GongT/linux-toolbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960449,"owners_count":20375101,"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","fedora","linux"],"created_at":"2024-11-23T03:08:54.107Z","updated_at":"2026-04-17T15:02:49.454Z","avatar_url":"https://github.com/GongT.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install\n```bash\ncd /path/you/like\ngit clone https://github.com/GongT/linux-toolbox.git\ncd linux-toolbox\nsudo bash ./install_environment.sh\n```\n\nWill load in new interactive BASH session.\n\n### Uninstall\n```bash\nrm -f /etc/profile.d/51-linux-toolbox.sh\nrm -f /etc/profile.d/50-environment.sh\nrm -f /etc/ssh/ssh_config.d/89-linux-toolbox.conf\nrm -f /etc/ssh/sshd_config.d/89-linux-toolbox.conf\nrm -rf /path/to/cloned/repo\n```\n\n# Commands\n* alias:\n  * `systemctl` \u0026 `journalctl` \u0026 `networkctl` | `service` with sudo\n  * `dnf` | `yum` | `apt` with sudo\n  * `suvi`: sudo vim\n  * `vi`: vim\n  * `gitsub`: git submodule foreach git\n  * `ls`, `l.`, `ll`, `la`: some list helper\n* environment variables:\n  * `$SSH_CLIENT_IP` if ssh\n  * `$DISPLAY` if ssh *(=$SSH_CLIENT_IP:0)*\n* commands:\n  * `auto_ssh`: unsafe set password in ssh commandline\n  * `center`: `echo` align center\n  * `cleanup-shell`: kill all child process of current bash\n  * `command_exists`: test if a command is exists or not\n  * `cru`: modify crontab\n  * `efi-install-grub2`: (re-)install grub2\n  * `efi-update-grup2`: update grub2 menu config\n  * `file-colors`: explain current `$LS_COLORS`\n  * `flush-kernal-cache`: write kernel file cache into disk\n  * `gits`: control all git repos in current directory (but not recursive)\n  * `hostsfile`: display or modify /etc/hosts\n  * `ip-ban`: (un-)ban ip with iptables\n  * `is-root`: return 0 if uid==0\n  * `is-ssh`: return 0 if from ssh\n  * `lnall`: create symlink of all files in a folder\n  * `lscolor`: print shell 256 color table\n  * `lscolor8`: print shell ansi color table\n  * `lsrpm`: list all installed rpms\n  * `remove-eta`: remove `eta(英国中部时间)` from yum on centos\n  * `reperm`: recursive chmod all files in current folder, folder set to 0755, file set to 0644 *(or 0755 by -x)*\n  * `scsi-rescan`: trigger rescan SATA devices\n  * `ssh-client-ip`: print ssh client ip, empty if not from ssh\n  * `sysinstall`: call system package manager with `install -y $@`\n  * `utf8`: return 0 if `$LANG` shows the terminal support display utf8\n  * `wget-cookie`: wget with save cookie option\n  * `who-am-i`: show terminal device of this shell\n* application related commands: (no such command if relate app did not installed)\n  * `dnf`:\n    * `dnf i`: dnf install -y ...\n    * `dnf s`: dnf list arg1\\* arg2\\* ...\n    * `dnf p`: dnf provides */bin/xxx /usr/lib64/yyy.so.1\n  * `docker`\n    * `dpss`: short `docker ps`\n    * `dps`: shortest `docker ps`\n    * `dmg`: short `docker image`\n  * `journalctl`:\n    * `logcat`: show newest 9000 log lines of services\n    * `logtail`: realtime follow log output of services\n  * `node.js`:\n    * `update-nodejs`: update latest (not LTS) nodejs into /usr/nodejs\n* source commands:\n  * `path-var`: display or modify \"$PATH\"\n  * `proxy`: handle HTTP_PROXY related thing\n  * `set-prompt`: set shell prompt string\n  * `set-window-title`: set terminal window title\n  * `set-window-title-callback`: set a command to generate window title *(run before everytime bash print prompt)*\n  * `docker clean`: remove stopped containers, delete images without tag\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgongt%2Flinux-toolbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgongt%2Flinux-toolbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgongt%2Flinux-toolbox/lists"}