Useful commands

Some useful commands for bash shell

Display a summary of the current system status
$ landscape-sysinfo
Source: landacape-sysinfo man

Routing table: delete (duplicate) routes from Linux
$ route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.1 0.0.0.0 UG 0 0 0 eth0
$ sudo route del -net 0.0.0.0 gw 192.168.178.1 netmask 0.0.0.0 dev eth0

VPN: opening a VPN session with SSH
$ ssh -ND <local_port_#> user@domain -p <remote_ssh_port>
Open browser (Firefox) network settings.
– select “(x) Manual proxy configuration”
– in “SOCKS Host”, insert “127.0.0.1” into text-box
– in “Port”, insert <local_port_#> into text_box
– select “(x) SOKS v5”
*** Prompt will be locked, keep session alive during VPN communication
*** Undo browser configuration before close it !!!

Sidebar