log.gz via regex : paths : /var/log patterns : "^.*?\\.(?:old|log\\.gz)$" size : 10m use_regex : yes - name : Find /var/log all directories, exclude nginx and mysql : paths : /var/log recurse : no file_type : directory excludes : 'nginx,mysql' # When using patterns that contain a comma, make sure they are formatted as lists to avoid splitting the pattern - name : Use a single pattern that contains a comma formatted as a list : paths : /var/log file_type : file use_regex : yes patterns : _. name : Find /var/log files equal or greater than 10 megabytes ending with. log.gz : paths : /var/log patterns : '*.old,*.log.gz' size : 10m # Note that YAML double quotes require escaping backslashes but yaml single quotes do not. name : Recursively find /tmp files older than 2 days : paths : /tmp age : 2d recurse : yes - name : Recursively find /tmp files older than 4 weeks and equal or greater than 1 megabyte : paths : /tmp age : 4w size : 1m recurse : yes - name : Recursively find /var/tmp files with last access time greater than 3600 seconds : paths : /var/tmp age : 3600 age_stamp : atime recurse : yes - name : Find /var/log files equal or greater than 10 megabytes ending with. Controlling how Ansible behaves: precedence rules.Collections in the Theforeman Namespace.Collections in the T_systems_mms Namespace.Collections in the Servicenow Namespace.Collections in the Purestorage Namespace.Very new to linux and appreciate any help I can get. The above command searches all the files or directory name which matches kgf. Collections in the Openvswitch Namespace How can I find a specific file from a Linux terminal Ask Question Asked 11 years, 10 months ago Modified 2 years, 8 months ago Viewed 161k times 53 I am trying to find where index.html is located on my linux server, and was wondering if there was a command to do that. Syntax: locate option search pattern Let us assume that we are looking for a directory called kgf in the present working directory.Collections in the Netapp_eseries Namespace.Collections in the Kubernetes Namespace.Collections in the Junipernetworks Namespace.Collections in the F5networks Namespace.Collections in the Containers Namespace.means search only in the current directory, it is best to search everything from root if you really dont know. Collections in the Cloudscale_ch Namespace sudo find / -type d -name 'postgis-2.0.0'.Collections in the Chocolatey Namespace.Collections in the Check_point Namespace.Virtualization and Containerization Guides.Protecting sensitive data with Ansible vault.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |