Search code examples
linuxprintfdig

How to print the out put of dig command to a text file


I want to print the out put of the dig command to a text file .


Solution

  • Any Command in shell can be redirected like this:

    Example:

    dig google.com > k.txt