Sponsored Content
Full Discussion: UNIX/MS-DOs scipt
Top Forums UNIX for Dummies Questions & Answers UNIX/MS-DOs scipt Post 302223226 by Ikon on Friday 8th of August 2008 04:12:19 PM
Old 08-08-2008
Short answer: They are 2 different operating systems that use different Syntax and Commands


Long Answer:

Back in the days before Microsoft Windows dominated the PC market, operating system were controlled by commands. Prior to MS-Windows, PC users were required to learn these commands in order to perform routine tasks. During the 1980s, Microsoft DOS dominated the PC market while the early UNIX command systems were used on larger multi-processing servers.

The main difference between UNIX and DOS is that DOS was originally designed for single-user systems, while UNIX was designed for systems with many users.


Because UNIX and MS-DOS were developed at the same time they share some common syntax, and the UNIX admin will be happy to find many common commands and concepts. The list below shows some of the commonality between UNIX and MS-DOS commands:

*

Changing directories: both DOS and UNIX utilize the cd commands for this purpose, but UNIX has the "cd " command that allows you to flip-flop between your last two directories.

Display file contents: UNIX has the "cat" command" and DOS uses the "type" command.

Setting file permissions: DOS uses the "attrib" command while UNIX uses the "chmod" command to change file permissions.

Copying files: DOS uses the "copy" command, while UNIX uses the "cp" command.

Comparing two files: UNIX uses the "diff" command and DOS has the "fc" command.

Printing files: UNIX uses the "lp" command while DOS uses the "print" command.

Moving files: DOS uses the "rename" command and UNIX uses the "mv" command.

Make a directory: UNIX uses the "mkdir" command while DOS has the "md" command.

Display directory contents: UNIX uses the "ls" command and DOS has the "dir" command.

Delete files: DOS uses the "del" command while UNIX has the "rm" command.

Display the OS version: DOS uses the "ver" command while UNIX has the "uname -a" command.


EDIT: There was some VERY outdated information in my post so I had to edit it... Smilie

Last edited by Ikon; 08-08-2008 at 05:17 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Compressing files from DOS to Unix

As the title sugests I need to compress files from DOS to Unix. The files should be in .Z format, as created using 'compress' in an Unix environment. Ligs (2 Replies)
Discussion started by: ligs
2 Replies

2. UNIX for Dummies Questions & Answers

DOS to Unix translator

I know nothing of unix and didn't know where to start. I've heard of a DOS to Unix translator, and since I know DOS pretty well, I thought that this program would be perfect. Any help you could give me would be appreciated. Bryan (1 Reply)
Discussion started by: bferguson
1 Replies

3. Shell Programming and Scripting

Dos to Unix conversion

Hi ! I need to convert a DOS batch file to Unix Shell script. Can anybody help me by providing equivalent Unix shell script code to this DOS batch code?. for /F "tokens=2,3,4 delims=/- " %%i in ("%date%") do set DateStamp=%%k%%i%%j Any help would be great. Thanks, John. (1 Reply)
Discussion started by: john413
1 Replies

4. UNIX for Dummies Questions & Answers

Unix Emulator for DOS Shell

would like to have ls, wc -l, etc all availble in this silly dos shell I'm stuck in thanks! (1 Reply)
Discussion started by: robersh
1 Replies

5. Windows & DOS: Issues & Discussions

Converting UNIX scripts to DOS

Is there a tool available to convert UNIX (BASH Shell) scripts to DOS scripts? I understand that DOS scripting is far inferior to unix scripting, and therfore this conversion may not be possible. Alternativley, perhaps I could convert my Unix scripts to C... then compile it for a windows... (2 Replies)
Discussion started by: Crozz
2 Replies

6. Cybersecurity

telnet from unix to dos

hi eveybody, i use sco unix as server and dos as client . how i can connect from unix server to dos client ( how to telnet to dos and run commands?)? thanks. (1 Reply)
Discussion started by: shrb78
1 Replies

7. SCO

telnet from unix to dos

hi eveybody, i use sco unix as server and dos as client . how i can connect from unix server to dos client ( how to telnet to dos and run commands?)? thanks. (1 Reply)
Discussion started by: shrb78
1 Replies

8. Windows & DOS: Issues & Discussions

telnet from unix to dos

hi eveybody, i use sco unix as server and dos as client . how i can connect from unix server to dos client ( how to telnet to dos and run commands?)? thanks. (8 Replies)
Discussion started by: shrb78
8 Replies

9. Shell Programming and Scripting

Dos-Unix Connectivity

Hi, Is there any method to connect unix box(Excecuting unix commands through Batch Files) through DOS prompt. (1 Reply)
Discussion started by: shekhar_ssm
1 Replies

10. UNIX for Dummies Questions & Answers

[Solved] DOS to Unix Help

I am in the process of converting a batch script into a shell script for CentOS but am a complete Unix newb. I have the follow Windows batch code: for /f %%a in (C:\STEAMINVITE\extractor\workfile3.tmp) do C:\Python27\Python.exe C:\STEAMINVITE\extractor\sidconv.py %%a >... (2 Replies)
Discussion started by: spinner0205
2 Replies
dxmtools(1)						      General Commands Manual						       dxmtools(1)

NAME
dxmtools - DOS Tools Graphical User Interface for manipulating files on an MSDOS diskette SYNOPSIS
/usr/bin/X11/dxmtools OPTIONS
DESCRIPTION
The DOS Tools application, dxmtools, uses a graphical user interface to copy files to and from an MSDOS formatted diskette to manipulate files on that diskette, in the same manner as the mtools(1) commands, which are accessed from the command line interface. The DOS Tools application accepts the standard X11 resource options. For more information, see the X(1X) reference page Use the DOS Tools application to: Copy a diskette file to Tru64 UNIX Copy Tru64 UNIX files to the diskette Create a directory on the diskette Delete diskette files Format a diskette Change the diskette volume label Change the archive, read-only, hidden, and system attribute bits on a diskette file Display the contents of a diskette file Find a diskette file by its name, size, or attribute settings Rename a diskette file. MSDOS filenames are optionally composed of a drive letter followed by a colon, optional subdirectories, and a filename. Subdirectory names can use either the '/' or '' separator. The current working directory relative to the diskette is A:/. The regular expression pattern matching routines follow the UNIX-style rules. For example, an asterisk (*), in place of asterisks separated by a dot (.) that is *.*, matches all MSDOS files. The archive, hidden, read-only, and system attribute bits are ignored during pattern matching. The DOS Tools application requires a diskette properly installed on the system. The DOS Tools application addresses a device named /dev/disk/floppy; a symbolic link between the diskette device and /dev/disk/floppy is required. Online help is available for the dxmtools application. To get help, click on any Help button or use the Help pull-down menu. The DOS Tools application can be invoked from: The CDE Application Manager. Application Group: Desktop_Apps Desktop_Apps Subgroup: dxmtools EXAMPLES
Invoke the DOS Tools application from the command line. /usr/bin/X11/dxmtools Open the DOS Tools help volume from the command line without running the application. /usr/dt/bin/dthelpview -h /usr/dt/appconfig/help/C/dxmtools.sdl FILES
DOS Tools executable DOS Tools Help Volume Symbolic link for diskette drive. SEE ALSO
Commands: ln(1), mattrib(1), mcd(1), mcopy(1), mdel(1), mdir(1), mlabel(1), mmd(1), mrd(1), mread(1), mren(1), mtools(1), mtype(1), mwrite(1), X(1X) Diskette interface: fd(7) Utilities: MAKEDEV(8), mknod(8) dxmtools(1)
All times are GMT -4. The time now is 01:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy