Skip to content

Instantly share code, notes, and snippets.

@techticdev
Last active January 1, 2016 10:03
Show Gist options
  • Select an option

  • Save techticdev/8d0c198ab7fa2a7ec9a8 to your computer and use it in GitHub Desktop.

Select an option

Save techticdev/8d0c198ab7fa2a7ec9a8 to your computer and use it in GitHub Desktop.
SSH Commands on Putty
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
@techticdev
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment