项目作者: akyoto

项目描述 :
:wrench: Mini tools for Linux.
高级语言: Python
项目地址: git://github.com/akyoto/sugoi.git
创建时间: 2015-03-17T10:17:28Z
项目社区:https://github.com/akyoto/sugoi

开源协议:

下载


sugoi

Swiss army knife for linux.

Installation

  1. ./sugoi install sugoi

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

Usage

  1. ~$ s
  2. Commands:
  3. addKeyToServer
  4. blockPort
  5. clearFirewall
  6. cpu
  7. cpuUsage
  8. diskUsage
  9. disks
  10. downloadFromServer
  11. freeMemory
  12. help
  13. install
  14. ls
  15. memory
  16. memoryUsage
  17. os
  18. processCount
  19. push
  20. redirectPort
  21. stats
  22. tcp
  23. tcpCount
  24. tune
  25. udp
  26. udpCount
  27. update
  28. upgrade
  29. uptime
  30. usage

Examples

git add + git commit + git push

  1. ~$ s push "Changed some stuff"

I personally use alias sp='sugoi push' to type it even faster.

Add SSH key to remote server

  1. ~$ s addKeyToServer admin@github.com

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

Download file from server

  1. ~$ s downloadFromServer admin@github.com /home/admin/database.dat

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

Redirect port

  1. ~$ s redirectPort 80 4000
  2. ~$ s redirectPort 443 4001

Block a port

  1. ~$ s blockport 3000

Clear firewall rules

  1. ~$ s clearFirewall

Show resource usage

  1. ~$ s usage
  2. CPU usage: 3%
  3. Memory usage: 34%
  4. Disk usage: 73%