In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
System: centos6
Sometimes you forget to use the root user or sudo command when modifying the system configuration, and the save will report no permission. If you don't want to edit it again, you can use the following command: W! Sudo tee%, of course, if you set up sudo permissions first.
W is to save, write,! Stands for running command followed by tee is a pipe command
Tee Wikipedia, Free Encyclopedia Jump to: navigation, search
A diagram of using tee: the output of ls-l is directed to tee and copied to the file file.txt and the next command less. The name tee comes from this icon, which looks like the uppercase letter T.
In computer science, tee is a common instruction, which can direct and store the standard output of an instruction into a file. Many different command line interfaces (Shell) provide this feature, such as Unix shell, Windows PowerShell.
The function of tee is usually to use pipes so that it can not only be output on the screen, but also can be stored in files. Tee can also be used to capture the intermediate output of a data before it is changed by another instruction or program. The tee command reads standard input, writes its contents to standard output, and writes a copy of it to a specific file or variable.
How to use tee [- a] [- I] [file.]
Parameters:
File one or more files that can receive the output of tee-d.
Flags:
-an append to the target file instead of overwriting
-I ignore interrupts.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.