Last active
January 1, 2016 10:03
-
-
Save techticdev/8d0c198ab7fa2a7ec9a8 to your computer and use it in GitHub Desktop.
SSH Commands on Putty
This file contains hidden or 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
| Several commands used with putty help on command line | |
| <!-- putty list all files and directories on root or elsewhere // For example here user login is [email protected] --> | |
| <!-- no space between # and command --> | |
| [[email protected]]# ls | |
| <!-- Archive any directory and all its subdirectories and files --> | |
| [[email protected]]# zip -r foldername.zip foldername | |
| <!-- Unzip any directory and all its subdirectories and files --> | |
| [[email protected]]# unzip foldername.zip | |
| <!-- mysql dump - export // if not found in same directory, try check in server root directory --> | |
| mysqldump -u username -p dbname > exportdbname.sql | |
| <!-- Importing a MySQL database --> | |
| mysql -u USERNAME -p DATABASE < backup.sql | |
| <!-- To export single table from database --> | |
| mysqldump --user=username database_name tableName > tableName.sql | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source : http://www.kharmer.co.uk/blog/basic-shell-commands-for-putty/