Learn how to use a host of Linux commands in these 2-minute video tutorials from Sandra Henry-Stocker, author of the Unix as a Second Language blog.
In this Linux tip, we look at lsblk – a command that is helpful for getting information on disk drives and block devices on your Linux system.
In this Linux tip, we take a look at the fdisk -l command that provides lots of details on disk partition tables.
In this Linux tip, we take a look at the du command that reports on disk space usage.
In this Linux tip, we look at file permissions on Linux in two ways.
In this Linux tip, we take a look at the whereis command. It’s a command that will tell you where the executable and the man page are for a command.
In this Linux tip, I show you how to start an infinite loop on the Linux command line. Well, at least it would keep running until something stopped it.
In this Linux tip, we look at the dstat command – a command that provides a lot of details about system performance such as CPU usage and disk activity.
In this Linux tip, we take a look at the iostat command – a command that provides stats on IO activity.
In this Linux Tip, learn to use the iotop command, which helps to monitor I/O usage for your disks.
In this Linux Tip, you'll learn to use the W diff command, which displays the content of compared files, showing one copy if the files are identical.
In this Linux Tip, you'll learn to use the sdiff command, which compares text files side by side.
In this Linux tip, we’re going to look at the diff3 command. It’s similar to the diff command, but allows you to compare the contents of three text files instead of just two. In addition, the formatting of the output makes it easy to understand how the files are different. In this command, we compare three simple text files: $ diff3 file1 file2 file3 ====3 1:1,3c 2:1,3c Kids, the seven basic food groups are gum, puff pastry, pizza, pesticides, antibiotics, 3:1,3c Kids, the six basic food groups are fruits, vegetables, grains, protein and dairy The ====3 included in the output below means that the third file is different. If all the files were different, this would show just ====. The output then shows the differences between the first two files (which are the same) and the third which has a different third line. Looking at file3, we can see a 4th line. This line didn’t show up in the diff3 output because it’s the same in all three files. The diff3 command only displays differences.
In this Linux tip, we’re going to look at the colordiff command. It displays the differences between two files like the diff command, but adds color whenever the content is different. This first command has no output because the files are the same. $ colordiff file1 file2 Now let’s compare two files with a difference. $ colordiff file1 file3 1,3c1,3 Kids, the seven basic food a groups are gum, puff pastry, pizza, pesticides, antibiotics, --- Kids, the six basic food groups are fruits, vegetables, grains, protein and dairy Notice how the colors highlight the differences between the two files. Here’s the full content of file3 showing the only line the files share (line 4). $ cat file3 Kids, the six basic food groups are fruits, vegetables, grains, protein and dairy and milk duds!!
In this Linux tip, we’re going to look at the cmp command. It’s a command that allows you to compare the content of two text files. If the files that you are comparing are identical, there will be no output.
In this Linux tip, we’ll take a look at how you can test whether a string or variable includes some regular expression or substring you want to test for.
In this Linux tip, we’ll look at how you can use the grep command to look for more than one value in a single command. This can be useful when you want to select lines of two forms, but ensure they will appear in the same order as they do in the file.
In this Linux tip, we’re going to look at a command that allows you see how many days have passed since the beginning of the Linux epoch – Jan 1, 1970. To begin, we use the command below to display the number of seconds since the epoch began on Jan 1, 1970.
In this Linux tip, we’re going to take a look at the pv (pipe viewer) command that can provide some reassuring visual feedback when some process you will be running might take a long time to complete. In this simple example, everything will run very quickly, but this kind of output for long-running commands will let you know that the process isn’t “hanging” and that, instead, progress is being made.
In this Linux tip, we look at the stat command. Like the ls command, stat displays important details about a file – like permissions and ownership, but in a much different and surprisingly useful way.
In this Linux tip, we’re going to look at what happens on many Linux systems when someone mistypes “ls” – typing “sl” instead. What you can anticipating seeing (provided the sl command has been installed with one of the commands shown below is a rather entertaining image – a steam locomotive that drives across your screen.
Sponsored Links