https://github.com/xmbgit/scripts
Scripts I use on my Ubuntu Server. Add to your path for highest utility.
https://github.com/xmbgit/scripts
bash-script linux scripts shell shell-script ubuntu ubuntu-server
Last synced: 3 months ago
JSON representation
Scripts I use on my Ubuntu Server. Add to your path for highest utility.
- Host: GitHub
- URL: https://github.com/xmbgit/scripts
- Owner: xmbgit
- Created: 2025-03-21T04:04:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-17T13:26:37.000Z (about 1 year ago)
- Last Synced: 2025-06-17T14:31:18.886Z (about 1 year ago)
- Topics: bash-script, linux, scripts, shell, shell-script, ubuntu, ubuntu-server
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scripts
This repository consists of scripts I use on my Ubuntu Server. Achitecture independent and used to automate many administrative tasks.
Feel free to use them as you wish. Some are incredibly complex, more are incredibly simple and useful.
To add these to your path use:
```bash
# Add ~/scripts to PATH if it exists
if [ -d "$HOME/scripts" ]; then
export PATH="$HOME/scripts:$PATH"
fi
```
The following only executes the encased commands if the shell is interactive. Otherwise, the `.bashrc` additions would interfere with non-interactive commands like `scp` and `rsync`
```bash
# If running interactively, execute the following commands
if [ -n "$PS1" ]; then
echo -e "\e[31mRed Text\e[0m"
echo -e "NOTICE: VIEW SCRIPTS WITH lscripts \n\e[31mSCRIPTS AVAILABLE ARE:\e[0m $(lscripts)\n"
echo "Today is $(date)"
echo "Welcome Home Master $(whoami)"
echo "Executing Bash RC"
fi
```