spanskiblog/content/posts/Locate.md

21 lines
495 B
Markdown
Raw Permalink Normal View History

2022-12-24 17:42:40 +01:00
2022-12-24 17:09:22 +01:00
+++
2023-02-27 21:59:02 +01:00
date="2023-02-03"
2022-12-24 17:09:22 +01:00
author="spanskiduh"
title="Locate"
2022-12-24 17:42:40 +01:00
description="click to read about Locate"
2022-12-24 17:09:22 +01:00
+++
# Locate
2022-12-24 22:54:34 +01:00
2022-12-24 17:09:22 +01:00
### Examples of locate command
use whatis/man locate for more info
- `locate --all "passwd"`
- `locate /etc --all "passwd"`
- `locate "passwd" | grep "/etc/"`
- `locate --all "*.conf" | grep resolv`
- `locate --all "*conf" | grep proxychains`
- `locate --all -c "*.conf"` - Count number of files whith provided name / pattern
Use `-i` parameter to search uppercase/lowercase !