how to prompt for input from user in a linux shell script

shell script select command menu

When writing shell scripts, you will have scenarios you want to get input from the command line. And you would want to perform some specific action based on the user input. Programming a shell script to accept user input from the console is quite simple. We will see some examples of how you can do this in a bash script….

how to use wget to find broken links on your website

broken links detection with wget

As websites get larger and larger with ever-growing content, it could easily get to be a nightmare to maintain. It is true for any website. But this is especially true of a blog, a forum or any site with a constant influx of new content. Over time, content on the website can get outdated and removed. This could lead to…

how to chain commands in linux command line (with examples)

sort command with redirection

Sometimes you would want to run multiple commands in succession or simultaneously. This is usually useful when running processes or commands that is expected to run for a long period of time. This allows you to automate a process that include several commands that may or may not depend on the result of the previous command. Linux command chaining is the…

7 linux commands that will help you learn other linux commands

man rm command

One of the daunting task that most Linux beginners face is the sheer number of several different commands and utilities that are available. Some of these commands might seem to do the exact same things. Each of these commands have numerous command line options on top of it. Yes. having choices comes at a price. It is quite impractical to learn…

how to change line spacing or line height in html

html line spacing css

When coding html pages for a website, the line spacing of the text content is probably one of attributes that is usually left as default. Most of the time, you do not even think about it and the default works the best. The line spacing or line height is the vertical height between lines of text in a rendered html page….

how to format an usb drive in fat16/fat32/ntfs from linux command line

fdisk listing of drive

One of the reasons of having to use an usb drive is to transfer files between different machines, usually with different operating systems. Unfortunately, there are still enough Windows machines out in the wild that reads only specific file systems in formats such as FAT32 or NTFS. This means you will need to format your USB drives in formats that is…

how can you delete saved passwords from mozilla firefox

firefox - remove all passwords

Mozilla Firefox, as with most modern browsers give you the ability to save passwords for different websites and webpages. This makes web browsing easier, as it does allow you to easily log in to websites that you visit often. But sometimes you want to delete these saved passwords…of websites that you don’t use anymore or even to just remove the clutter….

9 little known but quite useful and productive features of google+

creating a poll in google+

Google Plus (Google+) is a late entrant into the social media universe and it recently turned 5. Many have written off Google+ as one of the failures when it comes to social media engagement. However it still boasts of several millions of daily users and still is a vibrant community. I think that despite the lack users and recognition, it…

11 simple rsync examples that you can use to be more productive

rsync examples in linux

If you have been working with Linux for any amount of time, you must be familiar with the rsync command utility. rsync is a very powerful tool that allows you to synchronize files between two locations, even remote locations over the network. It is a very powerful file transfer tool with definite advantages over any other copy programs. The generic…

seo: how to find the total page size of a webpage

chrome developer tools

As you start to optimize your webpage, the first and foremost thing you probably want to know is the current total page size. This is the starting point of almost all web page optimization. The total page size is an indicator of many things, especially the rendering time of the webpage. In most cases, you want to render the webpage…

12 useful bash aliases that you can make you more productive in linux

bash aliases in linux

Aliases is one of the most useful features of Linux command shells. You probably end up using the same commands over and over on a daily basis. This is true if you use the command line for almost everything. You can use bash aliases (if you use bash) or shell aliases to make these every day tasks easier to execute. Most of…