With the address space for IPv4 practically used up we must migrate to IPv6. I’m already seeing IPv6 type traffic at work and even at home; therefore, I wanted to get a grip on some of the command line tools offered to work with the new protocol. Earlier this week I started using ping6 and issued the following command:
ping6 fe80:0000:1234:5678:abcd:00ef
On Windows and Linux I recieved error messages because I did not specify which NIC to use. Also, I could have left out leading zeros and saved a few keystrokes. The corrected command is shown below:
ping6 fe80::1234:5678:abcd:ef%1 (for Windows)
ping6 fe80::1234:5678:abcd:ef%eth0 (for Linux)
Unix/Linux Shell
23
Aug 10
Coming to a Computer Near You: IPv6
10
May 10
Hello World Shell Script
Using the directions from http://www.freeos.com/guides/lsst/ch02sec01.html you can easily put together a quick ‘Hello World’ shell script. What’s shell? It is software that allows interaction between users and the OS (read more at http://en.wikipedia.org/wiki/Shell_(computing)). In general the commands you run at the command line are available to use in a shell script.
#
#Filename: hello.sh
#Programmer: PFP
#Birthdate: 2010-05-10
#Notes: Hello world script.
#
clear
echo "Hello World"
You can enter these few lines by using vi or any other editor on your Linux machine. Be sure to set the file as executable by running chmod 755 hello.sh from the command line. To execute the script you simply type ./hello.sh at the command line.