Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-03 04:55:06 10月16日 Update

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

Tags: Files multiple folders systems directories Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Xiaomi Docker NVidia Linux