add tips in README.md

This commit is contained in:
TheK4n 2021-10-02 01:29:36 +03:00
parent 3a8d749ad6
commit f9accfe0f5

View File

@ -52,7 +52,6 @@ sftp host_name
``` ```
### White and black lists ### White and black lists
add white list to ```/etc/hosts.allow```: add white list to ```/etc/hosts.allow```:
@ -68,8 +67,6 @@ sshd: ALL
<a id="chapter-2"></a> <a id="chapter-2"></a>
## Tips ## Tips
```/command``` - without using alias
### Bash ### Bash
| Command | Description | | Command | Description |
|:------------------: | :------------------ | |:------------------: | :------------------ |
@ -77,6 +74,13 @@ sshd: ALL
|```Ctrl + r``` | Search by bash_history | |```Ctrl + r``` | Search by bash_history |
|```Ctrl + l``` | Clear, like command clear | |```Ctrl + l``` | Clear, like command clear |
```bash
ssh hosting 'rm -rf ~/BashConfig; git clone https://github.com/TheK4n/BashConfig && cp BashConfig/.bash* ~; rm -rf ~/BashConfig'
```
```$RANDOM``` - Return random 0-32767\
```/command``` - Without using alias\
```df -h /``` - Size
### Vim ### Vim
@ -86,15 +90,10 @@ sshd: ALL
|```d -> Ctrl + End``` | Delete from cursor to end of file | |```d -> Ctrl + End``` | Delete from cursor to end of file |
| ```u``` | Undo | | ```u``` | Undo |
| ```Ctrl + r``` | Redo | | ```Ctrl + r``` | Redo |
| ```22G``` | Go to line 22 | ```22G``` | Go to line 22 |
<p></p> <p></p>
#### Update .bashrc .bash_aliases by ssh
```bash
ssh hosting 'rm -rf ~/BashConfig; git clone https://github.com/TheK4n/BashConfig && cp BashConfig/.bash* ~; rm -rf ~/BashConfig'
```
### Autostart ### Autostart
* create ```/etc/systemd/system/<service>.service``` * create ```/etc/systemd/system/<service>.service```