Join Scott Simpson for an in-depth discussion in this video Use pipes to connect commands together, part of Learning Linux Command Line.
- [Voiceover] At the command line,…we use pipes to take the output…of one command and send it to another.…You can think of commands as little…processing nodes that do one particular thing,…and pipes as connections between those nodes.…The pipe character, which is a vertical bar,…is usually the shift character…on the backslash key, which is found…above enter or return on a U.S. keyboard.…If you're using a different keyboard,…you may need to look around for the symbol.…Searching on the internet should give you…a good idea of where to find it on your keyboard.…
We type this character in between commands…that we want to be piped together.…Throughout the course, I'll put a space…on either side of it so it's easier to see,…but it doesn't need to have spaces.…Let's take a look at using pipes at the command line.…To do this, I'm going to introduce you…to a few more commands.…The first is echo, which prints out whatever you give it.…For example, I'll write echo "hello".…Now, let's write that command again,…and this time add a pipe character…
This course will establish the foundation for more advanced Linux topics. Find other Linux training courses here.
- What is the Linux command line?
- Writing Linux commands at the prompt
- Finding help for Linux commands
- Editing files and folders
- Configuring user roles and file permissions
- Using pipes to connect commands
- Peeking at files
- Searching and editing text
- Finding disk and system information
- Installing and updating software
Skill Level Beginner
1. Command-Line Basics
2. Files, Folders, and Permissions
3. Common Command-Line Tasks and Tools
4. A Peek at Some More Advanced Topics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.