watch ls -l xyz.log
However, no idea if that will work or not (in terms of keeping the session alive).$ watch -l xyz.log.20181011what is wrong with above command?
watch: invalid option -- 'l'
Usage: watch [-dhntv] [--differences[=cumulative]] [--help] [--interval=<n>] [--no-title] [--version] <command>
i get above error
please advise
Missing the command to watch "ls". The -l option applies to the ls command not the watch command.
Type: watch ls -l xyz.log.20181011
i tried
tail -f xyz.gz
problem i faced after some time that file consolidated and new file getting created and my tail is failing and server is signing out again
does watch do that continuously?