Help on basic commands at working with SSH protocol
  ru en
Help
Print version

Help on basic commands at working with SSH protocol

SSH access service is not provided at all price plans.

In some cases you can enable SSH access individually from Plesk control panel ("Installation" menu of the selected domain hosting).

Besides, the service can be enabled at a separate request from the contact e-mail to support@r01.ru address (agreement number and domain name under hosting service shall be indicated).

For SSH connection to the hosting server it is possible to use, e.g., PuTTY — a free telnet/ssh client.

Some Unix commands:

Commands for working with folders and files.

  • mc — start Midnight Commander file manager.
  • ls –  display a list of your files and folders
  • ls -al – display a formatted list with hidden directories and files
    E.g.:
    ls -al
    -rw-r--r-- 1 user usergroup 17 Dec 23 10:05 index.php

    In this example:
      -rw-r--r-- — rights
      user — user login
      usergroup – group which the user belongs to.
  • cd dir – change directory to dir
  • pwd – show current directory
  • mkdir dir – make a new directory
  • rm file – remove a file
  • rm -r dir – remove directories
  • du -h --max-depth 1 ./ — display the size of each folder.
  • du -s — display the total size only.
  • chmod 755 filename — change 755 permissions for the filename.

Search commands

  • grep 'text' filename — look for the text in the file (filename).
  • grep 'text' filename /* — look for the text in the file (filename).

Commands for working with the archives

  • tar -zxf arch.tgz — extract the file into the current directory.
  • tar -zcf arch.tgz filename — create an archive; it is possible to indicate the directory name instead of the filename, then it will also be archived. The archive is created in the current directory.

Commands for working with MySQL databases

  • mysqldump -h<host> -u<username> -p [--default-character-set=<dbcharset>] <dbname> > dump.sql/ — perform the database dump with the default encoding by using login. The password will be requested from the command line, the dump will be placed into dump.sql file
  • cat dump.sql |mysql -h<host> -u<username> -p<password> [--default-character-set=<dbcharset>] -D<dbname> - restore the database dump from dump.sql file with the default encoding by using login mysql -u -p -D — connection to the database with login in interactive mode
Copyright © 2000-2025 Registrar R01
Information: info@r01.ru
Support: support@r01.ru
Office: 1 Bolshoy Gnezdnikovsky Lane, building 2, Moscow (Tverskaya metro station, entrance No. 9, Voznesensky business center)