Fantastic Support

What are the most important SSH commands?

Here you can find the most important SSH commands which can be used to use SSH via Terminal (Mac) or Putty (Windows).

A SSH access is available from the Premium 4.0 package.

Activate SSH access

Connect and Navigation

connect via SSH
ssh login@hostXX.checkdomain.de

Change to a specific directory
cd /htdocs/blog/...

One directory back
Display cd ..

Display directory content
ls -all

Editing (Files/Folders)

Create new empty file
touch filename

Create new directory
mkdir directory name

Edit file
pico filename
or
nano filename

Rename file/folder
mv filename-old filename-new

Move file
mv file name /htdocs/blog/

Move and rename a file
mv filename-old /htdocs/blog/new filename

 

Copy file/folder
cp filename /directory/filename

Delete file
rm File name

Recursively delete (including all subdirectories and files)
rm -r File name/folder name

Editing (MySQL database)

Exporting a database
mysqldump database name -uusername -p > filename.sql

Import a database
mysql database name -uusername -p < filename.sql

Connect to MySQL database
mysql -uUsername -p Database name

Upload/Download via SSH

The commands are executed locally (not connected via SSH)!

Upload a file
scp /localpath/test.txt login@hostXX.checkdomain.de: ~/htdocs/filename

Download a file
scp login@hostXX.checkdomain.de: ~/htdocs/test.txt /local path/filename

recursive upload/download
scp -r ....

Packing/Unpacking

Packing files/folders
tar cvzf filename.tar.gz filename/folder
or
zip file name/folder

Unpacking files/folders
tar xvzf filename.tar.gz
or
unzip filename

Was this article helpful?

Thank you very much for your review!

Thank you very much for your review!

You have already rated this item.

Thank you for your time.

Do you require assistance?

Support

Telephone support

Domains worldwide

Europe

  • .at
  • .ch
  • .de
  • .eu
  • .fr
  • .it
  • .nl
  • .uk
  • .es
  • .pl
  • .me
  • .li

Asia

  • .ae
  • .cn
  • .hk
  • .in
  • .io
  • .jp
  • .my
  • .la
  • .sg
  • .tw
  • .ps

Generic

  • .biz
  • .com
  • .info
  • .mobi
  • .net
  • .org
  • .travel
  • .xxx
  • .pro
  • .jobs
  • .name
  • .aero

New domain extensions

  • .online
  • .sale
  • .reise
  • .hotel
  • .xyz
  • .ruhr
  • .restaurant
  • .coupon
  • .video
  • .bayern
  • .berlin
  • .hamburg
  • .koeln
  • .london
  • .reisen
  • .saarland
  • .wien
  • .bio
  • .business
  • .events
  • .haus
  • .immo
  • .immobilien
  • .international
  • .versicherung

Companies that trust us

Other products you might be interested in

Webhosting
Concentrate fully on your project! Performance and security included.
Rankingoach
Optimize your Web site and achieve top rankings.
Website optimization
SSL Certificates
For your site, more safety protect yourself from hacker attacks.
Quickly protect