Linux Comm Swatch
# Linux swatch Command
[ Linux Command Manual](#)
The Linux swatch command is used for system monitoring.
swatch can be used to monitor system log files and execute specified actions when specific events are found. The events monitored by swatch and the corresponding actions are stored in swatch's configuration file. The default configuration file is `.swatchrc` in the user's home directory. However, in Red Hat Linux, there is no `.swatchrc` configuration file in the default user home directory. You can copy the `/usr/doc/swatch-2.2/config_files/swatchrc.personal` file to the user's home directory as `.swatchrc`, and then modify `.swatchrc` to specify the events to monitor and the actions to execute.
### Syntax
swatch [-r
YouTip