https://github.com/acbrandao/scripts
Shell scripts & ffmpeg mostly for Linux systems . Shell code snippets for everyday tasks
https://github.com/acbrandao/scripts
bash-script scripting
Last synced: about 1 year ago
JSON representation
Shell scripts & ffmpeg mostly for Linux systems . Shell code snippets for everyday tasks
- Host: GitHub
- URL: https://github.com/acbrandao/scripts
- Owner: acbrandao
- Created: 2018-02-19T17:41:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-16T03:05:10.000Z (over 4 years ago)
- Last Synced: 2025-04-13T01:08:03.494Z (about 1 year ago)
- Topics: bash-script, scripting
- Language: Shell
- Homepage: http://www.abrandao.com/category/software/
- Size: 72.3 KB
- Stars: 6
- Watchers: 0
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Various Shell Scripts : bash etc...
Shell scripts mostly for Linux systems . This is where I will keep utility SNIPPETS and shell scripts that I find useful and will serve as a reference library.
Most of the scripts are pretty short and self-explanatory.
# Simple one / two line shell scripts that may be usefull
- Get directory listing with filesize in human readable format
``` du -shc uploads/2019/* ```
- Find largest file in a directory recursively
``` sudo du -ah /dir_name/ | sort -n -r | head -n 20 ```
# Running
Simply chmod +x and run them form a linux command line
# Scripts and Descriptions
| Script Name | Description |
|---|---|
| apache_logs.sh | Reads Apache Log files and displays basic stats like top popular pages, hits bu IP etc. |
| curl_site_change.sh | Issues a curl command -> md5 hashes results and runs a diff to compare for changes |
| email_attach_cli.sh | Creates an email and ataches file from command line |
| open_ports.sh | simple open port scanner using nc |
| sync_folders.sh | rsync two folders between two different servers |
| zipfolder_sendemail.sh | zips up a folder and sends it as an email attachment |
| | |
| | |
| | |