Select Page

ABIOLA RASP – Raspberries for African School Projects

Wie können wir helfen?

< Alle Themen
Print

Delete file and folder

no-808 au-03

Deleting a file

rm is used to delete a file. At this section we’ll delete a file using rm command.

1) abiola text file that we want to delete.

2) Run below command to delete it.

rm abiola

Deleting a folder

r parameter must be used to delete a folder. It stands for recursively.

1) Abiola folder that we want to delete.

2) Run below command to delete it.

rm -r Abiola/

If you want to force to remove a file or folder, you need to use f parameter.
rm -f abiola
rm -rf Abiola/

NOTE:
A file or folder that is deleted using rm, you can not restore them from Trash!!!

This article is a component of the “Linux Introduction” course from the ABIOLA online Academy.

Please refer: https://abiola-academy.eu/courses/linux-introduction/?lang=en

Zurück Close the terminal
Weiter Create a folder from terminal
Inhaltsverzeichnis