lecture4 - More Common Commands Combining Programs Lecture...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
More Common Commands Combining Programs Lecture 4: Running Commands CS2042 - UNIX Tools October 6, 2008 Running Commands
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
More Common Commands Combining Programs Reading Commands Writing Commands Recursive Commands Lecture Outline 1 More Common Commands Reading Commands Writing Commands Recursive Commands 2 Combining Programs Operators Exercises Running Commands
Background image of page 2
More Common Commands Combining Programs Reading Commands Writing Commands Recursive Commands More or Less More more [filename] Allows you to scroll through a bunch of text 1 page at a time Good for quick viewing of text files or slowing down the output of programs Less less [filename] Similar to more, but better! Lets you scroll up or down, by pages or lines Running Commands
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
More Common Commands Combining Programs Reading Commands Writing Commands Recursive Commands Head and Tail Head and Tail head [-numlines] [filename] tail [-numlines] [filename] Prints the first ( head ) or last ( tail ) lines of a file Prints 10 lines by default, or the number specified by numlines Example: head -15 /var/log/Xorg.0.log - Prints the first 15 lines of /var/log/Xorg.0.log Running Commands
Background image of page 4
More Common Commands Combining Programs Reading Commands Writing Commands Recursive Commands Lecture Outline 1 More Common Commands Reading Commands Writing Commands Recursive Commands 2 Combining Programs Operators Exercises Running Commands
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
More Common Commands Combining Programs Reading Commands
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 16

lecture4 - More Common Commands Combining Programs Lecture...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online