Preparation for SSH server remote connection.
Turn off all connected devices in the home network, turn on the server first, then turn on the client PC (Windows).
How to use Tera Term.
Click the client PC (Windows) icon to start Tera Term.
root login.
Enter su – (root login command) and click, then enter your root password.
If the line ends with “$”, you are logged in as a local user.
If the line ends with “#”, you are logged in as root (administrator).
[webmaster@www ~]$ su - password:
vi editor.
start up.
[root@www ~]# vi File name
To erase the characters, press “Back Space” to erase from the back.
Press “Esc” to switch to command mode.。
Quit without saving.
:q
:wq
Move directory.
Move.
[root@www ~]# cd Directory path
[root@www ~]# cd
file operations.
Copy.
[root@www ~]# cp -b Original file Destination file
[root@www ~]# mv Original file Destination file
[root@www ~]# rm File name
directory operations.
create.
[root@www ~]# mkdir Directory name
[root@www ~]# rm -r Directory name
change permissions.
Access rights (0 + Owner + Group +Others)
Owner | Group | Others | |
---|---|---|---|
Create/Delete | 7 | 7 | 7 |
Reading and Writing | 6 | 6 | 6 |
Execution | 5 | 5 | 5 |
Read only | 4 | 4 | 4 |
All prohibited
|
– | 0 | 0 |
[root@www ~]# chmod Access permission File name
system operation.
start up.
[root@www ~]# systemctl start Service name
[root@www ~]# systemctl restart Service name
[root@www ~]# systemctl stop Service name
[root@www ~]# systemctl reload Service name
[root@www ~]# systemctl enable サービス名
[root@www ~]# systemctl disable サービス名
server operations.
Restart.
[root@www ~]# reboot
[root@www ~]# hait
コメント