I’ve always wanted to know how to create command line options for my Bash scripts. After some research I found there are two functions available to handle this; getopt and getopts. I’m not going to get into the debate about which one is better. getopts is a shell builtin and seems a little easier to …
Continue reading Bash Getopts – Scripts with Command Line Optionscommand line
There are several log files in a Linux system. Keeping an eye on these log files can be one of the important tasks of a Linux System administrator. You can easily view the end of a log file using the tail command. But if you want to monitor that file all day long it’s pretty …
Continue reading Command Line Basics – watchFrom time to time I like to test out a new Linux distribution or just an updated version of my current distribution. I’ve created extra partitions on my hard drive for these test installations. All of the distributions I’ve tried so far require a boot loader to be installed to the hard drive as part …
Continue reading Reset GRUB Default System After OS InstallationMy main computer at home acts as a file and media server for the whole house, so it’s pretty much turned on all the time. There are times when I’m away from home that I want to remotely access or download a file from my home computer. My home internet service uses a dynamic IP …
Continue reading Keeping Track of My IP AddressIn this post I’m going to show how to send an email from the Linux command line through your Gmail account. This can be handy if you’re a command line junkie. The real power, however, is in being able to send an email automatically from a script. I’ll be doing another post where I use …
Continue reading Send Gmail from the Linux Command Line