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

How to create and delete multiple files / folders at a time in Linux system

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

How to create and delete multiple files / folders at one time in Linux system. Create / delete multiple files / / create 5 files in succession, named file1, file2,.. file5 [root @ server ~] # touch file {1.. 5} [root@server ~] # lsanaconda-ks.cfg Downloads file3 hello install.log Pictures testDesktop file1 file4 hello.c install.log.syslog Public VideosDocuments file2 file5 hello.o Music Templates [root@server ~] # rm-rf file*2. Create / delete multiple directories [root@server ~] # mkdir folder {1.. 5} [root@server ~] # lsanaconda-ks.cfg file1 file5 folder4 hello.o Pictures VideosDesktop file2 folder1 folder5 install.log PublicDocuments file3 folder2 hello install.log.syslog TemplatesDownloads file4 folder3 hello.c Music test [root@server ~] # rm-rf folder* [root@server ~] # lsanaconda-ks. Cfg Downloads file3 hello install.log Pictures testDesktop file1 file4 hello.c install.log.syslog Public VideosDocuments file2 file5 hello.o Music Templates

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