121bashThis script searches for the string foo in the directory /bar recursively, following symbolic links.grep 'foo' /bar --dereference-recursiveexternal toolsgrep
122bashThis script searches for the string foo recursively in the directory /bar using the grep command.grep 'foo' /bar --recursiveexternal toolsgrep
123bashThis script searches for the string foo in the file /bar.txt.grep 'foo' /bar.txtexternal toolsgrep
124bashThis code finds and deletes files in a specified directory that are older than 30 days using the find command.find /path -type f -mtime +30 -deleteexternal toolsfindfile search and manipulationdeletion based on modification time
125bashThis demonstrates using the find command to locate files in /path that were modified more than 30 days ago.find /path -type f -mtime +30external toolsfindfile searchmodification time filter
126bashThis demonstrates using find to locate symbolic links by name in a specified directory.find /path -type l -name foo.txtexternal toolsfindfile search by type and name
127bashThis demonstrates using the find command to search for directories by name within a specified path.find /path -type d -name fooexternal toolsfinddirectory search
128bashThis demonstrates using the find command to locate specific files by name in a directory and its subdirectories.find /path -type f -name foo.txtexternal toolsfindfile search
129bashThis demonstrates using find to locate and delete specific files.find /path -name foo.txt -deleteexternal toolsfindfile deletion
130bashThis demonstrates using the find command to locate files by name (case-insensitive) in a specified directory and its subdirectories.find /path -iname foo.txtexternal toolsfindfile search by name (case-insensitive)
131bashThis demonstrates using the find command to locate a file by name within a specified directory.find /path -name foo.txtexternal toolsfindfile search by name
132bashSearch for files with names starting with f and ending with .txt using the locate command. This demonstrates finding files matching a specific pattern.locate f*.txtexternal toolslocate
133bashThis demonstrates performing a case-insensitive search for files using the locate command.locate --ignore-caseexternal toolslocatecase-insensitive search
134bashThis demonstrates using the locate command to search for a file by name in the filesystem.locate foo.txtexternal toolslocatefile search
135bashThis demonstrates using the whereis command to locate the binary, source, and manual page files for the wget command.whereis wgetexternal toolswhereiscommand location
136bashThis demonstrates using the which command to locate the executable file for wget.which wgetexternal toolswhichcommand location
137bashThis demonstrates checking file permissions and details using the ls -l command.ls -l /foo.shexternal toolslsfile details and permissions
138bashThis script counts the number of lines, words, and bytes in the file foo.txt.wc foo.txtexternal toolswc
139bashThis demonstrates using the tail command to display the last 10 lines of a file.tail foo.txtexternal toolstailview end of file
140bashThis demonstrates reading the first 10 lines of a file using the head command.head foo.txtexternal toolsheadfile reading (first lines)