The “find” 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. Method # 2: Using the “find” Command in Debian 10: 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. 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. Therefore, to find our sample text file named abc.txt, we will run the following command: whereis abc.txt 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. The “whereis” command in Debian 10 is essentially used to trace the exact path of any specified file. Method # 1: Using the “whereis” Command in Debian 10: Our sample text file with some random content is shown in the image below:Īfter creating this file, now we will use the three different methods below to find this file in Debian 10. This text is not that important since we are just going to use this file for demonstration. Running the above-mentioned command will also open the newly created file with the nano editor. We have named our sample text file as abc.txt. Here, you can replace TextFile with any name of your preference. A text file in Debian 10 can be created with the following command: sudo nano TextFile.txt Methods of Finding Files in Debian 10:įirst, we will be creating a sample text file for demonstrating all the methods that are listed below. Today’s article is focused on the methods of finding files in a Debian 10 system. In these situations, we try to look for the different ways in which we can find files in our system. At times, you even tend to forget if a certain file exists on your system or not. 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. ![]() Being a computer user, we all work with different types of files quite often.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |