Home >System Tutorial >LINUX >Learn how to use echo and redirection in LINUX
Today we will introduce in detail the basic knowledge of using LINUX echo and redirection. For a very simple basic tutorial, please see the detailed tutorial below.
1. Open LINUX and choose UBUNTU operating system.
2. Enter hello after echo, and after pressing Enter, hello will be displayed, and whatever is entered will be output.
3. Of course, when we enter a sentence, the outputhyphen will be displayed.
4. If we use >, we can input the content into a new file.
5. If has no spaces , this format is also possible, but it is not convenient for viewing.
6. You can define a suffix, but be careful when writing with a suffix. You need to be more careful.
7, The contents of the directory list can be output to a new file.
8. If uses >>, the content will not be overwritten, but the content will be added at the end.
The contents of9 and tree can also be entered into the text.
The above is the detailed content of Learn how to use echo and redirection in LINUX. For more information, please follow other related articles on the PHP Chinese website!