Use more command to display /var/log/secure*in centos 7
- User
Use more command to display /var/log/secure*in centos 7
- Assistant
To use the
morecommand to display the contents of files matching the pattern/var/log/secure*, you can follow these steps in CentOS 7:-
Open a terminal on your CentOS 7 system.
-
Type the following command and press Enter:
more /var/log/secure*This command will display the contents of all files in the
/var/logdirectory that have names starting withsecure. -
Use the "Space" key to scroll down the output one page at a time.
-
Press "Enter" to scroll down one line at a time.
-
Press "q" to exit the
morecommand when you are done viewing the content.
Note: The
morecommand can display the file contents interactively, allowing you to scroll through the output. However, if the file is too large, it may be more efficient to use other commands likelessortailto view the contents. -