will not be able to query the files you want. To avoid such errors, we tried to find the file and Input
Find/-name access_log 2>/dev/null
This method transfers the search error prompt to a specific directory. After the system executes this command, the error information is directly transmitted to stderrstream 2. access_log 2 indicates that the system will send the error information to stderrstream 2, /dev/null is a special file that indicates null or error information. In this way, the querie
Linux system will find all files containing the three letters SRM in the/etc directory, such as absrmyz and tibc. SRM and other qualified files can be displayed. If you know that the file is prefixed by the SRM letters, you can also omit the asterisks. The command is as follows:Find/etc-name 'srm *'. only files such as srmyz can be found. files such as absrmyz and absrm do not meet the requirements and are not displayed. This greatly improves the eff
. If "find/" is input, it indicates that the Linux system is required to search for files in the entire ROOT directory, that is, to search for files on the entire hard disk, while "find/etc" is to find files only under the etc directory. Because "find/etc" indicates that files are only searched in the etc directory, the search speed is much faster.
Method for searching based on some file names:
This method is the same as finding known file names in WINDOWS. However, in Linux, searching for files
hard disk, while "find/etc" is to find files only under the etc directory. Because "find/etc" indicates that files are only searched in the etc directory, the search speed is much faster.
Method for searching based on some file names:
This method is the same as finding known file names in WINDOWS. However, in Linux, searching for files based on some file names is much more powerful than similar searching methods in WINDOWS. For example, if we know that a file package contains the three letters
absrmyz and tibc. srm and other qualified files can be displayed. If you know that the file is prefixed by the srm letters, you can also omit the asterisks. the command is as follows:Find/etc-name srm *Only files such as srmyz are found. files such as absrmyz and absrm do not meet the requirements and are not displayed. This greatly improves the efficiency and reliability of file searching.Query methods based on File features:If you only know the siz
three letters. Enter:
Find/etc-name '* srm *'
This command indicates that the Linux system will find all files containing the three letters srm in the/etc directory, such as absrmyz and tibc. srm and other qualified files can be displayed. If you know that the file is prefixed by the srm letters, you can also omit the asterisks. The command is as follows:
Find/etc-name 'srm *'
Only files such as srmyz are found. files such as absrmyz and
in the system that contain the three letters. Enter:
Find/etc-name '* srm *'
This command indicates that the Linux system will find all files containing the three letters srm in the/etc directory, such as absrmyz and tibc. srm and other qualified files can be displayed. If you know that the file is prefixed by the srm letters, you can also omit the asterisks. The command is as follows:
Find/etc-name 'srm *'
Only files such as srmyz are found. f
" command to query the directories of these files, the words "Permissiondenied." (Access prohibited) appears. The system will not be able to query the files you want. To avoid such errors, we tried to find the file and Input
Find/-name access_log 2>/dev/null
This method transfers the search error prompt to a specific directory. After the system executes this command, the error information is directly transmitted to stderrstream 2. access_log 2 indicates that the system will send the error in
"find/" is input, it indicates that the Linux system is required to search for files in the entire root directory, that is, find the file on the entire hard disk, and "find/etc" is only
Find Files in the etc directory. Because "find/etc" indicates that files are only searched in the etc directory, the search speed is much faster.
Method for searching based on some file names:This method is the same as finding known file names in windows. However, in Linux, searching for files based on some fil
httpd. conf file in the etc directory. Here we will describe the meaning of the "/" function symbol. If "find/" is input, it indicates that the Linux system is required to search for files in the entire ROOT directory, that is, to search for files on the entire hard disk, while "find/etc" is to find files only under the etc directory. Because "find/etc" indicates that files are only searched in the etc directory, the search speed is much faster.
Linux Find command: Find methods based on some fi
"find/etc" is to find files only under the etc directory. Because "find/etc" indicates that files are only searched in the etc directory, the search speed is much faster.Method for searching based on some file names:This method is the same as finding known file names in WINDOWS. However, in Linux, searching for files based on some file names is much more powerful than similar searching methods in WINDOWS. For example, if we know that a file package contains the three letters of srm, We can find
"find/" is input, it indicates that the Linux system is required to search for files in the entire root directory, that is, to search for files on the entire hard disk, while "find/etc" is to find files only under the etc directory. Because "find/etc" indicates that files are only searched in the etc directory, the search speed is much faster.
Method for searching based on some file names:This method is the same as finding known file names in windows. However, in Linux, searching for files bas
"find/" is input, it indicates that the Linux system is required to search for files in the entire root directory, that is, to search for files on the entire hard disk, while "find/etc" is to find files only under the etc directory. Because "find/etc" indicates that files are only searched in the etc directory, the search speed is much faster.
Method for searching based on some file names:This method is the same as finding known file names in windows. However, in Linux, searching for files base
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.