Linux Command Line (08) Output Redirection

Опубликовано: 18 Январь 2020
на канале: MichaelsTechTutorials
5,224
128

When we type a command in the Linux Command Line, the output goes to Standard Out. By default, Standard Out points to the terminal. We can change that by adding a greater-than sign, and a filename.

Adding a greater-than sign sign and filename to a command will redirect Standard out to that filename.

Running another command using the single greater-than sign will replace what in the filename.

Using two greater-than signs before the filename will append the Standard Out text to the end of the filename.

Error messages to to Standard Error. To redirect Standard Error to a separate file add the number 2 before the greater-than sign and then add the Standard Error filename.

Output not needed should be sent to forward slash dev forward slash null

To write the Standard Out and Standard Error to the same file use an ampersand before the greater-than sign then the filename.

See the complete LCL playlist at:    • Linux Command Line  (01) What Is The ...  

Website link:
https://thefrugalcomputerguy.com/linu...


На этой странице сайта вы можете посмотреть видео онлайн Linux Command Line (08) Output Redirection длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь MichaelsTechTutorials 18 Январь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 5,224 раз и оно понравилось 128 зрителям. Приятного просмотра!