Display files or directories as required
1. Show all files or directories ending in.d under/etc directory
Command analysis:
ls: without any parameters, displays files or directories in the current directory
-d: Display only the directory itself, not the files under the directory
* : All files or directories
*.d: All files or directories ending with.d
2. Show all files or directories in/etc directory ending in.conf and beginning with m,n,r,p
Command analysis:
ls: without any parameters, displays files or directories in the current directory
-d: Display only the directory itself, not the files under the directory
[mnrp]: The beginning of/etc/starts with m, n, r, p. [] match any single character in parenthesis
* : All files or directories, put in the middle, that is, any character in the middle
.conf: meaningless, put it at the end and end with.conf