To display the contents of all files in a directory in Unix, you can use the cat command in combination with the * wildcard.
For example, to display the contents of all files in the current directory, you can use the following command:
cat *
This will concatenate the contents of all files in the current directory and display them on the standard output.
If you want to display the contents of all files in a specific directory, you can specify the directory using the -R option. For example, to display the contents of all files in the /etc directory, you can use the following command:
cat -R /etc
This will recursively display the contents of all files in the /etc directory and any subdirectories.
Note that using the cat command to display the contents of many files at once can produce a large amount of output, which may be difficult to read or navigate. If you want to display the contents of only a few files, it may be more convenient to specify the names of the files individually, rather than using the wildcard.
Overall, the cat command is a useful tool for displaying the contents of files in Unix. By using the * wildcard and the -R option, you can easily display the contents of all files in a directory or directory tree.