Traditional Culture Encyclopedia - Weather forecast - How does ubuntu delete folders?

How does ubuntu delete folders?

Ubuntu system

Delete directory: rmdir

1. You can use the rmdir command to delete the directory. You must leave the directory and the directory must be empty, otherwise you will be prompted that the deletion failed.

2. The command to recursively delete the folder a/b/c/e in the current directory: rmdir A/B/C/E-P.

3. Delete file: rm (recommended)

Room xxx -r

4. You can delete files or directories through rm. Be careful when using the rm command, because once a file is deleted, it cannot be recovered. In order to prevent files from being deleted by mistake, you can use the -i parameter after rm to confirm the files to be deleted one by one.

The following table shows common parameters and their meanings:

If the prompt does not have permission, plus the sudo command

Sudorum/ file path

If it is not ubuntu system, and the prompt does not have sudo command permission.

Upgrade the user to root, and then delete it.

Extended data

Ubuntu system is based on Debian distribution and GNOME desktop environment. Ubuntu's goal is to provide ordinary users with an up-to-date and fairly stable operating system, which is mainly built by free software, which can be used for free and supported by the community and professionals.

UbuntuKylin (Kirin) team has successively launched such practical software as "Youke Assistant", "Jinshan Aauto Quicker for UbuntuKylin", "Customized Fcitx Input Method Panel" and "Dash Chinese Picture & Video Search", and further improved the original applications such as China Lunar Calendar and weather plug-in, and upgraded WPS for Ubuntu kylin.

In the system startup optimization, desktop beautification, system customization, China culture and other aspects have also done detailed and in-depth work. At the same time, CCN Joint Laboratory actively cooperates with well-known domestic software and hardware manufacturers.

References:

Baidu encyclopedia? Ubuntu system