networking

So I’m often getting asked how to set up simple networking from the command line.

This drives me nuts a simple google would get the answers!

But, now I can just point people here and save wasting my time.

STATIC The following presumes you are on a 192.168.1.n class C network with the gateway as 192.168.1.1

Linux

12345ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up route add default gw 192.168.1.1 echo "nameserver… Continue reading

This allows mounting of a remote file system over ssh. Ensure that theĀ sshfs package is installed.

1sshfs phillips321@torrenter.co.uk:/var/www /media/ssh -o allow_other

This command indentifies which process is running on which port. Displays pid and name.

1netstat -lnp