{"id":3186,"date":"2021-01-05T12:48:55","date_gmt":"2021-01-05T12:48:55","guid":{"rendered":"https:\/\/linuxways.net\/?p=3186"},"modified":"2021-01-05T12:54:49","modified_gmt":"2021-01-05T12:54:49","slug":"how-to-find-files-in-debian-10","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-find-files-in-debian-10\/","title":{"rendered":"How to Find Files in Debian 10"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>Being a computer user, we all work with different types of files quite often. However, at times, there is such a large number of files on our computer system that it gets nearly impossible to keep the names of all those files at your fingertips. At times, you even tend to forget if a certain file exists on your system or not. In these situations, we try to look for the different ways in which we can find files in our system. Today\u2019s article is focused on the methods of finding files in a Debian 10 system.<\/p>\n<h2>Methods of Finding Files in Debian 10:<\/h2>\n<p>First, we will be creating a sample text file for demonstrating all the methods that are listed below. A text file in Debian 10 can be created with the following command:<\/p>\n<pre><strong>sudo nano TextFile.txt<\/strong><\/pre>\n<p>Here, you can replace TextFile with any name of your preference. We have named our sample text file as abc.txt.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"374\" height=\"27\" class=\"wp-image-3187\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-12.png 374w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-12-300x22.png 300w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/p>\n<p>Running the above-mentioned command will also open the newly created file with the nano editor. Here, you can type in any random text. This text is not that important since we are just going to use this file for demonstration. Our sample text file with some random content is shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"107\" class=\"wp-image-3188\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-13.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-13-300x44.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>After creating this file, now we will use the three different methods below to find this file in Debian 10.<\/p>\n<h3>Method # 1: Using the \u201cwhereis\u201d Command in Debian 10:<\/h3>\n<p>The \u201cwhereis\u201d command in Debian 10 is essentially used to trace the exact path of any specified file. However, this command can also be used indirectly to find a file in Debian 10 because this command will display the paths of only those files that actually exist in your system. Therefore, to find our sample text file named abc.txt, we will run the following command:<\/p>\n<pre><strong>whereis abc.txt<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"358\" height=\"25\" class=\"wp-image-3189\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-14.png 358w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-14-300x21.png 300w\" sizes=\"auto, (max-width: 358px) 100vw, 358px\" \/><\/strong><\/p>\n<p>Since we have created our sample text file in the Debian 10 Home directory, therefore, you will be able to see a colon after the file name in the output of this command as shown in the image below. However, if your sample file or any other file that you are trying to locate resides in some other directory, then the above-mentioned command will display its exact path.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"373\" height=\"67\" class=\"wp-image-3190\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-15.png 373w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-15-300x54.png 300w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/><\/p>\n<h3>Method # 2: Using the \u201cfind\u201d Command in Debian 10:<\/h3>\n<p>The \u201cfind\u201d command in Debian 10 is extremely versatile in terms of the options that can be used in conjunction with this command to find files as per our requirements. If a file you are looking for actually exists in your system, then the \u201cfind\u201d command will return its name. Otherwise, it will not display any output. The \u201cfind\u201d command in its simplest form is used as follows where we are trying to check whether the text file named abc.txt exists in our Debian 10 system or not.<\/p>\n<pre><strong>find abc.txt<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"333\" height=\"25\" class=\"wp-image-3191\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-16.png 333w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-16-300x23.png 300w\" sizes=\"auto, (max-width: 333px) 100vw, 333px\" \/><\/strong><\/p>\n<p>You can crosscheck from the output of the command shown below that the file named abc.txt exists on our Debian 10 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"340\" height=\"67\" class=\"wp-image-3192\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-17.png 340w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-17-300x59.png 300w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/p>\n<h3>Method # 3: Using the Debian 10 GUI:<\/h3>\n<p>Finally, there is a GUI based method too with which you can easily search for any specific file if you do not want to use the Debian 10 terminal. For using the GUI of a Debian 10 system to search for files on it, you simply have to go to its file manager by looking for its icon on the Debian 10 taskbar.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"602\" class=\"wp-image-3193\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-18.png 801w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-18-300x225.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-18-768x577.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/p>\n<p>Once you are there in the Debian 10 file manager, you need to click on the search icon as highlighted in the following image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"76\" class=\"wp-image-3194\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-19.png 800w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-19-300x29.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-19-768x73.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>This will allow you to type in the name of the file you are looking for in the appeared search bar. We have simply typed \u201cabc\u201d in that search bar and our Debian 10 system has displayed our file abc.txt on the screen as highlighted in the image shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"472\" class=\"wp-image-3195\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-20.png 799w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-20-300x177.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-20-768x454.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/p>\n<p>In the very same manner, you can look for any desired file in Debian 10 using its GUI. This will also confirm if a certain file exists on your system in the first place or not.<\/p>\n<h2>Conclusion:<\/h2>\n<p>This article threw light on the three different methods of finding files in Debian 10. The first two methods are designed mainly for the techies who like working with the CLI whereas the third method targets the common users who are more likely to use the GUI.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: Being a computer user, we all work with different types of files quite often. However, at times, there is such a large number of files on our&hellip;<\/p>","protected":false},"author":3,"featured_media":3196,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[17,135,133],"class_list":["post-3186","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian-10","tag-files-2","tag-find"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/3186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=3186"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/3186\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/3196"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=3186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=3186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=3186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}