Linux | 19. File Search: find, locate, which

Introduction

When dealing with massive amounts of data, you may need to search for or locate specific files that meet certain criteria. In this case, file retrieval within the system is necessary. Searching in Windows is straightforward, using the File Explorer for retrieval. Alternatively, the powerful tool in Windows—Everything—can assist in quickly completing file search functions, and it is significantly faster than the built-in file search feature in Windows. In Linux, we typically use the commands find, locate, and which to search for files. After watching the video below, you can return to understand the meanings of these commands:

find ~ -name biomamba.txt -print       find ~ -name biomamba.txtfind ~ -name biomamba.txt -lsfind ~ -user biomambafind ~ -size -1find ~ -atime -1find ~ -mtime -1find ~ -name biomamba.txt -exec rm {} \;find ~ -name biomamba.txt -ok rm {} \;
sudo updatedb
locate biomamba.txt

which ls
which ll

Video Tutorial

Available on Bilibili for easier viewing; you can access it directly at the end of this article:https://www.bilibili.com/video/BV1hT411F7r7?p=19

Learning Materials for This Section

To prevent issues with accessing Baidu Cloud, I have uploaded the files to an Nginx server for you to download. Simply enter this URL in your browser to start the download:

http://biomamba.com:34080/free.download/%E8%B7%9FBiomamba%E4%B8%80%E8%B5%B7%E5%AD%A6Linux.zip

If the link is invalid, you can contact customer service at the end of this article to obtain it.

Previous Reviews

Learn Linux with Biomamba | 1. Computer Hardware ComponentsLinux | 2. Computer Software Components and LinuxLinux | 3. Free Linux System – WSLLinux | 4. Free Linux System – Virtual MachineLinux | 5. Free Linux System – ServerLinux | 6. Command Line and Basic CommandsLinux | 7. Several Ways to Get Help with Linux CommandsLinux | 8. Linux File Directory SystemLinux | 9. Path Viewing and Switching: pwd, cd, ls CommandsLinux | 10. WildcardsLinux | 11. File Deletion: rm CommandLinux | 12. File Copy (cp) and Move (mv)Linux | 13. Concepts of Users and GroupsLinux | 14. User Management Commands (useradd, passwd, userdel, su)Linux | 15. File Permission Management: chown, chmodLinux | 16. ShortcutsLinux | 17. Output RedirectionLinux | 18. Pipe SymbolLinux | 19. File Search: find, locate, which

How to Contact Us

Linux | 19. File Search: find, locate, whichLinux | 19. File Search: find, locate, whichLeave a message to receive materials andan out-of-the-box single-cell analysis image atWeChat ID[Biomamba_zhushou], making it convenient for everyone to communicate at any time. We have also established a group chat matrix, and everyone is welcome to join the discussion.After reading these articles, you can addtips for beginners in bioinformaticsNo search, no voice

Students who already have contact information for the bioinformatics basedo not need to add again

Linux | 19. File Search: find, locate, which

Linux | 19. File Search: find, locate, whichYour likes and views are taken seriously as appreciation.

Leave a Comment