Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akyoto/sugoi

:wrench: Mini tools for Linux.
https://github.com/akyoto/sugoi

linux shell toolkit

Last synced: 3 months ago
JSON representation

:wrench: Mini tools for Linux.

Awesome Lists containing this project

README

        

# sugoi

Swiss army knife for linux.

## Installation

```shell
./sugoi install sugoi
```

Add `alias s='sugoi'` in your `.bash_aliases` for more awesomeness.

## Usage

```
~$ s
Commands:
addKeyToServer
blockPort
clearFirewall
cpu
cpuUsage
diskUsage
disks
downloadFromServer
freeMemory
help
install
ls
memory
memoryUsage
os
processCount
push
redirectPort
stats
tcp
tcpCount
tune
udp
udpCount
update
upgrade
uptime
usage
```

## Examples

### git add + git commit + git push

```shell
~$ s push "Changed some stuff"
```
I personally use `alias sp='sugoi push'` to type it even faster.

### Add SSH key to remote server
```shell
~$ s addKeyToServer [email protected]
```

Enables SSH auto-login for the specified server. Key needs to be stored in `~/.ssh/id_rsa.pub`.

### Download file from server

```shell
~$ s downloadFromServer [email protected] /home/admin/database.dat
```

Downloads starts instantaneously if you added your SSH key to the server.

### Redirect port

```shell
~$ s redirectPort 80 4000
~$ s redirectPort 443 4001
```

### Block a port

```shell
~$ s blockport 3000
```

### Clear firewall rules

```shell
~$ s clearFirewall
```

### Show resource usage

```shell
~$ s usage
CPU usage: 3%
Memory usage: 34%
Disk usage: 73%
```