From the course: Linux Tips
Unlock this course with a free trial
Join today to access over 22,400 courses taught by industry experts.
System basics: Bash output redirection - Linux Tutorial
From the course: Linux Tips
System basics: Bash output redirection
- [Instructor] When you're working at the Bash prompt, usually you type information in the command line; and you see a response when a command runs or returns an error message. But there's a little more to it than that. The command prompt represents the standard input, one of three special streams of data that a process has access to. Standard input is generally input from the keyboard. Another stream, the standard output, is what we see as the result of running programs in a text environment like a terminal; and there's another stream we see sometimes called the standard error. That stream carries exception messages from programs as they run. By using special operators, you can change how the shell treats them. One of the most common uses for redirection is to take the standard output and send it somewhere else. We have two primary ways of doing this: with a pipe, which sends the output to another command; or with various other redirection operators, which send the output to a file…
Contents
-
-
-
-
System basics: The Linux file system6m 35s
-
System basics: The command line5m 23s
-
System basics: Keyboard shortcuts1m 40s
-
System basics: sudo access and root4m 57s
-
System basics: Explore a system4m 38s
-
System basics: Exploring Bash7m
-
System basics: Bash scripting basics4m 59s
-
System basics: The Bash prompt6m 2s
-
System basics: Bash output redirection4m 57s
-
Bash expansions and substitutions4m 23s
-
Bash aliases and functions4m 7s
-
Bash operators6m 55s
-
Logs5m 4s
-
Grub3m 19s
-
SysV init4m 43s
-
Systemd5m 29s
-
Cron8m 7s
-
Understanding chroot3m 16s
-
System basics: User and group management8m 39s
-
System basics: Service management3m 44s
-
Backing up data with rsync5m 35s
-
Splitting and combining files3m 3s
-
Environment configuration files2m 43s
-
Working with dotfiles1m 43s
-
Exploring the PATH variable3m 51s
-
Browsing with the directory stack3m 19s
-
Finding or locating files3m 52s
-
Working with swap4m 29s
-
Read and write caches3m 5s
-
Terminals, consoles, and TTYs4m 27s
-
Exploring journalctl5m 2s
-
-
-
-
-
-
-
-
-
-
-
-