Change Time: The last time the file’s inode metadata was changed.įor example, to find files in the /usr directory that were modified in the previous day, use the following command: find /usr -mtime 1.Modification Time: The last time the contents of the file were modified.Access Time: The last time a file was read or written to.Here we will talk about how to find time recording files in the Linux Ubuntu system. To find files over 800 megabytes in the /usr directory, Use the following command: find /usr -size +800M Find File By Time using Terminal To find files that are less than 100 bytes, Use the following command: find /usr -size -100c The following commands has been given for this:Īnd also know as some commonly used size suffixes:įor example, the following command will find each file in the /usr directory that is exactly 60 bytes: find /usr -size 60c You can also find files by their size and time in the Linux ubuntu system. b: block devices Filtering by Time and Size using Terminal.There are other options in the type to find the file. Use the following command to find with the -type parameter is as follow: find -type type_descriptor query Use the following command to find all files that don’t adhere to a specific pattern is as follow: find -not -name "query_to_avoid" Finding by Type using Terminal Use the following command to find a file by name but ignore the case of the query is as follow: find -iname "query" Use the following command to find a file by name is as follows: find -name "query" Filtering by Time and Size using Terminal Finding by Name using Terminal.How to Find File In Linux Ubuntu from Terminalįollow the below-given steps to find the files by name, size, and type in Linux Ubuntu using the terminal is as follows: Find files in Linux Ubuntu using the terminal Through this tutorial, we will learn how to find files by name, size, and type in Linux Ubuntu using the terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |