Web hosting uk - find: -type Option The -type option enables us
find: -type Option The -type option enables us to specify the type of file to search for, as in this example: find / -type d -print -type d indicates directories, so only files that are directories are displayed. In this example, all directories in the whole system are displayed. Notice that no -name option has been given, so you display all directories regardless of their names. Table 18.2 lists other types that are available. Table 18.2 Types Available for the find Command Type Description f Regular or normal file d Directory b Block special device file c Character special device file (raw) l Symbolic link p Named pipe find: -mtime, -atime, -ctime The find -mtime option enables us to locate files that were last modified recently or have not been modified in a long time: find / -mtime -5 -print -mtime takes an integer argument that is measured in days. This find command locates files that were last modified fewer than five days ago. This is a useful option when you are sure you modified a file recently but can’t remember its name or directory. Following -mtime you must specify an integer value: +n Find only files last modified more than n days ago n Find only files last modified exactly n days ago -n Find only files last modified fewer than n days ago To find files that have not been modified in the last n days, look for files that were last modified more than n days ago: find / -mtime +90 -print This shows all files that were last modified more than 90 days ago: that is, files that have not been modified
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.