02.05.2013 Views

Basics of the MKS Toolkit - Mks.com

Basics of the MKS Toolkit - Mks.com

Basics of the MKS Toolkit - Mks.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table <strong>of</strong> Contents<br />

1 Introduction...............................................................1<br />

2 General Purpose Tools ............................................3<br />

Listing a Directory ...............................................................................3<br />

Simple File Manipulation ...................................................................4<br />

cp .....................................................................................................4<br />

rm ....................................................................................................5<br />

mv ...................................................................................................5<br />

Disk Usage ............................................................................................5<br />

df .....................................................................................................6<br />

du ....................................................................................................6<br />

Displaying Data....................................................................................6<br />

cat ....................................................................................................6<br />

pg.....................................................................................................6<br />

Options ..................................................................................................7<br />

Help with Options ........................................................................8<br />

Redirection ............................................................................................9<br />

Pipes.....................................................................................................10<br />

Wild Card Characters........................................................................10<br />

3 Text Processing......................................................13<br />

Editors..................................................................................................13<br />

The vi Screen Editor ...................................................................13<br />

Line Editors..................................................................................13<br />

The sed Stream Editor................................................................14<br />

O<strong>the</strong>r Word Processing Commands ...............................................14<br />

Creating Banners.........................................................................14<br />

Columnation................................................................................15<br />

Document Size.............................................................................15<br />

4 Record-Keeping......................................................17<br />

Sorting Records ..................................................................................18<br />

Creating Sub-Lists..............................................................................21<br />

Patterns.........................................................................................21<br />

Differences Between grep & egrep...........................................23<br />

Finding Changes to a File .................................................................24<br />

Checking Whole Directories .....................................................25<br />

O<strong>the</strong>r Simple Commands .................................................................25<br />

<strong>Basics</strong> <strong>of</strong> <strong>the</strong> <strong>MKS</strong> <strong>Toolkit</strong> v

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!