Basics of the MKS Toolkit - Mks.com
Basics of the MKS Toolkit - Mks.com
Basics of the MKS Toolkit - Mks.com
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
General Purpose Tools<br />
For information on all <strong>MKS</strong><br />
<strong>Toolkit</strong> <strong>com</strong>mands, see <strong>the</strong><br />
online <strong>MKS</strong> <strong>Toolkit</strong> Utilities<br />
Reference. For more<br />
information on <strong>MKS</strong><br />
KornShell, <strong>MKS</strong> AWK, and<br />
<strong>MKS</strong> MAKE, see <strong>the</strong>ir<br />
respective online documents.<br />
Listing a Directory<br />
2<br />
To begin our overview, we’ll examine some <strong>of</strong> <strong>the</strong> simplest<br />
<strong>com</strong>mands in <strong>MKS</strong> <strong>Toolkit</strong>, <strong>com</strong>mands that copy or print various<br />
kinds <strong>of</strong> information. Try <strong>the</strong>se examples on your <strong>com</strong>puter as you<br />
read <strong>the</strong>m, and we encourage you to try any variations that <strong>com</strong>e to<br />
mind.<br />
The ls and lc <strong>com</strong>mands list <strong>the</strong> contents <strong>of</strong> a directory, much as <strong>the</strong><br />
Windows (in <strong>com</strong>mand.<strong>com</strong> or cmd.exe) dir <strong>com</strong>mand does. You can<br />
enter ei<strong>the</strong>r<br />
or<br />
ls<br />
lc<br />
to list your current working directory. To list <strong>the</strong> contents <strong>of</strong> a<br />
different directory, add <strong>the</strong> relative or absolute name <strong>of</strong> <strong>the</strong> directory<br />
you want to look at, as in<br />
lc dira/dirb<br />
lc c:abc/def/ghi<br />
You might wonder why you should bo<strong>the</strong>r using ls or lc if <strong>the</strong> dir<br />
<strong>com</strong>mand displays <strong>the</strong> same information; <strong>the</strong> answer is <strong>the</strong> way in<br />
which that information is displayed. By default, dir prints an<br />
unsorted list in one long column that quickly runs <strong>of</strong>f <strong>the</strong> end <strong>of</strong> <strong>the</strong><br />
screen. ls does much <strong>the</strong> same thing, but sorts <strong>the</strong> list in alphabetical<br />
<strong>Basics</strong> <strong>of</strong> <strong>the</strong> <strong>MKS</strong> <strong>Toolkit</strong> 3