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.
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
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
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
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 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
Send an email
Telephone support