Skip to content

Instantly share code, notes, and snippets.

@urbansky urbansky/commands
Last active Apr 12, 2017

Embed
What would you like to do?
Misc linux commands
# All open port with bounded program
netstat -lntu
# Extract
tar -xzf archiv.tar.gz -C /PFAD/ZUM/ORDNER
# Create
tar -czf archiv.tar.gz
# Mysql - Dump Database
mysqldump --opt -p -u root databaseName > out.sql
# Mysql - Import one Database from dump
mysql -u root -p --database=databaseName < out.sql
# SSH-Tunnel for remote MySQL-Database
ssh user@host -L 3333:localhost:3306 -N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.