diff --git a/docs/labs/systems_administration_I/lab3-system_utilities.md b/docs/labs/systems_administration_I/lab3-system_utilities.md index 13a3e93715..8312aa6066 100644 --- a/docs/labs/systems_administration_I/lab3-system_utilities.md +++ b/docs/labs/systems_administration_I/lab3-system_utilities.md @@ -585,14 +585,14 @@ Use the guidelines below: | Redirector | Function | | ------------ | --------------------------------------------------------- | -| > file | Direct standard output to file | -| < file | Take standard input from file | -| Cmd1 \| cmd2 | Pipe; take standard out of cmd1 as standard input to cmd2 | -| n> file | Direct file descriptor n to file | -| N< file | Set file as file descriptor n | -| >&n | Duplicate standard output to file descriptor n | -| <&n | Duplicate standard input from file descriptor n | -| &>file | Direct standard output and standard error to file | +| > file | Directs standard output to file | +| < file | Takes standard input from file | +| Cmd1 \| cmd2 | Pipe; takes standard out of cmd1 as standard input to cmd2 | +| n> file | Directs file descriptor n to file | +| N< file | Sets file as file descriptor n | +| >&n | Duplicates standard output to file descriptor n | +| <&n | Duplicates standard input from file descriptor n | +| &>file | Directs standard output and standard error to file | 1. Ensure you are still in the `folder1` directory. Use the long listing option of the `ls` command on *temp_file11*: @@ -748,28 +748,28 @@ If you do not specify any directory or path, `find` will search the current dire | OPTIONS | DESCRIPTION | | -- | -- | -| -xdev | do not search on directories located on other filesystems | -| -mindepth `` | descend at least `` levels below the specified directory before searching for files | -| -maxdepth `` | search for files located at most `` levels below the specified directory | -| -follow | follow symbolic links if they link to directories | -| -daystart | when using tests related to time (see below), take the beginning of current day as a timestamp instead of the default (24 hours before current time) | +| -xdev | does not search on directories located on other filesystems | +| -mindepth `` | descends at least `` levels below the specified directory before searching for files | +| -maxdepth `` | searches for files located at most `` levels below the specified directory | +| -follow | follows symbolic links if they link to directories | +| -daystart | when using tests related to time (see below), it takes the beginning of the current day as a timestamp instead of the default (24 hours before the current time) | | CRITERION | DESCRIPTION | | -- | -- | -|-type `` | search for a given type of file; `` can be one of: **f** (*regular file*), **d** (*directory*) **l** (*symbolic link*), **s** (*socket*), **b** (*block mode file*), **c** (*character mode file*) or **p** (*named pipe*) | -| -name `` | find files whose names match the given `` | -| -iname `` | like *-name*, but ignore case | -| -atime ``, -amin `` | find files which have last been accessed `` days ago (*-atime*) or `` minutes ago (*-amin*). You can also specify `+` or `-`, in which case the search will be done for files accessed respectively at *most* or at *least* `` days/minutes ago | -| -anewer `` | find files which have been accessed more recently than file `` | +|-type `` | searches for a given type of file; `` can be one of: **f** (*regular file*), **d** (*directory*) **l** (*symbolic link*), **s** (*socket*), **b** (*block mode file*), **c** (*character mode file*) or **p** (*named pipe*) | +| -name `` | finds files whose names match the given `` | +| -iname `` | like *-name*, but ignores case | +| -atime ``, -amin `` | finds files which have last been accessed `` days ago (*-atime*) or `` minutes ago (*-amin*). You can also specify `+` or `-`, in which case the search will be done for files accessed respectively at *most* or at *least* `` days/minutes ago | +| -anewer `` | finds files which have been accessed more recently than file `` | | -ctime ``, -cmin ``, -cnewer `` | same as for *-atime*, *-amin* and *-anewer*, but applies to the last time when the contents of the file have been modified | | -regex `` | same as *-name*, but pattern is treated as a regular expression | -| -iregex `` | same as *-regex*, but ignore case | +| -iregex `` | same as *-regex*, but ignores case | | ACTION | DESCRIPTION | | -- | -- | | -print | just prints the name of each file on standard output. This is the default action | | -ls | prints on the standard output the equivalent of `ls -ilds` for each file found | -| -exec `` | execute command `` on each file found. The command line `` must end with a `;`, which you must escape so that the shell does not interpret it; the file position is marked with `{}` | +| -exec `` | executes command `` on each file found. The command line `` must end with a `;`, which you must escape so that the shell does not interpret it; the file position is marked with `{}` | | -ok `` | same as *-exec* but asks confirmation for each command | #### How to use `find`