0
votes
2answers
30 views

How to save output to file that required root access

I want to save output of command to a file that my current user do not have access to. But my user can have root access using sudo. I'm running for example: sudo crontab -l > /var/BackUp/crontab ...