linux-recent-files
Lists all recently created or modified files in all directories under the root directory. If no from
or span
options are specified, it only lists files created or modified in the last 1 day by default.
Syntax
linux-recent-files [OPTION]
Optional Parameter
from=yyyyMMddHHmmss
- Start date and time of the search period in the form of
yyyyMMddHHmmss
(default: none). The time period for the search includes the specified time point. If you provide only the first part, the command recognizes the remaining digits as0
. For example, if you provide20130605
, the command recognizes it as20130605000000
(June 5, 2013, 00:00:00). This option cannot be used withspan
. span=INT{y|mon|w|d|h|m|s}
- Time range to search the recent files based on the current time (default:
1d
). You can specify time in units ofy
(year),mon
(month),w
(week),d
(day),h
(hour),m
(minute), ands
(second). For example,10s
refers to "the last 10 seconds" based on the current time.
Description
After running the linux-recent-files command, the output fields are as follows:
Output Fields
Field | Type | Description |
---|---|---|
file_path | String | File path |
file_name | String | File name |
file_type | String | File type |
permissions | String | Permissions |
file_size | Long | File size |
file_ctime | Date | Last change time |
file_mtime | Date | Last modification time |
file_atime | Date | Last access time |
owner_read | Boolean | Whether owner read permission is given |
owner_write | Boolean | Whether owner write permission is given |
owner_execute | Boolean | Whether owner execute permission is given |
group_read | Boolean | Whether group read permission is given |
group_write | Boolean | Whether group write permission is given |
group_execute | Boolean | Whether group execute permission is given |
others_read | Boolean | Whether other read permission is given |
others_write | Boolean | Whether other write permission is given |
others_execute | Boolean | Whether other execute permission is given |
Usage
-
View a list of files created or modified in the last day
linux-recent-files
-
View a list of files created or modified in the last 7 days
linux-recent-files span=7d
-
View a list of files created or modified after January 1, 2021
linux-recent-files from=20210101