Blog → Post


(TIP) Finding files
tips to ease the move to Linux
by @News, march 26, 2019, 02:09am utc

find is a CLI1 way to locate files.
$ sudo find / -type f -mtime 0 -mtime +1

the -mtime 0 -mtime +1 parameters say to find only files created today. 1 day old.

-mtime +3 would say to return the last 3 days worth of files.

Running as sudo (root) allows you to prevent seeing a large swath of warning messages, such as the following:

$ sudo find / -type f -mtime 0 -mtime +1
find: '/proc/23237/task/23237/fdinfo': Permission denied
find: '/proc/23237/task/23237/ns': Permission denied
find: '/proc/23237/task/23245/fd': Permission denied
find: '/proc/23237/task/23245/fdinfo': Permission denied
find: '/proc/23237/task/23245/ns': Permission denied
find: '/proc/23237/task/23246/fd': Permission denied
find: '/proc/23237/task/23246/fdinfo': Permission denied
find: '/proc/23237/task/23246/ns': Permission denied
find: '/proc/23237/fd': Permission denied
find: '/proc/23237/map_files': Permission denied
find: '/proc/23237/fdinfo': Permission denied
find: '/proc/23237/ns': Permission denied
find: '/sys/kernel/debug': Permission denied
find: '/sys/fs/fuse/connections/8388626': Permission denied

  1. CLS = Command Line Interface

tags: Beginning users, Tips
RSS Feed
      Privacy Policy
Footer done in Inkscape
© 2018-2020 La Vojo. All Rights Reserved.