Skip to content
Ivan Zugec

Ivan Zugec

Drupal Consultant

  • WebWash (Drupal tutorials)
  • Contact
  • Instagram
  • Twitter
  • LinkedIn
  • GitHub
  • YouTube

Tag: SSH

Using zip via ssh

$ zip -r drupal.zip html

This zips all files and directories.

  • -r:Includes all files and directories -> Files
  • drupal.zip:The zip file you want to create
  • html:The folder you are targetting or use * if your currently in the folder.
Author Ivan ZugecPosted on August 3, 2008February 25, 2017Categories Web DevelopmentTags Command line, SSH

Import sql via ssh

Here is an example of import sql files from ssh.

$ mysql -uUserHere -pPasswordHere -hlocalhost PutYourUserHere_databaseName < database.sql
$ mysql -u username -p dbname < data.sql
Author Ivan ZugecPosted on August 3, 2008February 25, 2017Categories Web DevelopmentTags Command line, SSH
  • LinkedIn
  • X
  • YouTube
  • Bluesky
  • GitHub
  • Twitch
  • TikTok

Recent Posts

  • Google Workspace CLI
  • Too much Video Data
  • Claude Code has new “Would you like to proceed?” Option
  • Got Access to Claude Cowork
  • AI Generated Ads

Archives

  • WebWash (Drupal tutorials)
  • Contact
  • Instagram
  • Twitter
  • LinkedIn
  • GitHub
  • YouTube
Ivan Zugec Proudly powered by WordPress