Wildcard and cronjob
Last updated
Last updated
When a wildcard character (*) is provided to a command as part of an argument, the shell will first perform filename expansion (also known as glubbing) on the wildcard. Since filesystems in Linux are generally very permissive with filenames, and filename expansion happens before the command is executed, it is possible to pass command line options (e.g. -h, --help) to commands by creating files with these names.
The command shows the output of ls -l command.
When you see the following cron configuration for tar command, we can abuse the configuration.