|
ru en
|
|||
SSH — access and program setupContents1. General information 4.1. Help
4.2. Moving along file system 4.3. Viewing directory contents 4.4. Creation and deletion of files and directories 4.5. Viewing and editing file contents 4.6. Copying and moving files 4.7. Changing access rights 4.8. Processes management 4.9. Work with archives 4.10. Files search SSH (Secure SHell) — is a network protocol enabling connection with the remote server and running commands on it, uploading files and creating tunneling of TCP connections. The key feature is encryption of the transmitted data. By default, command interpreter bash is implemented on hosting. The information for connection to server through SSH and SFTP can be viewed at "Web server" — "Access management" — "SSH" of the control panel (https://www.r01.ru, section "Account manager").
For connection to the hosting server via SSH, install ssh-client on your computer.
To upload files on hosting use SFTP client.
3. Working with hosting using Midnight Commander Midnight Commander is a two-panel file manager. It has a built-in text editor. To run Midnight Commander connect to hosting via SSH and enter command
Basic hot keys:
4. Work with hosting from command line To get help about command of interest in command line enter:
to finish work with the help click on "q". The brief note about the command may be received by running it with setting --help or -h:
Display current directory:
Go to user home directory:
Go to tmp directory located in the current directory:
Go to directory by full path /home/login/sitename.ru/docs (root directory of website name.ru):
Go to parent directory (on a higher level):
Go to previous directory:
4.3. Viewing directory contents Display contents of the current directory (except for hidden files):
Display all contents of the current directory with the detailed information:
Display all contents of tmp directory with the detailed information:
Display size of tmp directory:
4.4. Creation and deletion of files and directories Create new directory foo in the current directory:
Create structure of directories foo/bar/baz in the current directory:
Delete directory foo in the current directory. The directory shall be empty:
Delete directory foo with all files and subdirectories:
Create blank file foo:
Delete file foo:
4.5. Viewing and editing file contents View the contents of the text file (log-file of the website) (Click "q" to exit):
Open file foo in text editor:
Copy file foo into file bar:
Copy the contents of directory "old" into directory "new":
Rename file foo to file bar:
Move file foo to existing directory bar under baz name:
Recommended access rights on hosting for files 644 (rw-rw-rw-), for directories 755 (rwxr-xr-x). Make file foo executable:
Make file foo read-only:
Changing access rights for all directories, contained in directory foo on 755:
Changing access rights for all directories, contained in directory foo on 644:
Show information about processes in real time (Press "q" to exit):
Show detailed information about all processes in progress:
Finish process work by its process identifier (PID) 1234:
Finish process work by its name:
Restart Apache server::
Restart Nginx server:
Create archive of docs directory:
Unpack archive.tar.gz:
Unpack archive.zip:
Unpack archive.rar:
Unpack archive.gz:
Among website files find those containing text "login.mysql" (server address to access database):
Find in the current directory and subdirectories files index.php:
|
||||
Copyright © 2000-2024 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) |