Linux operation and maintenance engineers face questions Daquan 04 _ redirection and piping

Disclaimer: This article is a blogger original article, reproduced, please declare the source! https://blog.csdn.net/weixin_42758707/article/details/90550679

The answer to the next line, saw the mouse to select
Like this
like this
Here Insert Picture DescriptionHere Insert Picture Description

Linux interview questions

1, the standard output standard output after the START command as a previous picture ⼀ commands, called ().
Pipeline |

2, the output of the program and an error message is redirected to file1 file2 command is redirected to the ().
COMMAND> file1 2> file2

3, how to preserve and display the history commands linux command operation is the time?
= HISTTIMEFORMAT "% F.% T"
echo "Export HISTTIMEFORMAT ="% T% F. ">> / etc / Profile

4, there are at / home / stud1 / wang of Contents ⼀ files file, Use () Perform command may be implemented in the background, the command to output the contents of the file
file.copy in files.
A. CAT File> B File.Copy. CAT> File.Copy C. File.Copy CAT File & D. CAT File> File.Copy &
D

Guess you like

Origin blog.csdn.net/weixin_42758707/article/details/90550679