|
A UNIX Survival Guide for DOS Users |
|
By Augie Hansen A Survey of students in my UNMIX system classes shows that somewhere between one-third and one-half had prior experience with DOS before attempting to learn about the UNIX system. This range is significant, though not surprising, given the large number of DOS-based computer systems, which some estimates place at more than 20 million. It is heartening that so many of you are converting to UNIX or at least learning about UNIX as an alternative to DOS for some computing tasks. If you're among those who are converting, this month's column is for you. It describes the similarities and differences between the two operating environments and summarizes the major commands and application programs that you need to know to obtain a reasonable level of proficiency. To simplify the task, I assume that you have a basic knowledge of DOS commands and files, knowledge that goes beyond having your system come up running Lotus 1-2-3 or dBase. If you've used your DOS system in a way that has prevented you from ever seeing the DOS prompt, this month's column will be of little or no value to you. Windowing and menu-style user interfaces, a topic for a future column, will undoubtedly serve you better than a command-oriented shell. Commands Common to DOS and UNIXTable 1 lists DOS and UNIX system commands that have similar purposes in both operating environments-not identical behavior, to be sure, but close enough for the commands to be considered almost equivalent. Fundamental differences between the design philosophies and capabilities of the two operating systems preclude precise functional equivalence. The DOS and UNIX system commands that have similar purposes in both operating environments-not identical behavior, to be usure, but close enough for the commands to be considered almost equivalent. Fundamental differences between the design philosophies and capabilities of the two operating systems preclude precise functional equivalence. The DOS and UNIX directory-related commands are very similar.
The primary difference is that the Under DOS, all file and directory names are converted to uppercase on input. Such names are conventionally shown in all capital letters, but you can type them with either lowercase o///// uppercase letters. Most UNIX program names, on the other hand, contain only lowercase letters, which you must type exactly as shown because the UINIX system is sensitive to letter case. The DOS Several other DOS commands have identical names and purposes as their UNIX namesakes, but not quite the same operation. The following examples describe the differences you should be aware of. The DOS You can use an optional format-control string argument with
the System V UNIX Listing 1 shows how you can use the More detailed information about the The DOS Listing 2 shows how easy it is to create and use a database
under UNIX. A simple text file containing the data is created
with a text editor (or a word processing program). The file
contains the data organized for easy access. Each line is a
record. Each record is a collection of fields that are separated
from each other by a blank or some other other character that is
not likely to be part of the text of any field. I have used the
colon ( The To sort using a different position in the records, use an
offset to specify the starting field. For example, typing
Note that sorting a file this way does not change it. It simply
displays the contents in the specified order. If you want to reorder
the original file, use command-line redirection of the output
( A Rose by another Name...Other commands have different names in the two operating
environments but do approximately the same job. An example is
the DOS Use Caution: The UNIX system has a command named
Both the UNIX Reading the UNIX User Reference ManualsThe UNIX system is a large and complex product, and thousands of pages of documentation are but one piece of evidence in support of this claim. Beginning UNIX users are often put off by thesheer bulk of this terse documentation. Don't let the manuals overwhelm you. Once you know where to look, most of what you need to know is there for the reading. Learning where to look involves learning about the manual sections, the permuted index, and the format of the manual pages. The cornerstone of the UNIX documentation library is the various reference manuals. UNIX system vendors are free to package them any way they wish, but most adhere to the original spirit-if not the exact form-of the AT&T Bell Laboratories reference manuals. The reference manuals are divided into sections. Each section has a primary intended audience. Nearly all sections are of interest to a system administrator, whereas beginning users will, at first, care only about Section 1 (Commands and Applications), kand possibly Section 6 (Games) of the User Reference Manual. A few commands have few or no options, do very simple, clearly
defined jobs, and therefore, have brief manual pages. The
Some commands and applications are complex enough to require many pages todocument their features and operation. Editor programs are amojng the many in this categorym, along with the user shells, programming language tools, and text processing applications. Other sections of the reference manuals contain information needed by system and application programmers who need to know how the operating system works and how to write programs that interact with it. If you are a programmer, or intend to become one, you will probably have your manual opened to these pages frequently. A permuted index is an index that shows words in a contextual setting, helping you isolate one instance of a word from possibly many in the document. Near the beginning of the UNIX User Reference Manual is a permuted index that you should refer to when seeking information about a topic. A Permuted index entry points to a specific manual section and identifies the manual page entry by its topic name, which is usually a command or application programname. Pages are in alphabetical order except for an introductory page or so that leads off each section. All manual page entries, which can span one or more physical pages, have a running headerthat shows the command or application program name in the upper left and right corners of each page. The body of each manual page connsists of several parts, some of which may be omitted: Name, Synopsis, Description, Example(s), Files, See Also, Diagnostics, Warnings, and Bugs. The headings are mostly self-descriptive, but a few need further explanation. The Synopsis part shows the command or application program as you would type it. This includes the program name, any optional arguments, and any required arguments-typically file names. The Files part lists the files that a program uses and these are not necessarily related to files specified on the command line. The Bugs part, called Notes by some vendors, describes any known restrictions and deficiencies that may affect your use of the program.
|
Print This Page Send as e-mail |
Best of the Web
Data deduplication: Declawing the clones
Data deduplication is emerging as a critically important new arrow in the storage administrator's quiver to answer hard questions about the increasing problem in storage growth costs.
Compression, Encryption, Deduplication, and Replication: Strange Bedfellows
One of the great ironies of storage technology is the inverse relationship between efficiency and security: Adding performance or reducing storage requirements almost always results in reducing the confidentiality, integrity, or availability of a system.
WAN Optimization Whitelists and Blacklists
Optimization is a fantastic way of saving money and creating really happy customers at the same time, but it doesn't work flawlessly for all applications.
WAN Optimization as a Managed Service: It's Not About the Cost
This insight examines how organizations outsourcing their WAN optimization initiatives to a third-party go about achieving their goals for application performance, reducing operational costs, and streamlining enterprise infrastructure.





