Remember Forever
Before and after
Portfolio running
Make folder, clone
Scripts
Activation
Version check
Home page modification
Personal template running
Run server
Home page
Team Picture
What does rm
do?
rm
is the remove command in Linux. It can be used to removed files, folder, or any other data via the terminal. When you use rm
, you specify what you want to remove as well as some flags. To delete a file, you can do rm file_name
. To delete a directory, you can do rm -rf directory_name
. The -r
means recursive and it recursively deletes the files in the folder. The -f
is force and it forcefully deletes the files without confirmation. You don’t need -f
, but if you have a directory with 10000 files, you will need to confirm each file deletion 10000 times. Using f
saves time.
TLDR:
rm
= remove.
rm -rf
for directories.
rm file_name
for file.
rm -rf dir_name
for directories.