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.
Before and after
Portfolio running
Personal template running
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 userm
, you specify what you want to remove as well as some flags. To delete a file, you can dorm file_name
. To delete a directory, you can dorm -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. Usingf
saves time.TLDR:
rm
= remove.rm -rf
for directories.rm file_name
for file.rm -rf dir_name
for directories.