当前位置:首页 > 虚拟机 > 正文

虚拟机终端删除命令(虚拟机文件夹删除命令提示)

What is the command to delete files and folders in Linux

When we use a Linux virtual machine, we all know that the operations in the virtual machine are not like ours Windows windows can also be operated directly on the graphical interface with the mouse. The Linux interface requires code to complete related operations. So for the command statement to delete files in Linux, as far as the editor knows, you can enter rm
-f in the command window and add the name of the file to be deleted. Let’s see how the editor did it for the specific steps~




What is the command to delete files and folders in Linux
1. Delete files Command:


rm-f file name


The file will be forcibly deleted without prompt


Needed Note:


Pay special attention when using rm-rf. There is no recycle bin in Linux, delete it carefully


2. Delete the folder and the files in the folder. All file commands:


rm-rf directory name


Among them:


-r: Recurse downwards Delete


-f: Forced deletion directly without any prompt




More Linux related information:
>>>Where is the hosts file in Linux<<<


>>Linux sets the default gateway<<<


How to delete VMwaretools?
1. There are two ways to install it from the rpm package:
(1) In the graphical interface, start->Utilities->Software Package Manager
Select VMwareTools and click to uninstall the software package.
(2) Command line method: Open the terminal, enter rpm–eVMwareTools and press Enter to delete.
2. If installed from the tar package, open the terminal, enter and press Enter to delete.

How to delete the wrong code in the virtual machine
The steps to delete the wrong code in the virtual machine are as follows:
1. Open the virtual machine.
2. Enter the virtual machine input source.
3. Click the trash can button in the lower left corner.
4. The trash can button is the delete button, just click OK.