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

The method of deleting soft connection in linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces the method of deleting soft connections in linux, which is very detailed and has certain reference value. Friends who are interested must finish reading it!

First, let's create a file # mkdir test_chk#touch test_chk/test.txt # vim test_chk/test.txt (just write something in this test.txt)

Let's create a soft link to the test_chk directory

# ln-s test_chk test_chk_ln

Now that the soft link has been created, let's see how to delete it

Correct deletion method (delete soft links, but do not delete actual data)

Rm-rf. / test_chk_ln

Wrong way to delete

Rm-rf. / test_chk_ln/ (this will delete the content under the original test_chk)

Now you see the difference, so when you delete soft links with rm-rf, pay attention!

The above is all the contents of linux's method of deleting soft connections. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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: 262

*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