Previously I’ve shown how to use the bash while loop in a bash script. Today I’m going to show how to use another type of do loop in bash: the for loop. The for loop is a little different from the other looping structures in bash. The other loop structures work by evaluating whether an …
Continue reading Bash to Basics: The For LoopHowTo
If you run the Google Gears add-on for Firefox on Linux, then you’ve probably been getting annoyed by Firefox trying to update the add-on and getting a failure message that interrupts your web browsing.
Continue reading Fix Google Gears for Firefox on LinuxUpdate: I’ve written a simpler procedure that will uninstall LAMP with a single command. I’m leaving this post here for historical reasons, but the process is much faster if you follow my newer post. The most popular post on this blog is How to Install LAMP on Ubuntu 9.10. On that post, I’ve had a …
Continue reading How To Uninstall LAMP in Ubuntu 9.10 Karmic KoalaYou may have an occasion that you want to know the number of files in a directory. There are a couple of simple ways to do this. The first way is to list the files with ls and count them with wc. No, wc doesn’t stand for the place you go to relieve yourself; in …
Continue reading Command Line Basics: Count FilesIf you’re a heavy user of the GNU/Linux command line, then you’re already familiar with the man command. If you’re a newbie, the man command (short for manual, as in RTFM) pulls up the online documentation for terminal commands and outputs it to the same terminal. Perhaps you wish you could have some of these …
Continue reading How To Create PDF’s Of GNU/Linux Manpages