dotfiles/m/eg/.eg_custom/other.md

29 lines
567 B
Markdown
Raw Normal View History

2022-08-24 08:07:33 +00:00
Other Cheat Sheets
==================
## Using `less` instead of tail
```shell
less +F -R /path/to/logfile.log
```
* To scroll up and down, press `<ctrl>+c`
* Return to tail mode, press `F`
The `+F` says to follow? The `-R` will process any ANSII color codes.
## SSH Config File
```
# ~/.ssh/config
Host test
HostName testing.example.com
Port 22222
User joshua
IdentityFile ~/.ssh/test.example.com.key
```
Next, all you need to do to ssh into the server is `ssh test` and that's it.
> **NOTE** `HostName` may be an IP Address instead of a domain name