ubuntu set dns terminal 1

ubuntu set dns terminal

echo nameserver 8.8.8.8 | sudo tee /etc/resolv.conf

Here is what the above code is Doing:
1. We’re using the sudo command to run the command as the root user.
2. We’re using the tee command to write the output of the echo command to the file /etc/resolv.conf.
3. We’re using the echo command to print the nameserver 8.8.8.8 to the terminal.
4. We’re using the pipe (|) to send the output of the echo command to the tee command.

Similar Posts