Find Recently Modified Files

Over the past couple of years, I’ve done a lot of articles about file management; this one will help you find recently modified files. There’s nothing too complicated about this, so most of my readers should be able to follow along.

There are a number of reasons to find recently modified files. Perhaps you need to assess a file system that shouldn’t have been altered. You may need to do so for some accountability process. Then again, you could want to check a system to see what’s changing and eating up your disk space.

You might want to find recently modified files for all sorts of reasons. Heck, you might have forgotten where you placed a file but recall that you did so within the past 48 hours. This can help you narrow down your search, helping you find the file more quickly.

Of course, this will be in the terminal. That’s how we do things around here. This will also be portable. You need only the find command and you’ll certainly have that available by default.

The find Command:

As I said, you’ll need the find command. This will be installed by default. You can verify that find is available with this command:

The output should match this:

Next, you’ll want to check the man page (with man find) which will show you that this is the correct tool for the job. Notably, it says this:

find – search for files in a directory hierarchy

Yup. That’s what we want to do. 

The find command is very capable and will seem complicated to the newer Linux users. It may even push some more advanced users away. I aim to make Linux approachable, so we’ll only be worried about a couple of flags.

The type Flag:

The first flag we’ll be using is the type flag. If you check the man page, you’ll see that there are many types. We’ll specify f which signifies we wish to find regular files.

The newermt Flag:

While you’re on the man page you will see references to newer but nothing specific about newermt. It’s a reference to time. Specifically, it means less than or equal to. For example, a file that’s one day old will be listed in the results if you ask for files one day old or newer. That’s what we’ll be doing in this article.

Find Recently Modified Files:

While you will find that you have the find command available in any distro I can think of, you’ll also need to know that this is an exercise that requires the terminal. There are GUI options out there, but we’ll be using the terminal. So, press CTRL + ALT + T and let’s get started!

The syntax of the command would be this:

In our case, we’re going to use the ~/Downloads directory in our examples.

The "time frame" is where things get interesting. For the find command, you can almost use plain English. The command understands seconds, minutes, hours, days, weeks, months, and years.

Let’s say you want to scan your Downloads directory for files that you have added within the past four weeks. Well, simply use this command:

If you want to search for files within the past three months, use this command:

In the case of that command, it will find any files newer than (or equal to) three months of age. It’s a very simple command to use once you understand the syntax.

You do have to use numbers. 

If you want to quickly test this, try the following:

You could have even specified that in seconds:

You can also put dates in there.

Let’s say you want to find files newer than February 1st, 2024. You can do that. If you live in the US, you might have to use a date format that you’re not used to. So, the basic syntax would be:

Or, for today’s exercise:

I’m not sure if it’s possible to tell it to use the US date formatting. I was unable to make that work in the two attempts I made at it. Let’s just say that I didn’t invest a whole lot of energy.

There’s a lot more to the find command, but this is one way to use it. The goal is small bites that help make Linux more acceptable. Even I can be overwhelmed and I’ve been doing this for years.

Closure:

Well, if you’ve ever wanted to find recently modified files, you now have the tools to do so. While there’s a lot to this command, it’s possible to use the command without being fully versed in the matter. You don’t have to know everything to take advantage of the tools. Just like you don’t have to be a carpenter to know how to swing a hammer well enough to seat a nail.

Hmm… This article isn’t even all that long!

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.

Show Running Processes

Your Linux system will have a lot of things running and these things have their own process, so let’s learn how to show running processes in the Linux terminal. This is something that’s a bit more advanced than most regular desktop users will need, but it’s still worth knowing.

You may not realize it, but you have a whole lot of processes running. These processes are what makes your system work. Without them, you’d have no activity. There’s a lot you could learn about processes, such as how they’re not all owned by your user account and how they all have their own process identification number (known as a PID).

None of those things are important for today’s article.

Today, we’re just going to show running processes in the terminal. It’s not a very complicated thing – and I’ll show you a couple of things you can do with this exercise.

You won’t need to install anything. We’ll be using the ps command that is almost certainly installed by default.

The ps Command:

The ps command is exactly the tool we want to use. It’s used to show running processes, the goal of this very article. You can verify that ps is available (and it is, it has been around since the UNIX days as I recall) with this command:

If you check the man page, you’ll confirm that this is the right tool for the job:

ps – report a snapshot of the current processes.

This is pretty self-explanatory. We’ll be using that very command to show running processes on your Linux box. Well, I suppose this would also be valid for the other *NIX OSes, like BSD and probably MacOS. I don’t use those OSes, so I can’t confirm the availability of the ps command – but it’s pretty likely to be there and perform the same task.

Show Running Processes:

As I mentioned above, you’ll need an open terminal for this exercise. You can open your terminal from your application menu. You can usually just press CTRL + ALT + T and your terminal will open.

The ps command reads the files in the /proc directory and doesn’t need elevated permissions to run. Some of the processes will not be owned by you, so acting on this information may require elevated permissions.

With your terminal open, simply run the ps command in the terminal:

As you can see, that’s not a lot of running processes. It doesn’t show them all.

If you want to see all the running processes:

Or, if you want to really use the ps command to get a lot of information:

Now, you don’t always want that much information at once, so try this:

There are times when you’ll want to use the ps command for a purpose, such as finding the PID of an application that’s frozen. To do that, you can pipe it to grep and limit the output. For example:

There’s a lot more to the ps command, so check man ps for more information. This is just scratching the surface.

Closure:

Well, this ended up shorter than I expected. I don’t want to dive in too deep. The goal is just a quick overview, but I expected it to take longer to describe this stuff. Fortunately, it’s a fairly easy subject – on the surface. Dig into the man page and you’ll see there’s quite a bit more that you can do.

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.

Short: Automatically Add An Extension To Multiple Files In The Linux Terminal

This short article will have limited usage as it shows how to automatically add an extension to multiple files in the Linux terminal. This is something not everyone needs to know, but something you need to know if you need to know it.

Let me explain…

First, I wrote a snippet of terminal code to help out a forum user. I decided that it was valuable enough to share with the larger world. As it’s just a snippet, it can be a short article.

In this case, the user had recovered many images and the recovered file names did not have a .jpg extension. They were going to manually edit a thousand files to add the .jpg extension. That’s not something you need to do. You can automatically add an extension to multiple files in the Linux terminal.

So, how does this work…

Automatically Add An Extension To Multiple Files:

Open your terminal and navigate to the appropriate directory. You can usually use your GUI file manager to navigate to the directory and then open the directory from that window. Otherwise, just use the cd command to navigate to the right directory.

The syntax to add the extension to all those files in that directory would be:

What we’re doing is using the rename command to search for anything with zero to one character and the asterisk is all characters including spaces. You should have rename available by default. I first tried using an asterisk in both places, but the command was having none of it.

If you want to test this, open your terminal and try this:

That should show you the newly created files.

Next, just run:

Now confirm that you’ve made the changes:

Your output should match this one:

See? You’ll have added .jpg to all the files in that directory. We could use something like the find command and make it recursive, but this is good enough.

Closure:

There you have it. You have a short article that will show you how to add an extension to multiple file types. I figured this was useful enough to be shared with the wider world, maybe saving someone a bit of time and showing others how easily you can process things in the Linux terminal.

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.

Top 10 Reasons Why I Use Linux

I figured today would be a fine time to have a fun article and I’ve never done a listicle, so I figured I’d write the top 10 reasons why I use Linux. After all, we don’t always have to have something productive. Sometimes we can just have a nice and fun article that doesn’t require much effort.

And this is a low-effort article! (EDIT: It turns out it is more effort than expected. I did not expect that.)

Disclosure, I did write Why I Use Linux some time ago. For fun, I won’t refer to the previous article. Besides, that was in essay format more than a listical. I’ve never done one of those before! 

We can also have some fun with this. 

These are MY top 10 reasons why I use Linux. These might not be your top 10 reasons. You might not agree with my reasons. If you don’t agree, or you want to add to the list, we can fight about it in the comments! 

So, without further ado…

Top 10 Reasons Why I Use Linux:

  1. Linux is just plain easy. 

    I realize that not everyone will think this is true, but I find it to be true. Things are logical and make good sense (generally speaking). Linux doesn’t require babysitting. I can ignore it and get my work done.

    There is a learning curve, but it’s not difficult. You can be up and running without any real help. For the most part, the installation is a guided process and then there’s enough of a base to get you started without even needing to add many applications. It all just works together and even updates are simplified to the point of being trivial.

  2. Linux has a great community.

    Linux is known to be full of people that just tell you to read the manual. While this is sort of true, it just means that they expect you to have put the work in. You should usually have tried to resolve your problem and you should have a basic understanding of the applications you’re trying to use.

    If you find the community to be unfriendly when you ask a question, read this:

    How To: Ask A Good Support Question

  3. There are many choices about how you do things.

    You can pick and choose what you want and what you don’t want. If you don’t want a desktop environment, you can go without one. If you want a different desktop environment, you can get one. As this site will show you, there are so many choices in the tools you use to get your work done.

    There are so many choices that it’s almost overwhelming. That’s one of the reasons why I have this site. It helps you navigate choices and informs you about the various ways to accomplish a task.

  4.  Linux can be harder if you want.

    I know that I said Linux is easy up above and it is. However, you can choose to learn a whole lot more – and that information is freely available. You don’t have to learn a lot to use Linux, but you can learn as much as you want. If you decide that you want to, you can even learn enough programming to contribute to the kernel.

  5. Linux is open source.

    I’m not a zealot. I use all sorts of proprietary software. However, I appreciate that Linux is open source. This means things get fixed. If you report a bug, there’s a reasonable chance that the bug will be fixed. It needn’t be the developer that fixes it. Anyone with enough skill can fix bugs.

    Linus’s law is that “Given enough eyeballs, all bugs are shallow.” My experience tells me that this is reasonably true.

  6. Linux is reasonably secure.

    While Windows (and Apple) have certainly improved their security processes, Linux is reasonably secure when you first install it. Then, there are all sorts of things you can do to make it more secure.

    You have full multi-user permissions, meaning a user can only do what they’re permitted to do. You can enable things like SSH but then prevent brute force attacks. You can secure your account and your information. There are even advanced subjects like jails and other forms of sandboxing.

  7. Linux is free as in free beer.

    While I don’t mind paying for things, I get hundreds of choices about which operating system (distro) I use. Imagine if I had to pay a fee for each of the distros I’ve tried and used regularly. If I had to pay a licensing fee for each distro (and then each version of that distro), it’d be outlandish. I get all these choices for free.

    I still believe in supporting the projects I like and use, but I’m not obligated to pay for anything. AFAIK, even the enterprise distros tend to allow free use in one form or another. Man, imagine the costs if we had to pay for a license for all the distros and applications we use. I have more than 2500 packages installed and I haven’t been asked to pay for any of them.

  8. Linux has longevity.

    Once upon a time, you could have called Linux a hobbyist operating system. That’s not true anymore. From mobile phones to the very infrastructure that runs the internet, it’s a whole lot of Linux. While distros may come and go, Linux is going to live on for a long time. That means I won’t have to change. It means I can keep on using Linux.

    That’s a good thing. I appreciate stability. I don’t have to worry about some company taking over and taking Linux away from me. I’ll be able to use Linux, in one form or another, until the day I die.

  9. Linux is consistent.

    Yes, Linux has a whole lot of variation between the distros. One desktop environment may be completely different from another. You may have to learn those differences when you pick a different distro. Fortunately, for the most part, things are where you logically expect them to be.

    But, yes… Yes, Linux is consistent. Underneath that desktop environment is a group of applications that are either installed already or able to be installed. Those are the consistency I speak of. The fact that this site exists with the content it has is proof of this consistency – as so many of the articles apply to all the major distros. That’s the consistency I speak of.

  10. It’s not Windows.

    If there’s a task someone wants me to do online, such as have an online meeting, I can just tell them that I don’t use Windows. They may look at me strangely but I can honestly tell them that I don’t use Windows. Sure, I might be able to accomplish those things in Linux – but they’re tasks I don’t want to do. So, I don’t do them and tell them the truth.

    “I don’t know how to fix your Windows computer.” I can legitimately say this. I’m known to be a ‘computer guy’ and people will ask me questions about their broken systems. When I first moved here, I made the mistake of helping them. I shortly moved to Linux and no longer know anything about Windows. So, I no longer have to worry about fixing someone else’s computer. 

    And that is awesome.

So, there you have it. That’s my top 10 reasons why I use Linux. The reasons aren’t in any particular order, or anything like that. I just wrote them as I thought of them, though I did write a few down ahead of time. 

What’d I miss? What would you add to the list? 

Closure:

So, if you think writing this list was in some way easier, I’ll point out that this is one of the longest articles I’ve published. It’s not the longest, but it’s up there in length. I dare say that it might have been more effort than it was worth, but I had to try it. I doubt I’ll do many of these, but this one was kind of fun to write.

I’ve never done a listicle (list article) before and I’m not sure that it’s something I’ll adopt, though it is a good subject to get some feedback. Please, do provide that feedback – preferably here so it’s all in one location. Heck, you can let me know how much you don’t like listicles if that’s what you want to say about it. But, feel free to cover anything you think should have been on the list.

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.

Learn About Your Wireless Connection

Many of us rely on a wireless connection for our connectivity and this is for those who want to learn about your wireless connection. It should be a relatively simple article. Though, if you do not use wireless internet this won’t be very interesting.

Today’s article about your wireless connection will show you how to learn things like the quality of your connection, the transmission power, the frequency you’re using, and other sundry wireless bits. It’s a bit technical, and we will learn about your wireless connection in the terminal, but it’s all good information and not very complicated.

The tools we’ll be using should be installed in all current major distros. For example, we won’t use ifconfig because it is deprecated. We’ll be using the ip command instead. We’ll also be using iwconfig in this article. You shouldn’t need to install anything for this article. All the tools you need should be installed by default.

Side note: The site sure does load fast without ads! I’ll be finding a new ad provider soon enough, I just haven’t done so yet. I may appeal to Google. We shall see, but the site sure is fast! Alas, it generates no income to offset my expenses. So, we will have ads again. It’s going to happen.

As for the tools we’ll be using…

The IP Command:

The first tool we’ll use will be the ip command. As I mentioned above, the ifconfig tool has been deprecated. It is no longer supported and we’ve moved on to bigger and better things. Most major distros will have made this change. For a bit of completeness sake, I’ll include details for the old way.

You can verify that the ip command is available with this command:

If you check the man page, with man ip command, you’ll see that this is the correct tool for the job. The job is what was indicated in the article’s title. Anyhow, the ip command is described like this:

ip – show / manipulate routing, network devices, interfaces and tunnels

We’ll be using the command to identify the name of your wireless connection. It’s easy enough and you can easily follow along.

The IWCONFIG Command:

The iwconfig command is how we’ll be gathering information about your wireless connection. You should find that you don’t have to install anything for this. If you’re using a major distro that’s modern, you’ll almost certainly have iwconfig available. You can confirm that iwconfig is available with this command:

Just like we did above, you can run the man iwconfig command to see that this is the tool for the job. The output should include the following:

In our case, we won’t be doing any configuration – but we will be using this command to learn about the wireless connection. It’s a handy tool, but we’ll just be using it to gather data.

So, let’s get into the actual article itself…

Learn About Your Wireless Connection:

I mentioned above that this is something you do in the terminal. You probably know how to open your terminal by now. If not, you can usually press CTRL + ALT + T to open up your default terminal.

With your terminal now open, you can check your network connections. The purpose of this command is to learn which of your connection names is the correct one for your wireless connection.

If you’re using an older system, and some modern systems still contain the command, you can use the deprecated ifconfig like so:

Scroll through that data to find your wireless connection. It’ll begin with a W. It used to have a nice simple name by default, but times have changed. In my case, it looks like this:

In this case, you can see that the name of my wireless device is wlxe4beed0e5f5c. Unless you’ve renamed them, your wireless connection should start with a W and should be the only connection that starts with a W.

With that information in hand, you’ll next want to learn about your wireless connection with the iwconfig command. The syntax is quite simple:

So, in my case, the command would look like this:

The output would look like this (in my case):

From there, you can see the access point you’re connected to. You can find out the bit rate, frequency, and power management status of the device, and much more. See? Pretty easy.

HINT: If you don’t want all that information, you can always pipe it through grep. That’s pretty simple:

An example output would be:

This is a quick and easy way to learn about your wireless connection. It’s something that’s not too difficult and something everyone can practice to get a little bit more comfortable working in the Linux terminal.

Closure:

Someone asked if I was running out of ideas for articles. I do not believe I am. There’s just so much to write about and so many things that are worth covering. Today we’re learning about your wireless connection. Tomorrow we’ll be on to something else. And that’s okay… 

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.

Subscribe To Our Newsletter
Get notified when new articles are published! It's free and I won't send you any spam.
Linux Tips
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.