![]() ![]() Commands to delete files in Linux and their example usage Let's begin this with some simple commands in Linux used to delete files. Another major reason for writing this post is the time i spend on one of our crawler servers, to delete millions of files with very small size (few KBs).Īs i told, if you are dealing with small number of files, then the operation will be fast compared to a large number of files which are of very small size. We will begin this tutorial with some simple file deletion methods, and then will compare the speed with which different method completed the task of file deletion. I am writing this post, to find out the fastest method to delete large number of files in Linux. If you are interested in understanding inodes, i would recommend reading the below post, before going ahead, as we will not be discussing inode related details in this post. Inodes are the building blocks of Linux operating system. How an inode gets modified, during file deletion is an important aspect to understand. When we talk about files in Linux, its all about inodes rather than files. There are many operational differences in deleting files under different types of file system. What happens when you delete a file in Linux, depends on the kind of file system, on which the file you want to delete resides. But if the number of files is quite large, then the deletion operation takes quite long to complete. Although it is quite fast and seamless operation when it comes to deleting a single or a handful of files in Linux or any other operating system. ![]() This kind of task comes under a day to day list of tasks that a user does. Creating, deleting, and modifying files is one of the common task that a user does in any operating system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |