![]() In the example below, we are finding the folders named lib. Similarly, device block files can be found by using b: find / -type b How to search directories We can search for character block files by providing c to -type: find / -type c type f -name "*.conf" How to search other files by type Similarly, we can search for configuration files like this: find. ![]() log, and we can find them like this: find. Output List of hidden files in my home directory How to search log files and configuration files We can modify the find command as shown below to search for hidden files. They are normally hidden, but can be viewed with ls -a in the current directory. Hidden files are represented by a dot in the beginning of the filename. We'll modify the command like this: find. Now let's say we want to find files with a particular extension like. Suppose we need to find files that contain "style" in their name. Now we know the syntax of the find command, let's look at some examples. -name is the name of the file type that you want to search.Drivers communicate with block devices by sending and receiving entire blocks of data. Files that are used to access block devices are called block device files. Examples include keyboards, sound cards and mouse.ī – Block devices. Drivers communicate with character devices by sending and receiving single characters (bytes, octets). Files that are used to access character devices are called character device files. Symbolic links point to files and are similar to shortcuts.Ĭ – Character devices. These are the folders under consideration. They can be any of the below:į – Regular file such as text files, images and hidden files.ĭ – Directory. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |