Home > tips

tips

Tips is a project mainly written in Python, it's free.

This tool helps you to retrieve the most useful linux commands

TIPS

Description

This tool helps you retrieve the most useful linux commands. This script performs a search through tags in a database.

Install

  1. Check Python 2.7 (python -V) or install it
  2. Copy tips.py and tips.sqlite in same directory
  3. [OPTIONAL] Open tips.py to configure it
  4. [OPTIONAL - RECOMMEND] Use "$ ln -s /path/to/tips/tips.py /usr/bin/tips" (as root) for comfortable execution (/bla/bla/bla/tips.py -> tips) !! WARNING: if you symlink tips.py, configure the -tipsdb- setting !!

Usage

From terminal: ./tips.py [TAG]

Search commands by keyword [TAG]

If [TAG] is 'all', you can retrieve all database commands.

Arguments

--help      Get Help!
--check     Check for program and database updates from GitHub (internet connection required)

Help

If you want add a command in database, send me a message on GitHub!!! NOW!

Currently the database covers the following executables (for a complete list: ./tips.py -all ) tar , zip, unzip, df, free, mount, umount, ps, grep, kill, w, top, whoami, logname, useradd, userdel, usermod, passwd, su, uname, watch, crontab, find, locate, whereis, traceroute, acl, rpm, netstat, setfacl, ssh, ssh-copy-id

Some examples (the most complex!): tar -zxvf file.tar.gz >> Untar tar.gz files tar -C /myfolder -zxvf file.tar.gz >> Untar tar.gz file in a specified directory du -h --max-depth=1 >> Disk usage (only subdir in current dir) du -h --max-depth=1 | sort -n >> Disk usage by size (only subdir in current dir) free -m >> Memory statistics (-m in Mega) free -m -s N >> Disk Free (-s continuously ad update every N seconds) usermod -a -G GROUP USER >> Add USER to GROUP passwd USER >> Change password of USER su - -c "COMMAND" >> Execute COMMAND by superuser uname -a >> Show current Kernel stats watch -n [S] COMMAND >> Execute COMMAND every S seconds crontab -u USER -e >> Show USER's crontab setfacl -R -m user:USERNAME:rwx DIRECTORY >> ACL: add USERNAME rwx permission to ACL list for DIRECTORY netstat -ant | grep PORT >> Get connections on PORT