User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
journal:spring2019:dtubbs2:week2 [2019/01/29 15:41]
journal:spring2019:dtubbs2:week2 [2019/01/29 16:11] (current)
Line 110: Line 110:
 -------------------------------------------- --------------------------------------------
 Typing "​wemux"​ brings you into a shared terminal Typing "​wemux"​ brings you into a shared terminal
 +Using "| more" on commands that produce standard output shows a screen full of commands and then stops until the user gives input to continue showing commands such as hitting space-bar or enter
 +Example: "ls -l **| more**"​
 +Using "| less" on commands does something similar to more
 +Example: "ls -l **| less**"​
 +"​wc"​ is used for word count
 +Example output "​140 ​ 1299  7454" 140 is number of lines, 1299 is number of words, 7454 is number of characters
 +**Proper Pipe Usage** ​
 +1: Non-interactive commands
 +2: Only commands that generate standard output
 +3: Only commands that take standard input
 +**HINT** **ls z null zero tty 2>> /dev/null >> /dev/null**
 +Removes shown info from ls
journal/spring2019/dtubbs2/week2.txt · Last modified: 2019/01/29 16:11 by dtubbs2