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 implement than getopt, so I'll go with that for now.
I run a media server at home to feed music and movies to my LG smart TV (affiliate link). Ripping the family's DVD collection is one of my tasks as the resident computer geek. Normally, Handbrake is my go-to tool for this type of thing, but in this case it was unable to detect the correct title from the DVD structure. In this tutorial I'll show how to rip a DVD on Linux with Mplayer.
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 tedious to enter the tail command every few minutes to check on that log file. You could write a short script with an infinite loop to check the file periodically, but it turns out that there is already a program to handle repetitive tasks for you. Read more
Filed under: command line, FOSS, HowTo, linux, Linux Mint, Ubuntu
There are times when you want certain information on your computer protected from prying eyes. One way to protect your information is to encrypt your home directory. However, that does not protect your information when you are logged on to your computer. I've shown in the past how you can use Cryptkeeper to create an encrypted folder on your system. Cryptkeeper is a graphical front end to encfs. encfs allows you to create an encrypted folder and then mount it as a user filesystem using FUSE. In this tutorial I'll show how to use encfs from the command line to create and manage an encrypted folder on Linux.
Filed under: command line, HowTo, linux, Linux Mint, Ubuntu, Xubuntu
File system labels are not something you need to have in order to have a functioning Linux operating system, but they can make your computer easier to navigate when you have several disk partitions. In this post I'll show how to add or edit a Linux file system label for ext2, ext3, and ext4 disk partitions.