Is the # obligatory? Because it's not working in Kubuntu..
ROTFLMHO !!!
The # means that everything which follows is just a comment (i.e. for humans to explain to each other what the script file is doing), and so the computer ignores it. That's why nothing happens
Like most computer users now a days, I am so accustomed to GUI,. When I first started using Linux, I was so lost.
That's wierd, I was so accustomed to using the CLI at work on their supercomputers, that I got very frustrated with the GUIs in Windows when I finally got around to buying a PC.
Take a simple example. I want to setup the first network card with static IP address 10.0.0.4 and subnet mask 255.255.255.0, and the second network card with address 11.0.1.3 and subnet mask 255.255.224.0 and get the computer route between them.
linuxifconfig eth0 10.0.0.4 netmask 255.255.255.0 broadcast + -trailers up
ifconfig eth1 11.0.1.3 netmask 255.255.255.224 broadcast + -trailers up
ndd -set /dev/tcp ipforward=1
WindowsClick and drag to Control Panel. Now look for Network setup. Click that, find the network card, right click, drag down to properties, wait for another d**n GUI window to open, now find TCP/IP (why the h**l isn't it at the top of the list?), right click that and drag to properties, and another d**n window opens ....
For god's sake I could have setup 4 interfaces on linux by now.
... finally I get to type in the IP address and netmask. Now I can go setup the other interface, and I've got to bring up most of those d**n windows all over again.
Oh, and at the end of it all I find out that I've got to use some load of crap called ICS to make the machine act as a router and that only works if you make one of your interfaces have the address 192.168.0.1
OK - so you could call me a "rocket scientist" because I learnt linux on the supercomputers at work. But after 19 years working with linux I think its easier than windows for specialised stuff.
PS: My argument falls down when you lok at my laptop. I couldn't be arsed with finding and compiling all the drivers for linux, and as I only use to browse the web and send email, I just left Windows on it.