Linux notes
This commit is contained in:
@@ -108,6 +108,33 @@ tar -xzf yourfile.tar.gz
|
|||||||
```
|
```
|
||||||
|
|
||||||
### sync two dirs
|
### sync two dirs
|
||||||
```
|
```bash
|
||||||
unison /path/to/dir/one /path/to/dir/two
|
unison /path/to/dir/one /path/to/dir/two
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### useradd
|
||||||
|
```bash
|
||||||
|
useradd -m -s /bin/bash username
|
||||||
|
userdel -r username
|
||||||
|
```
|
||||||
|
|
||||||
|
### ssh disable password
|
||||||
|
https://askubuntu.com/questions/1516262/why-is-50-cloud-init-conf-created
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#/etc/ssh/sshd_config.d/00-only-pubkey-auth.conf
|
||||||
|
PasswordAuthentication no
|
||||||
|
ChallengeResponseAuthentication no
|
||||||
|
UsePam no
|
||||||
|
```
|
||||||
|
|
||||||
|
### Network speed monitor
|
||||||
|
```bash
|
||||||
|
slurm
|
||||||
|
```
|
||||||
|
|
||||||
|
### Pull submodules
|
||||||
|
```bash
|
||||||
|
git submodule update --init
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -59,5 +59,3 @@ Restart=always
|
|||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
```
|
```
|
||||||
|
|
||||||
## CALENDAR
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user