

AppsUnify
15.5K posts

@AppsUnify
AppsUnify drives innovation through mobility by developing mobile solutions for all platforms and form factors covering all device manufacturers.



























🐧 Day 9/30 — #Linux One of Linux's greatest strengths is the ability to connect commands together and control where data flows. Instead of manually copying output between programs, Linux allows commands to communicate seamlessly. Linux Redirection and Pipes – stdin, stdout, stderr and | Every Linux command works with three standard data streams: → stdin (Standard Input) → stdout (Standard Output) → stderr (Standard Error) Understanding these streams is essential for automation, scripting, and system administration. stdin (Standard Input) stdin is the input a command receives. Example: → sort < names.txt The contents of names.txt are provided as input to the sort command. stdout (Standard Output) stdout is the normal output generated by a command. Example: → ls > files.txt Saves the output of ls into files.txt instead of displaying it on the screen. stderr (Standard Error) stderr contains error messages generated by commands. Example: → ls missingfile 2> errors.txt Saves error messages to errors.txt. Redirection Operators → > = Overwrite output to a file → >> = Append output to a file → < = Read input from a file → 2> = Redirect error output Examples: → echo "Hello Linux" > message.txt Creates a file and writes text into it. → echo "More text" >> message.txt Appends text to an existing file. Pipes (|) The pipe operator (|) sends the output of one command directly as input to another command. Example: → ls | grep ".txt" Lists only text files. → ps aux | grep nginx Finds running nginx processes. → cat users.txt | sort Sorts the contents of a file. Why Redirection and Pipes Matter: → Automate repetitive tasks → Combine multiple commands efficiently → Filter and process large amounts of data → Build powerful shell scripts → Troubleshoot systems more effectively Mastering redirection and pipes is a major step toward becoming productive in the Linux command line environment. 🐧 Grab Linux Ebook: codewithdhanian.gumroad.com/l/hqtbxt #Linux #LinuxTutorial #LinuxCommands #ShellScripting #Terminal #DevOps #SystemAdministration #OpenSource #Programming #100DaysOfCode


Day 19/100 of Learning System Design. Design a URL Shortener – TinyURL System Deep Dive. Grab the System Design Ebook: codewithdhanian.gumroad.com/l/urcjee



