How To: Open FeatherPad At A Specific Line

Today’s article is going to show you how to open FeatherPad at a specific line. It won’t be a very long article. It won’t be a difficult article. But, ideally, it’ll be a handy article. Read on!

FeatherPad is a pretty decent, lightweight text editor. It reminds me of LeafPad quite a bit, but it’s its own separate project. You will find that FeatherPad is the default GUI plain text editor with Lubuntu, which is how I first learned of it.

FeatherPad supports things like tabs, tab drag and dropping, and can even do things like automatically close brackets when you open them. There are plenty of options, but it’s a basic text editor. You can even use CTR: + + to zoom in, and you can use CTRL + to zoom out. That’s pretty neat.

Me? I love the ability to save a session and have the previous session open automatically when the application is started. FeatherPad lets me have a couple dozen text files that I want to keep open at all times, and this is how I do that. I just use the session manager and open the previous session when FeatherPad starts.

If you’re looking to try a new graphical text editor, I would suggest taking a look at FeatherPad. It’s certainly in your default repositories, assuming you’re using a major distro. As I mentioned above, it’s still a pretty basic editor, that could also be used as a code editor – so don’t expect too much from it, as it’s not intended to do all that much.

So then, let’s learn how to…

Open FeatherPad At A Specific Line:

You can open FeatherPad via the GUI and just navigate to the intended line. It supports line numbering, so that’s not a problem. You can also start FeatherPad from the terminal, which is what we’ll be doing here. Press CTRL + ALT + T and your default terminal should open.

With your terminal now open, you should probably start by installing FeatherPad. It is installed by default in Lubuntu, but to install it in something like Ubuntu you’d run this command:

Now, if you try to run ‘man featherpad‘ you’ll find out that there’s no man page associated with FeatherPad. So, to access the help documents, you’d just run:

Of course, that right there’s enough for the article. What you need to know is mostly right there in the help pages. They’re not even complicated, but that’d make for a very short article. So then…

If you want to open LeafPad at a specific line, it’s this:

A real world example of that would be something like:

You can even open LeafPad at a specific line AND at a specific column. That command isn’t much more difficult, it looks like this:

Again, for a real world example, if you want to open ~/.bashrc on line 12 and at column 5, the command would look like:

Bonus:

In all those instances above, FeatherPad will be attached to the terminal. If you close the terminal FeatherPad will also close. So, if you start the application from the terminal, you have to leave that terminal window open until you’re done with it.

If you close the terminal, FeatherPad would also close. On top of that, there’s no new line for you to continue typing further commands into the terminal. So, you can’t keep using that terminal while FeatherPad is open.

We got this figured out!

Which is also why you might want to read this previous article:

Don’t Let Applications Close When The Terminal Is Closed

Or, to save you some reading time, you can just add a ‘&‘ at the end of the terminal command to open FeatherPad at a specific line number. Like so:

If you use that command, with the ‘&‘ at the end of it, it will detach FeatherPad from the terminal, meaning you can keep FeatherPad open while still using the terminal or that you can even close the terminal while that instance of FeatherPad remains open.

Closure:

And there you have it. You have another article! This time it turned out a bit longer than I expected. I wasn’t going to include the bonus content but that seemed like a good idea. Either way, it’s not very complicated and should be a quick read.

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.

Sync Mega.nz On Ubuntu 22.04

In today’s article, we’re going to learn how to sync Mega.nz on Ubuntu 22.04. It’s an easy enough article, one even a new user can follow. Read on, my dear readers!

It’s a holiday when/where I write this, largely ’cause I wasn’t ahead of schedule, so a nice and easy article sounds like a good idea. Many of my readers are from the United States, so they’ll be in a turkey coma today. Besides, my right wrist is a bit angry today, so it’s a good excuse for a simple article!

This article was prompted by a question on a forum I frequent. The user was asking about cloud storage solutions that work with Linux. Many of them do, but Mega.nz seemed like a good idea. They support various versions of Linux, but we’re going to concentrate on learning how to sync Mega.nz on Ubuntu 22.04.

You’re going to need an account with Mega.nz. Click that link and sign up. They’ll give you 20 GB of free cloud storage and they encrypt everything you store with them. The URL may redirect to a .io address, but it’s the same company.

The folks at Mega.nz say that not even they can recover your data, so you’ll want to backup your key and never forget your password. But, I’ve used them for a long time and had no problem with their services.

As near as I can tell, they’re telling the truth about the encryption. So, you get 20 GB of storage space for free (among a bunch of other features) but you also get some pretty rock solid privacy. That’s why I’m writing the article about Mega.nz and not some other cloud storage provider.

Sync Mega.nz On Ubuntu 22.04:

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 terminal now open, you want to use wget to grab the .deb file needed to install Mega.nz’s sync application. We’ll start by moving to the ~/Downloads directory before initiating the download, and the command will look like:

Then, we’re going to install the Mega.nz sync application right there in the terminal. We’re not going to mess around with a GUI application like GDebi. So, that command would look like:

And that’d be all you need to do – from the installation side. The application will appear in your application menu and you can configure it from there. That’s all going to be straightforward and the help pages at Mega.nz will see you through to the end – but my readers are smart enough to not actually need the help pages.

Closure:

That’s it! That’s all there is to it. You install the Mega.nz sync application, set up folders to sync, let the application run in the background (or only when you start it), and you can now sync Mega.nz on Ubuntu 22.04! I told you that it wasn’t going to be all that hard.

It’s even easy to sign up for an account on Mega.nz. Best of all, it’s 20 GB of encrypted cloud storage for free. On top of that, you can EASILY adjust this article to fit with a number of distros and a number of releases. It’s not hard and I’m sure you can figure it out.

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: Show systemd Services

Today we’re going to have a quick and easy article, one where I show you how to show systemd services. We’ll explore a way to show all services and those services that are currently running. It’ll be nice and easy. 

At this point, systemd isn’t really all that controversial. It was for a while and there are still some people who work kinda hard to not use systemd. That’s their right and I support their choices, but I dare say that most of us now use systemd and that aiming articles at the majority is a good idea. So, I have no problem covering systemd stuff – and I have even less trouble treating it as though systemd is the default.

It’s kinda hard to pin down a definition for systemd. It’s far more than an init system, which it was replacing fairly early on. It has grown to encompass quite a bit more than that. So, let’s just look at how Wikipedia describes systemd.

systemd is a software suite that provides an array of system components for Linux[6] operating systems. Its main aim is to unify service configuration and behavior across Linux distributions;[7] Its primary component is a “system and service manager”—an init system used to bootstrap user space and manage user processes. It also provides replacements for various daemons and utilities, including device management, login management, network connection management, and event logging.

So, you can see it’s pretty expansive. For this article, we’ll be looking at the service manager aspect and how to show your systemd services. Let’s just jump into the article, so that we can keep it relatively brief.

Show systemd Services:

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. (I say this so very, very often…)

So, I said I wanted to keep this article brief – and there’s really no reason to make it longer, so this is how you show all the myriad systemd services:

Or you can try:

Either one or both of those commands should show you all the systemd services, regardless of what state they’re in. Though it should show you the state of the services listed.

A more useful command for most of us would be for us to show the various systemd services that are currently active. Of course you can do that! It’s Linux! You can do everything! It’s not even hard! Just try this command:

You can also try this command:

If you pay attention to the syntax, you can also opt to show those systemd services that are inactive. It’s probably pretty obvious, but try this:

Or you can try this one (’cause you have choices):

So, as you see, you can show the systemd services in total, show the active systemd services, or choose to show the systemd services that are inactive. It’s not a complicated task and there’s no reason to make it seem complicated. As the tag line says, we’re slowly but surely bringing you up to speed!

Closure:

And there you have it. You have a new article! This time you’ve learned how to show all of your assorted services – and to show the services in all their running states. Some folks like to make this sort of thing look complicated, but it’s really very easy. So, enjoy the new article and know that I appreciate your readership.

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: Compress And Decompress .bz2 Files

In today’s article, we’re going to discuss how to compress and decompress .bz2 files. This is something you may eventually need to know, so I’ll cover it here. I’ll just cover the basics, as most folks won’t need to know anything more than the basics. This should actually be a fairly short and direct article. There’s not a whole lot to it.

If you don’t already know, .bz2 files are bzip2 files. You’ll find that bzip2 is an opensource compression program that gets some regular usage, and you’ll sometimes find downloaded files that are compressed with this format. You may also, for compatibility reasons, want to compress files with bzip2 to share with other users who are already set on using the .bz2 format.

For the curious, the bzip2 man pages define this particular application as (and, as always, I highly encourage folks to read the man pages themselves – this one being a bit more complicated than others):

bzip2, bunzip2 – a block-sorting file compressor

Again, we’re going to just cover how to compress and decompress .bz2 files in this article. That’s all we’re going to do. You don’t tend to come across too many files compressed with bzip2, but they do show up from time to time.

Because of that, we’re going to cover how to compress and decompress those files in this article. It’s gotta get covered eventually, so it might as well be now. Read on!

Compress And Decompress .bz2 Files:

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.

You might actually not have bzip2 installed. It’s not always installed by default. Fortunately, as far as I can tell, it shares the same name in every major distro, that is ‘bzip2‘. So, just go ahead and install it like you’d install any other software. For example, if you’re using Fedora, your command would look similar to:

See? I didn’t use Ubuntu as the default example! We’re mixing everything up today! (Use apt if you’re using a distro with apt, like Debian or Ubuntu and derivatives.)

At this point, you should probably have a .bz2 file to work on for the sake of the article. Seeing as I have no idea what you’ve already downloaded, we should probably start with you making one – just so you can see how to decompress it. 

To compress a file with bzip2, the command looks like (See the detailed warning below this command, do not use this command without reading the warning!):

That will create a file with the same filename but make a .bz2 file. However, this is a destructive act. If you use the above command, the original file will be deleted! If you wish to keep the original file, you need the -k (keep) flag. That looks like:

That command will not remove the original file, as would be the default. Obviously, the -z flag means ‘zip’.

If you want to decompress a file with bzip2, the command looks like:

This will extract the file(s) into the current directory. Of course, the -d means ‘decompress’. This is not a destructive operation. The original and extracted files will remain on your file system.

As you can see, it’s not all that difficult to compress and decompress .bz2 files. You might go years not seeing any files in that format, but you’re eventually going to bump into one and now you know  how to deal with it in the terminal – and how to respond in kind.

Closure:

And there you have it. You have yet another article. We’re getting close to 300 articles at this point, so it has been a long journey. If you feel like writing an article, let me know! Anyhow, you can now compress and decompress .bz2 files easily enough, and that was the point of the article.

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: Make Google Chrome Use Less RAM (And Other Browsers)

In today’s article, we’re going to explore one way to make Google Chrome use less RAM. This is also useful for other browsers and will reduce CPU usage as well. This will be a shorter article (I was wrong), outside of the norm for the articles I tend to write.

This article has an update:

How To: Make Google Chrome Use Less RAM (UPDATE)

Though, to be fair, the efficacy of this depends a great deal on how you use your browser. If you’re a light browser user, this probably isn’t the article for you. Otherwise, if  you’re anything like me, read on!

See, right this very minute, I have 108 open tabs in this browser. On top of that, I have three browser instances open. I do different things in different browsers, as a way to both organize myself and to keep things compartmentalized. Even with gobs of RAM, the browsers consume a ton of resources.

While I do make use of bookmarks, I also have a lot of open tabs that I return to with some regularity. Eventually, you’ll have to restart Chrome, assuming you also don’t reboot as often as I do. Browsers just consume more and more resources, ’cause the concept of a simple webpage is gone as everyone uses the latest libraries and insists on being interactive.

This increasing resource usage equally true with Firefox, Chromium, Opera, Brave, etc… If you have enough tabs open, it’s gonna consume a bunch of resources, continuing to use more as time passes. This can lead to a system, or just browser instance, that slows down or even becomes unresponsive. It can even cause the system to freeze entirely.

Well, if you try this one simple trick (Ha! I crack me up!) then you can probably resolve this issue. This article will tell you how!

Make Google Chrome Use Less RAM:

For once, you don’t have to open a terminal for this article!

Instead, crack open Google Chrome – or any other major browser. This works for most of the popular browsers. As long as it’s in the Chrome or Firefox family, you should be able to use this extension.

I guess I should call this a review. It kinda is. 

As I was saying in the intro, my browsers were consuming too many resources. They’d chew up RAM, sometimes chew up CPU, and generally take more resources than I felt they needed to.

I knew what I wanted to do, so I went looking for a browser extension that’d let me do what I wanted. I tried a few extensions that did what I wanted, but settled on the add-on/extension called “Auto Tab Discard“. 

Auto Tab Discard is available for both Google Chrome and Firefox. What it does is, after a certain amount of time (which you set) it ‘discards’ tabs. This is handier than you might think!

Auto Tab Discard unloads unused tabs from memory, reducing RAM consumption by an immeasurable (but about 60% in my case) amount – as well as reducing CPU usage, though CPU usage is usually pretty minimal for non-interactive tabs that aren’t currently open.

You can set the time for this, meaning you can make Auto Tab Discard discard tabs after being inactive for 15 minutes, for example. If this was a blanket statement, then the browser extension would be pretty useless – but it’s not. After all, you probably don’t want all tabs to be automatically discarded.

To that end, you can also set certain tabs to never be discarded. You basically whitelist the domain and those tabs will not be discarded automatically with Auto Tab Discard. On top of that, and this is moderately important, you can tell Auto Tab Discard to *not* discard tabs that have audio or video playing.

For example, you can load up a YouTube playlist and let it run in the background and Auto Tab Discard will let it remain resident in memory. This also works for tabs just playing audio. As near as I can tell, this feature works fine – and I’ve been using the extension for well over a month now.

That’s how I use Auto Tab Discard. You can also manually choose to discard a tab. If you need to, you can even tell Auto Tab Discard to discard everything but the current tab. You can note discarded tabs by the ‘zz’ in the changed tab title. There are a ton of options that let you customize Auto Tab Discard for yourself. Click on the extension’s icon to see a bunch of other options for Auto Tab Discard.

Hands down, this is the best extension I could find that would make Google Chrome use less RAM and CPU. As a bonus, it’s also available for Firefox!

Bonus:

While doing all this testing, I decided to solve another problem. Any time I’d open a YouTube tab, even by mistake, it would automatically start playing the video. That was really annoying – especially as I was now discarding those tabs and they’d automatically load when I clicked on a tab by mistake.

For this problem, and I have a lot of YouTube tabs open, I managed to find “Stop Autoplay For YouTube“. I only make use of the version for Google Chrome, but I’m sure something exists for Firefox. For some reason, it doesn’t seem to always work, but it works often enough for me. It’s still annoying, but far less often.

I just haven’t trialed anything in Firefox because Firefox isn’t one of my favorite browsers. Because of this, I’m reluctant to recommend any specific extension. I’m sure there’s a browser add-on for Firefox that will stop YouTube from autoplaying videos. If you do find a good one, feel free to recommend it as a comment.

But, for Google Chrome (and Chromium, of course) I find the Stop Autoplay For YouTube to be a handy extension, doing useful things. If your browsing habits are anything like mine, you too might find it useful. If you don’t have 20 YouTube tabs open (technically actually discarded with Auto Tab Discard) like I do, you’ll find it helpful when you mis-click and a YouTube video starts playing automatically.

Closure:

Well, that was a different article. Today’s article is going to be useful to a subset of people, some of whom will be using operating systems other than Linux. Hopefully more people will learn how to make Google Chrome use less RAM, even if they’re using Windows or a Mac. You can even use Auto Tab Discard in the Microsoft Bing browser, for that tiny subset of users who do use that browser on Linux.

Automatically discarding tabs makes computing so much nicer and it means I don’t have to change my ways all that much. I just let tabs get discarded and that means my RAM usage is a whole lot less than it used to be. The browsers accounted for well over 60% of my RAM.

So, if you’re anything like me, this will help you reduce the resources used by your browsers. And, if you’re anything like my, at least 90% of your computing time will be spent in your browser.

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.

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