Linux 101: How to delete files and folders from the CLI

In another entry of his Linux 101 series, Jack Wallen shows you how to delete files and folders from Linux using the Command Line Interface (CLI).

Image: Jack Wallen

When you’re using a GUI, deleting a file and/or a folder is as simple as right-clicking and selecting delete. But when you’re logged into a GUI-less server, you won’t have that option. What do you do? 

As you probably expected, there’s a command for that. In fact, there’s a single command you can use for both instances. How you use that command varies, depending on what you’re deleting. 

SEE: 5 Linux server distributions you should be using (TechRepublic Premium)

Let me explain. 

The command in question is rm, which stands for remove. The command is really simple to use. For example, you have a file named TEST and you want to delete it. For that,…

Keep reading the full content on the TechRepublic site.


Get Free Email Updates!

Signup now and receive an email once I publish new content.

I agree to have my personal information transfered to ConvertKit ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Spread the love

Leave a Comment