• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

Day 9: The Mysterious World of Pipes and Redirection in RHEL 9

Lomanu4 Оффлайн

Lomanu4

Команда форума
Администратор
Регистрация
1 Мар 2015
Сообщения
1,481
Баллы
155
Welcome to the land of pipes (|) and redirection (> and >>) — where Linux becomes a modular masterpiece. Think of it like Lego for grown-ups (but nerdier and more powerful).

? Table of Contents

  • What are pipes and redirection?
  • Redirection Basics:
  • Pipe Magic:
  • Mini Mission:
  • Why this rocks
  • What's Next


What are pipes and redirection?

  • Redirection sends output somewhere else (like a file).
  • Pipes connect commands so one’s output becomes the next one’s input.


Redirection Basics:

  • > — send output to a file (overwrites it)
  • >> — append output to a file


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Now greetings.txt contains "Hello world" and now greetings.txt has BOTH messages.


Pipe Magic:



Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



This lists all files and sends that list to grep, which filters and only shows .txt files.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



View system boot messages, but in a scrollable way. No terminal meltdown!


Mini Mission:

  • Use echo to write a sentence to a file.
  • Append a second line with >>
  • Use a pipe to search your .bash_history for the word "sudo"


Why this rocks


This is how Linux pros build supercharged workflows. It's like chaining spells in a video game: each command is strong on its own, but together, they’re unstoppable.


What's Next


Quick Reflection:
You’ve now wrangled files, navigated directories, tamed permissions, and even filtered text like a digital detective. These new tools (grep, pipes, redirection) are your backstage passes to real-world Linux wizardry — and they're way easier than they sound.

Practice them a few times in real scenarios — not just in theory — and they’ll stick for life.

See you tomorrow for Day 10, where we wrap it all up in a command-line bow!

LinuxLearning #RHEL9 #CloudWhistler #BeginnerFriendly #RHCSA #LearningLinux


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу