Last active
May 8, 2020 12:10
-
-
Save urbansky/902aac43abe5a676e958120dd6a95ef8 to your computer and use it in GitHub Desktop.
Misc linux commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All open port with bounded program | |
netstat -tulpn | grep LISTEN | |
# 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