I’ve already shown you how to view files with the cat command. In today’s post I’m going to show you how to use the GNU cat command for its originally intended purpose: for joining multiple files together. For this example we’ll need a couple of text files to start with. Paste the following text into …
Continue reading Command Line Basics: Join Files With catHowTo
One of the things you may find you want to do often from your command line is to view the contents of a text file. This could be to view the contents of some startup script or just one of your own basic configuration files like .bashrc or .bash_aliases. The command is simple to use. …
Continue reading Command Line Basics: View Text Files with moreThe While Do Loop One of the most common structures in programming is the Do Loop. The version that I’m going to show today is the While Do Loop. The basic structure of the While Do Loop is: while condition A exists, execute the loop. Here’s an example program that counts to ten and then …
Continue reading Bash to Basics: The While Do LoopWhy a Bootable USB Drive? Most computers sold these days don’t have a 3.5″ floppy drive, yet many computer manufacturers still only provide BIOS flash utilities that require booting to a DOS environment. Luckily there is a free version of DOS called FreeDOS and a utility called UNetbootin to the rescue. Using these two free …
Continue reading Create a Bootable FreeDOS USB Drive on WindowsOne of the most powerful features of the Linux command line interface, (and other shells that conform to the POSIX standard) is the ability to pipeline output from one command as the input to another. This is done using the vertical bar or pipe character [ | ].
Continue reading Command Line Basics: Pipelining Output