Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Is Baidu cloud file still on the server after it has been deleted?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Is Baidu cloud file still on the server after it has been deleted? Generally speaking, after the files on the cloud server are completely deleted, they will no longer be on the server and will be cleaned up. But sometimes when we delete the files on the server, we may find that the hard disk space has not been freed. What's going on?

For example, after logging in to the Linux CVM and executing the rm command to delete the file, and executing the df command to check the hard disk space, you may find that the available hard disk space has not increased after deleting the file.

The reason is that when you delete a file through the rm command, other processes are accessing the file, and if you view it by executing the df command, the deleted file will take up space that is not immediately released.

Solution:

1. Execute the lsof | grep deleted command with root permission to view the PID of the process that is using the deleted file.

2. Kill the corresponding process by ordering kill-9 PID.

Rm is a delete command that permanently deletes files or directories specified in the file system. When you delete a file or directory using the rm command, no prompt is generated. The basic format of this command is:

[root@localhost ~] # rm [options] file or directory

Note that the rm command is a destructive command because the rm command permanently deletes files or directories. This means that if a file or directory is not backed up, it cannot be restored once it is deleted using the rm command. Therefore, it is prudent to delete using the rm command.

Is one of the early providers of CVM applications in China, the CVM is in a full 10 Gigabit cluster environment, high-performance hardware and network architecture, affordable, 7X24 hourly worry-free service!

As a senior professional cloud computing service provider and cloud security service provider in the industry, it is committed to providing cloud servers for Internet enterprise users and enterprise users in traditional industries. Its products have the characteristics and advantages of "security and stability, easy to use, high service availability, high performance-to-price ratio" and are designed to be customized for enterprises to meet the needs of rich and diversified application scenarios.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report