Linux Survival
Search
Primary Menu
Skip to content
Home
Blog
Testimonials
Linux Links
Command List
Contact
Search for:
Linux Survival
The problem with doing a "ps aux" is the same as the problem with "df", but much worse. It gives you far too much output, when you are interested in only a small fraction of it. Fortunately, you can filter out most of the irrelevant information by using a pipe, "|", and the "grep" command. Remember the ">"? It was used to send the output of a command to a file rather than to the screen. Well, the "|" (it's above the "\" on your keyboard) is very similar. The only difference is that it sends the output of a command as the input to another command. In other words, it "pipes" data from one command to another. For example, when we wanted to print out Jester's two joke files, we could have saved ourselves a few steps by typing this cat joke-1 joke-2 | lpr -P zephyr The output of "cat joke-1 joke-2" is sent directly to the printer, rather than to a file. This is a very powerful technique. Click the right arrow.
Page 62
Where learning Linux is easy
Module 1 Introduction
Directory Structure
List Directory
View File Contents
Create Directory
Move and Rename File
Change Directory
Get Current Location
Quiz 1
End of Module 1
Module 2 Introduction
Pathnames
Copy File
Remove File
Remove Directory
File Security
Change File Permissions
Wildcards
Groups Memberships
Quiz 2
End of Module 2
Module 3 Introduction
Home Directories
Manual Pages
User Information
Find File
Concatenate Files
Redirect Output
Print
Print Job Status
Cancel Print Job
Quiz 3
End of Module 3
Module 4 Introduction
Copy Tree
Disk Space
Remove Tree
Process Status
Pipe Output
Pattern Matching
Kill Process
Quiz 4
Conclusion