home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best Objectech Shareware Selections
/
UNTITLED.iso
/
boss
/
util
/
dos
/
003
/
quickref.doc
< prev
next >
Wrap
Text File
|
1992-04-21
|
16KB
|
706 lines
DOSNIX QUICK REFERENCE GUIDE
Copyr. 1991 by G. Vrooman
All rights reserved.
GETTING STARTED:
If you have a hard drive, make a directory named C:\DOSNIX
and copy the DOSNIX files into it. To use DOSNIX from any
directory, you need the following statement in your AUTOEXEC.BAT
file:
PATH = C:;C:\DOSNIX
If you already have a path statement, add ;C:\DOSNIX to the
end of it. If you don't have an AUTOEXEC.BAT file, you can
make one with any handy text editor. The following line will
help you keep track of where you are on your hard drive:
PROMPT $P$G
This will make your current directory part of your prompt.
If you don't have a hard drive, you can make a bootable floppy
disk with COMMAND.COM, FORMAT.COM, PRINT.COM and any other MSDOS
utilities you need. Copy as many DOSNIX utilities as you can to
it and use it as a working disk.
If you have 640k of ram you can use part of it for a ram disk.
Make a bootable floppy disk with a directory named \BIN and copy
all desired utilities to \BIN. Copy VDISK.SYS (some versions of MSDOS
use RAMDISK.SYS) to the root directory and create the following files
in the root directory:
CONFIG.SYS:
files = 10
buffers = 20
device = vdisk.sys 256
AUTOEXEC.BAT:
copy bin\*.* c:\
copy command.com c:\
copy cauto.bat c:\autoexec.bat
c:
command /p
CAUTO.BAT:
path = c:\
set COMSPEC = c:\command.com
prompt $p$g
When you boot your computer with this disk you will have a 256k
ramdisk named C:, containing DOS and all your utilities. You will
still have 384k of free ram, and your floppy drives will now be free
for other purposes. If you have extended memory, you can use
device = vdisk.sys 256 /e
to configure your ram disk in extended memory.
DOSNIX OPTIONS:
Most DOSNIX commands have a simple format which can be enhanced
by the use of UNIX style option strings. The option string is always
the first argument after the command and usually begins with a "-".
See DOSNIX.DOC for the options available with each command.
If you are used to MSDOS switches and find this awkward you can
insert the following line in your AUTOEXEC.BAT file:
SET SWITCH=/ (No space before or after "=")
All commands except CHMOD and READ will recognize a "/" as an option
delimiter. If you don't use this feature, you can use slashes in
path names, as in UNIX, and they will be converted to back slashes.
INSTANT HELP:
DOSNIX.DOC has now been keyed for quick command searches and
a HELP.BAT file has been included. To obtain on-line help, type
"help" and the name of the subject with which you want help. In
addition, a brief summary of most commands can be obtained by typing
the name of the command followed by a "-?".
NOTE:
UNIX is a registered trademark of AT&T corporation
MSDOS is a registered trademark of Microsoft corporation
STANDARD INPUT (STDIN) AND STANDARD OUTPUT (STDOUT)
DOSNIX utilities make extensive use of STDIN and STDOUT. STDIN
is the keyboard unless you decide to redirect it. STDOUT is the
screen unless you decide to redirect it. Redirection is done by
using the MSDOS operators; <, >, >> and |.
< used with a program that normally reads from STDIN. It
tells MSDOS to use the contents of a file for STDIN.
For example:
more < dosnix.doc
> writes STDOUT to a file. For example:
cat dosnix.doc
writes DOSNIX.DOC to the screen, while
cat dosnix.doc > another.doc
copies DOSNIX.DOC to ANOTHER.DOC.
>> appends STDOUT to an existing file or writes STDOUT
to a new file. For example:
cat quickref.doc >> dosnix.doc
appends QUICKREF.DOC to DOSNIX.DOC. Unfortunately
this operator will leave an unwanted CTRL-Z between
the two files. For this reason, DOSNIX includes an
APP command.
| The pipeline operator. Uses STDOUT as STDIN for a
second program. For example:
cat *.doc | read
pipes all files with an extension of .DOC to READ.
UNIX and DOSNIX provide an additional command, TEE, which
will write STDOUT to the screen and store it in a file at
the same time. For example:
cat dosnix.doc | tee another.doc
writes DOSNIX.DOC to the screen and stores it in ANOTHER.DOC.
LIST OF DOSNIX COMMANDS
-------------------------------------------------------------------------------
APP append standard input to file(s).
CAT Copy text file(s) to standard output.
CHMOD Modify attribute(s) of file.
CLR Set screen foreground, background and border colors.
CP Copy file to new file or directory.
CPDIR Copy directory and all subdirectories. *
DB Delete all files except specified files.
EDC Easy Directory Change.
FFIND Find all copies of file in specified path.
GET Find all filenames containing specified string. *
LS List contents of directory.
MV Move file to new file or directory.
MVDIR Move directory and all subdirectories to new location.
READ Display text file in page format.
RM Remove file(s).
RN Rename file or directory.
SGREP Search files(s) for text. *
SPLIT Split a text file into smaller pieces. *
TEE Copy standard input to standard output and file(s).
TOLOWER Convert standard input to lower case.
TOUCH Modify file time and date.
TOUPPER Convert standard input to upper case.
* DOSNIX ver. 1.2k
CHANGING SCREEN COLORS: (ver. 0.93+)
clr gre Changes screen color
to green with black
background and border.
clr -b gre Changes screen color to
high intensity green with
black background and border.
clr blu whi Changes screen color to
blue with white background
and border.
clr -b whi blu whi Changes screen color to
high intensity white with
blue background and white
border.
clr bla whi Changes screen color to
black on white. (reverse
video)
clr Clears screen without
resetting color attributes.
Other colors: red, cya, mag, yel, amb
Hint: Try "clr yel amb". This combination is pleasing and won't
singe your eyeballs like some combinations.
ANSI.SYS:
ANSI.SYS is the MSDOS graphics device driver. With ANSI.SYS, you
can use CLS to clear the screen without losing your colors. It is
also required with many communications programs to view ANSI graphics
on bulletin boards. To install ANSI.SYS, copy it to the root directory
of your boot drive and add the following line to CONFIG.SYS:
device = ansi.sys
LISTING FILES:
ls Lists all files in
current directory in
five column format.
ls -l Lists all files in
long format like
DOS DIR command.
ls -lt Lists all files in
long format, sorted
by date, oldest files
first.
ls -lrt Lists all files in
long format, most
recent files first.
ls -le Lists all files in
long format, sorted
by extension.
ls \ Lists all files in
root directory.
ls c:\cshow lists all files in
C:\CSHOW
ls . \ c:\dosnix Lists all files in current
directory, root directory
and C:\DOSNIX
ls *.txt Lists all files in current
directory with an extension
of .TXT
LOCATING FILES:
ffind calvin.gif Searches current drive for
all copies o