How To: Tell If You Are You Using UEFI or BIOS

Today’s article will be another short-form article, where we quickly learn how to tell if you’re using UEFI or BIOS with your Linux computer. Making a few short-form articles seems like a fun idea, so why not? There’s room for all sorts of stuff and now that I’ve done this for a couple of years.

In short, when you boot your computer there’s a bunch of stuff you don’t see, but the hardware needs to interact with the software. We used BIOS for many years, but the new and improved method is UEFI (which stands for Unified Extensible Firmware Interface). 

UEFI is meant to improve on some BIOS limitations and to help increase your security. If you have a modern computer, it’s capable of UEFI but might have BIOS available. If BIOS is available, it may be referred to as ‘Legacy’ if you want to go mucking about to change it.

Linux supports both UEFI and BIOS booting. If you installed Linux yourself, you may already know if you’re using UEFI or legacy booting. However, if your Linux installer notices that it is in either mode, it will default to installing in that mode. So, I suppose it’s possible for some folks to not actually know if they’re using UEFI or BIOS.

This leads me to today’s article…

Are You Using UEFI or BIOS:

This article requires an open terminal, like many other articles on this site. If you don’t know how to open the terminal, you can do so with your keyboard – just press CTRL + ALT + T and your default terminal should open.

With your new terminal open, type the following command (or cut and paste the command, if that’s easier):

If it lists an output, you’re using UEFI. You’re using BIOS if you get an output that’s something similar to:

It really is that simple. 

Closure:

Well, this is the shortest article I’ve written. At least I’m pretty sure that it’s the shortest article I’ve ever shared. Brevity is not my strong point, but at least now you know how to tell if you’re using UEFI or BIOS. So, you didn’t come away empty-handed – unless, of course, you already knew that.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

How To: List USB Devices

Today’s article might look like a funny headline, where the subject would be how to list USB devices. Today, we’ll have a relatively short article. It’s not complicated and you’ve already learned how to list USB devices! Wait-a-minute!

After all, you’ve already been told how to do this. In fact, I’ve written an article on this very subject! See:

A Little About The ‘lsusb’ Command.

That article covered how to list USB devices, using the lsusb command. Right?

Yes. Yes, it did.

But, this is Linux and there’s another command that doesn’t get enough attention. In fact, I’d wager (a small amount) that many of you wouldn’t have used this command before. 

What is this mystery command? It’s really easy to remember. It’s not complicated, it’s simply “usb-devices”. On the man page, the command describes itself as:

usb-devices – print USB device details

Sure enough, that’s what it does. But, unlike the ‘lsusb’ command, this command spits out a whole lot more information by default. There’s not a whole lot more to say about it, and I’m making this article extra short. So…

List USB Devices:

As implied in the opening part of this article, you’re going to need an open terminal. If you don’t know how to open the terminal, you can do so with your keyboard – just press CTRL + ALT + T and your default terminal should open.

With your terminal now open, simply run the command:

If you check the man page, you’ll find that that’s it. There’s nothing special to do with this command, you just run it. The man page contains this:

usb-devices is a (bash) shell script that can be used to display details of USB buses in the system and the devices connected to them.

It might be the easiest command you’ll ever run – and it’s also easy to remember. So, why is it so unknown? Well, we use ‘lsusb’ for listing USB devices and the command doesn’t rank well in search engines, but it’s at the bottom of many such articles. It also doesn’t do much more than list USB devices, as it’s just some sort of a built-in bit of shell scripting.

Closure:

So, I figured I’d do an extra short article today. Why not? We’ve done some longer articles lately, so we might as well try the super-short format. It helps that I didn’t dive off-topic or the like, but simply explained how to list USB devices. Do you have any thoughts on articles in this shorter format?

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

 

How To: List Open Files

Today’s article might seem unimportant and that’s okay because we’re just going to examine one way to list often files. So, in a way, it’s probably not all that important. If you are someone who wants to list open files, this would be the article for you!

For the most part, most of my readers aren’t going to want to know how to list open files because they just have no good reason to do so. It won’t be a very long article or anything. I did some long-format articles and they didn’t get much feedback. I’ll do more, but I don’t see them as needing to be all that immediate – or consistent. The shorter articles just seem to be what folks are looking for. I can live with that. (If you do like the longer articles, it’s not too late to mention that.)

Today’s tool will be one you may have never heard of. We’ll be using the right tool for the job, however. That tool will be the ‘lsof’ command. The ‘lsof’ command should be installed by default in any major distro and checking the man page will reveal that it describes itself like so:

lsof – list open files

Read that line and then look at the headline. See? I told you that it was the correct tool for the job. If you want to list open files, a tool that lists open files is the tool for the job. Imagine that?!?

List Open Files:

Of course, the lsof command is run in the terminal. As such, you’ll need an open terminal for this exercise. If you don’t know how to open the terminal, you can do so with your keyboard – just press CTRL + ALT + T and your default terminal should open.

With your terminal open, you can just run the following command which will show every currently open file (it’s a lot):

You’ll notice some of the output will say something about “permission denied”. So, if you’re going to list all the open files, you probably should use sudo with the command. Like so:

Type in your password at the prompt and be prepared for the deluge of file names. It takes quite a bunch of open files for an operating system to work – and Linux treats everything like it’s a file.

So, what if you just want the output to tell you all the files opened by a specific user? The lsof command will help you out with that. Try this command:

For example:

That command will show you all the files opened by that user. It’s still a lot, but it’s an easier output to process. If you wanted to show the files opened by everyone except a specific user, you’d use this command:

That command would (assuming you removed the brackets) show you all the open files except those files opened by ‘username’. In any of these cases, if you see some permission denied errors you can just slap sudo on the front of it and be good to go.

Closure:

Well… If you’ve ever wanted to list open files you now know how to do so. I suppose it’d mostly be useful for things like auditing or troubleshooting performance issues. I have the command in my book of tricks, but I don’t recall ever needing to use it for much. I’ve played with lsof and it does list open files. So, there’s that.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

How To: Unzip All The Files In A Directory

Today’s article might seem like a strange one, but it’s all about how to unzip all the files in a directory. It’s something only a few folks will need to know and something you may not need all that often. However, those folks who need to know this, and those folks who need this often, will be grateful to learn this little tip.

I would think that this will be a short article, as I don’t see it taking up that many words. I’m not sure of the appeal, but I want to write it anyhow. So, if you want to know how to unzip all the files in a directory, this is the article for you!

For me, this is another article based on necessity. See, it’s I who frequently has to unzip a bunch of files all at once. They’re fortunately all in the same directory, making this just a pair of easy commands. Sometimes I have to unzip nested files, so I’ll include the command to do that along with the more simple command that I usually run.

Every month, I get a whole lot of documents from my accountant. For bandwidth’s sake, these get organized and compressed before they’re emailed to me. In theory, I’m supposed to go over them and verify them individually. At best, I open them all up and look at a few of them. I do a sanity check every few months. My accountant is an old lady and I’m pretty confident in her integrity. So, I’m pretty lax…

However, see, I’m supposed to check them… So, I kinda go through the motions and at least look at a few of the documents. That’s where this command comes in…

Unzip All The Files In A Directory:

For those following along, it has been a minute since you needed to open a terminal to follow one of these articles! Well, that wait is over! You know what to do. Otherwise, just press CTRL + ALT + T, and your default terminal should open.

With your terminal open, use the cd command to navigate to the directory that contains multiple .zip files. You should know how to do this, but it’s just: 

Once you have reached the directory you’ve chosen, you can just run this command to unzip all the files in a directory:

Now, sometimes there will be folders inside that directory and those folders will also contain .zip files. To unzip the files recursively you’d just want to use the following find command first, like so:

That lovely command will scour the directory you’re in for sub-directories, enter those directories, and then unzip any files it finds in those sub-directories. It’s not all that complicated, you’re just finding files with .zip in their name and then executing the unzip command on them.

As I said at the start, it’s not one of those things you’ll need often – but when you do need it, you need it. Well, your life is significantly improved by it. I suppose it’s not technically a necessity. You could unzip all the files one by one or even unzip them using a GUI. Still, it’s handy to have.

Closure:

And there you have it. Today’s article is back to a shorter format article, largely because this is what I was thinking about today. Because of that, you got an article explaining how to unzip all the files in a directory – and how to do so recursively – unzipping files nested in sub-directories. You’ll eventually need it! Maybe…

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

A Few Geeky YouTube Channels

Today we’ll have an absolutely meaningless article, as I share a few geeky YouTube channels with you for your appreciation. I’ve done similar before, with the ‘few good channels‘ article. It was fairly well received and today will be a bit similar, though probably a bit shorter. After all, there have been a few long articles lately. I might as well mix things up a bit.

I am also curious about AdSense. I’m not sure what’s happening, but it hasn’t registered any clicks lately. That’s not good! So, if you want to do me a favor, you can whitelist the site and let me know if you saw any ads. (Don’t click on them just to help me! Ads should only be clicked if you have a legitimate interest in the product! Otherwise, Google gets made and throws a hissy fit and takes away some credit for clicks.)

If you check the headline for this article, it should kinda give you an idea of what’s to come. The previous video article was just about Linux channels. This article will have very little to do with Linux itself, so it’s even an appropriate article for our Windows-geek friends!

As a general rule, I’m not a huge TV watcher, but I do watch video content. I have more video content to watch than I will ever have time to watch. A great deal of what I watch has to do with automobiles, but I make time for other subjects – such as Linux and geeky topics. Today, I’m just going to share a few geeky YouTube channels. That’s it…

Geeky YouTube Channels:

So, crack open your favorite brand of popcorn…

Open up your favorite media-watching browser…

Take the rest of today’s to-do list and throw it straight in the trash…

Ready? 

The very first channel I want to share is called TechMoan. This guy loves old stuff, mostly media players. If it plays video or (especially) reproduces sound, he’s probably interested. From Edison’s wax disks modern MP3 players with Bluetooth, he’s interested in it. His videos are full of useful (and delightfully useless) information. If there’s a media format out there, he wants to be able to play it. It’s awesome!

Link:
TechMoan

Next on the list of geeky YouTube channels would be LGR. That once stood for “Lazy Game Reviews”, but now it just stands for nothing. He’s long since changed direction and covers old computers. For the people who read this site, this might be the most interesting of the channels. LGR covers a lot of older computers and tech. You’ll find a goodly amount of content from the 80s and 90s, and even some modern stuff sprinkled in for good measure.

Link:
LGR

Finally, on my list of geeky YouTube channels you might enjoy, is a channel from a real museum. They don’t have dinosaur bones and you won’t find a wooly mammoth in their museum. What you will find is the dinosaurs and mammoths of the computer industry. From some of the earliest computers to some of the obscure computers that fall into the ‘also ran’ category, you’ll find it all. All sorts of long-format videos will inform and entertain you for hours. The CHM (Computer History Museum) backlog is large enough so that you might never catch up and watch them all.

Link:
CHM

Closure:

There you have it! You have a new article. This one doesn’t require much effort – but might require a bunch of your time. There are other geeky YouTube channels, but I figured I’d limit this to just a few of my favorites. I watch some other channels with a more narrow topic and I picked these for their (moderately) broader appeal.

Given what I know about my readers, I think almost all of them will appreciate these geeky channels. Feel free to leave a comment sharing your favorite geeky videos. I’ll have to manually approve them (as they’d contain links) but I’m pretty good at doing that promptly. The system’s pretty good at letting me know when there are new comments! It’s also pretty good at avoiding false positives where spam is concerned.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Linux Tips
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.