Hello, Hexlet Support Team.
Can you please check if the web link in the 2nd tip is correct?
The 2nd tip reads: "Read more about sudo. There is an example of using the tee utility with sudo in this article"
And the link Read more about sudo provides: https://en.wikipedia.org/wiki/Sudo
Having checked the article, I found no examples of using the tee utility in there. I've checked with <Ctrl+F> and a search term "tee" just to be sure.
Best regards, Mikhail.
Hi, Mikhail! Thanks for noticing, I've fixed a tip description.
An actual example to fill the void:
sudo cat sources.list | tee /etc/apt/sources.list. To run a command after a pipeline as a root user, you need to insert a second
sudo because the command after a pipeline by default runs with regular user write permissions.
Use Hexlet to the fullest extent!
- Ask questions about the lesson
- Test your knowledge in quizzes
- Practice in your browser
- Track your progress
Sign up or sign in
From a novice to a developer. Get a job or your money back!