How To Delete Files And Folders Or Directories In Ubuntu Linux Command Line

How To Delete Files And Folders Or Directories In Ubuntu Linux Command Line

Channel:
Subscribers:
30,000
Published on ● Video Link: https://www.youtube.com/watch?v=klJ8EKnQxRc



The Letter - Horror Visual Novel
Category:
Tutorial
Duration: 3:40
15,158 views
141


How To Delete Or Remove Files And Folders Or Directories In Ubuntu Linux Command Line

In this video I will show you how to permanently delete or remove files and folders or directories in Linux. The operating system I installed on my Server during this video tutorial was Ubuntu Linux. These commands will work on other Linux operating systems too.

Commands To Remove Files:

There are two ways to delete or remove files in Linux. You can use either "unlink" or "rm".

unlink filename.extension
rm filename.extension

You can delete or remove multiple files in a single command using "rm" and separating your each file you want to delete with a space. The files you delete do not have to have the same extension to be deleted using a single command. You can't use the "unlink" command to remove multiple files.

rm filename.extension filename.extension

Commands To Remove Directories or Folders:
rm -rf directoryname or foldername

To remove files or folders beginning with a letter such as "b" type the following command:

rm -rf b*

You can also add more letters or even words to the above command before the star (*)

To remove files with a specific file extension such as ".json" type the following command:

rm -rf *json

Command Syntax: rm -rf *extension

To delete an entire directory or folder, leaving it empty, type the following command:

rm -rf *

To list all the files and folders in your current directory type the following command:

ls

Abbreviation Key
rm = Remove
r = Recursive (Remove files and folders without being prompted)
f = Force (Remove files and folders with write-protection)
-rf = Recursive Force
* = Wildcard
ls = List

Timestamps:
0:00 Intro & Context
0:10 How To List Files In Current Directory (ls)
0:25 unlink and rm Commands To Delete A Single File In Terminal
1:44 How To Remove Directories Or Folders In A Linux Terminal
2:36 How To Delete An Entire Directory to Empty It Completely

Need A Cheap Server To Practice Linux Commands On?
Get $100 free Vultr cloud credits https://www.vultr.com/?ref=8941242-8H

What is Vultr?
Vultr is a Cloud Hosting company. Vultr allows customers to deploy a cloud server in 15 Cities around the globe in less than 60 Seconds.

Grow your YouTube Channel with vidIQ https://vidiq.com/70s

Ubuntu Linux Tutorials (Playlist) https://www.youtube.com/playlist?list=PLco3v23oibTXMcX9Eh80_8OcnVs1SqsR2

Social Media
SUBSCRIBE https://www.youtube.com/@Websplaining?sub_confirmation=1
Instagram (Thumbnail Collection) https://www.instagram.com/websplaining
Twitter (For Newest uploads) https://twitter.com/websplaining
Reddit (Discussions) https://www.reddit.com/r/Websplaining
Personal Website https://www.websplaining.com

#DeleteFoldersInLinux #DeleteFilesinLinux #DeleteDirectoriesinLinux

DONT FORGET TO LIKE COMMENT AND SUBSCRIBE!




Other Videos By Websplaining


2021-05-02How To Turn Off PVP (Player Vs Player) In Your Minecraft: Java Edition Server
2021-04-30How To Change Default Apps or Programs In Windows 10
2021-04-29How To Install Java On Windows 10
2021-04-23How To Install Malwarebytes Free In Windows 10 And Run Your First Scan
2021-04-18How To Download Email Messages In Gmail - How To Send Emails As Attachments In Gmail
2021-04-10How To Save Email Messages As PDF Files In Gmail
2021-04-08How To Pick Colors From An Image - How To Get HEX & RGB Color Codes From An Image
2021-04-02How To Print Email Messages In Gmail
2021-03-31How To Unsubscribe From Mass Emails - How To Opt Out Of Email Lists
2021-03-29How To Block Email Addresses In Gmail - How To Block Spammers In Gmail
2021-03-27How To Delete Files And Folders Or Directories In Ubuntu Linux Command Line
2021-03-25How To Add More RAM To A Vultr Dedicated Server - Upgrade Vultr VPS Specs (CPU, RAM, SSD, Bandwidth)
2021-03-25How To Fix Minecraft Java Edition Server Failed to connect to the server Failed to verify username!
2021-03-23How To Uninstall Programs And Apps In Windows 10
2021-03-22How To Convert JFIF to JPG Images For Free
2021-03-20How To Change Your Google Account Display Name
2021-03-19How To Install Avast Free Antivirus On Windows 10 And Run Your First Scan
2021-03-16How To Update Minecraft: Bedrock Edition Server - How To Fix Could not connect: Outdated server!
2021-03-16How To Disable or Enable Your TouchScreen and TouchPad on Windows
2021-03-14How To Use Temp Mail - A Free Disposable Temporary Email Address
2021-03-11How To Add Or Remove Clients In OpenVPN



Tags:
How To Delete Files And Folders Or Directories In Ubuntu Linux Command Line
linux
ubuntu
terminal
command line
How To Delete Or Remove Files And Folders Or Directories In Ubuntu Linux Command Line
ubuntu linux
rm
rm -rf
remove
unlink
how to delete files in linux terminal
how to delete folder or directories in linux terminal
linux terminal
how to remove multiple files and folders or directories in ubuntu linux
force
recursive
force recursive
remove force recursive
rm -rf *



Other Statistics

The Letter - Horror Visual Novel Statistics For Websplaining

At this time, Websplaining has 16,595 views for The Letter - Horror Visual Novel spread across 2 videos. His channel published less than an hour of The Letter - Horror Visual Novel content, less than 0.30% of the total video content that Websplaining has uploaded to YouTube.