Add to server section

Create a ssh tunnel
Locate and remove a package
This commit is contained in:
onceupon 2017-12-12 10:55:08 +08:00 committed by GitHub
parent dab5b43c4f
commit 722c78f339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2248,7 +2248,19 @@ lvextend -L +130G /dev/rhel/root -r
```bash ```bash
sudo dd if=~/path/to/isofile.iso of=/dev/sdc1 oflag=direct bs=1048576 sudo dd if=~/path/to/isofile.iso of=/dev/sdc1 oflag=direct bs=1048576
``` ```
##### Locate and remove a package
```bash
sudo dpkg -l | grep <package_name>
sudo dpkg --purge <package_name>
```
##### Create a ssh tunnel
```bash
ssh -f -L 9000:targetservername:8088 root@192.168.14.72 -N
```
#-f: run in background; -L: Listen; -N: do nothing
#the 9000 of your computer is now connected to the 8088 port of the targetservername through 192.168.14.72
#so that you can see the content of targetservername:8088 by entering localhost:9000 from your browser.
=-=-=-=-=-A lot more coming!! =-=-=-=-=-=-=-=-=-=waitwait-=-=-=-=-=-=-=-=-=- =-=-=-=-=-A lot more coming!! =-=-=-=-=-=-=-=-=-=waitwait-=-=-=-=-=-=-=-=-=-