Linux: File search - how to find the data you are looking for
If you are looking for a specific file or folder in Linux, you can either use the file explorer to search for it or use the terminal. There, with the help of a search command, you can quickly and conveniently track down files.
How to search for files in Linux
If you are looking for a single file, you can simplify the search enormously by using the terminal.- Call the Linux terminal. This works either via the key combination [CTRL] + [ALT] + [T] or by entering "Terminal" in the search.
- Enter the command "find -iname <filename>" and confirm by pressing [Enter].
- You will then get the path to the file you are looking for.
- Even faster is the search with the command "locate", which you must first install on some Linux computers with "sudo apt-get install mlocate".
- Then enter the command "locate -i <filename> and confirm with [Enter].
- Call the terminal and enter the command "find - name folder name" and confirm the input with [Enter].
- You will then get the file path to get to the folder you are looking for.