Common commands for file management: ls, touch, cp, mv, rm, m
1. Show all files or directories under the / var directory that begin with l and end with a lowercase letter with at least one digit in the middle
2. Files or directories under the display / etc directory that begin with any number and end with a non-number
3. Display a file or directory under the / etc/ directory that begins with a non-letter, followed by a letter and any other character of any length
4. Display all files or directories under the / etc/ directory that begin with rc, followed by numbers between 0 and 6, and other files or directories with any characters
5, display all files or directories ending in .d in the / etc directory
6. Show all files or directories in the / etc directory that end with .conf and begin with mreco ndir r p.
7. Show only hidden files and directories under / root
8. Show only non-hidden directories under / etc
9. Define the alias command baketc, backup all files under the / etc/ directory to a separate subdirectory of / data every day, and require the subdirectory format to be backupYYYY-mm-dd. The backup process is visible.
10. Create / data/rootdir directory, and copy all files under / root to this directory. The original permissions are required.
11. How to create / testdir/dir1/x, / testdir/dir1/y, / testdir/dir1/x/a,/testdir/dir1/x/b, / testdir/dir1/y/a, / testdir/dir1/y/b
12. How to create / testdir/dir2/x, / testdir/dir2/y, / testdir/dir2/x/a,/testdir/dir2/x/b
13. How to create / testdir/dir3, / testdir/dir4, / testdir/dir5, / testdir/dir5/dir6,/testdir/dir5/dir7
1. Show all files or directories under the / var directory that begin with l and end with a lowercase letter with at least one digit in the middle
2. Display files or directories in the / etc directory that begin with any number and end with a non-number
3. Display a file or directory in the / etc/ directory that begins with a non-letter, followed by a letter and any other character of any length
4. Display all files or directories under the / etc/ directory that begin with rc, followed by numbers between 0 and 6, and other files or directories with any characters
5. Show all files or directories ending in .d in the / etc directory
6. Show all files or directories in the / etc directory that end with .conf and begin with mpenery ndir r rep.
7. Show only hidden files and directories under / root
8. Show only non-hidden directories under / etc
9. Define the alias command baketc, backup all files under the / etc/ directory to a separate subdirectory of / data every day, and require the subdirectory format to be backupYYYY-mm-dd. The backup process is visible.
10. Create / data/rootdir directory, and copy all files under / root to this directory. The original permissions are required.
11. How to create / testdir/dir1/x, / testdir/dir1/y, / testdir/dir1/x/a,/testdir/dir1/x/b, / testdir/dir1/y/a, / testdir/dir1/y/b
12. How to create / testdir/dir2/x, / testdir/dir2/y, / testdir/dir2/x/a,/testdir/dir2/x/b
13. How to create / testdir/dir3, / testdir/dir4, / testdir/dir5, / testdir/dir5/dir6,/testdir/dir5/dir7