Linux: This Book Includes 4 Manuscripts. The Underground Bible to the unix operating System with Tools On Security and Kali Hacking to Understand Computer Programming, Data Science and Command Line




Download 6,34 Mb.
Pdf ko'rish
bet159/203
Sana10.01.2024
Hajmi6,34 Mb.
#134102
1   ...   155   156   157   158   159   160   161   162   ...   203
Bog'liq
Linux This Book Includes 4 Manuscripts The Underground Bible

a) General search
This is the normal way to search in databases and searches every directory
that is present to get the desired file you want. Below we will give some
commands that will explain the general search in detail .
Finding an mp3 file named “beatles.mp3”
We enter the command find with the pathname and file name as shown
below:


vulnerhost @ example: find file beatles.mp3
By this, the find command will start searching the required file and will
give the results. If nothing is found for the name, then the empty screen will
be displayed. 
There is also an option with an asterisk that will show every file with the
extension. Suppose we only give .mp3 extension as a file name using
asterisk then find command will search every mp3 extension that is present
in the directory. 
Although find is used extensively to search for things in a Linux system it is
often slow. The reason for this is that it starts from the root directory to
search the file name. For this reason, there is another command called as
locate that will reduce the search time. We will learn about locating in the
next section.
b) Database lookup
Linux contains system files and databases that exist with them. As
explained earlier it is difficult to search every application database due to
their length and huge numbers. For this exact reason database lookup is
introduced in Linux. 
This will search and input the database files that are present according to
the search term. Before using the locate command you need to use updated
so that everything will be refreshed to display the fresh results. 
Below is the command for locating command. You can use the file directory
that you prefer or command will search all directories that are present.
vulnerhost @ example: updated
vulnerhost @ example: locate songs.mp3

Download 6,34 Mb.
1   ...   155   156   157   158   159   160   161   162   ...   203




Download 6,34 Mb.
Pdf ko'rish

Bosh sahifa
Aloqalar

    Bosh sahifa



Linux: This Book Includes 4 Manuscripts. The Underground Bible to the unix operating System with Tools On Security and Kali Hacking to Understand Computer Programming, Data Science and Command Line

Download 6,34 Mb.
Pdf ko'rish