![]() Let’s take a look at various options Linux provides its users: Using Find to Search by Name The third argument is where you will specify the relevant search term. This could be the file’s name, type, date of creation, etc. The second argument is dedicated to your file. In order to find the current directory you are in, use the pwd command. ~ (tilde) - to search from your home folder.(dot) - search from the folder you’re currently working on (current directory). It can be replaced with several arguments, including: The argument is the origin point of where you want to start the search. ![]() It starts with the keyword find, which alerts Linux that whatever follows after will be used to find your file. ![]() The most popular command to find and filter files on Linux is find. If you don’t know how to connect to VPS, you can follow this guide before proceeding further. That being said, the steps should also work for Debian, CentOS, or any other distribution of Linux. The locate command, on the other hand, is a faster option that relies on a pre-built database for quick file searches but may not provide real-time updates.Īn important thing to note is that we will be using Ubuntu VPS in this guide. The find command in Linux is a versatile tool for searching files and directories based on various criteria, such as name, type, and size, with results generated in real-time. What Are the Find and Locate Commands in Linux
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |