UNIX/MS-DOs scipt


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers UNIX/MS-DOs scipt
# 1  
Old 08-08-2008
UNIX/MS-DOs scipt

Is any one who know a good tutorial for Unix bash script and Ms-Dos scipt??
if yes, if is possible to upload it or give me the link???

What is the difference betwwen uvix and ms-dos script??
# 2  
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..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question