
If you a MS-DOS user (I know maybe you are a Windows XP user but maybe you still using a MS-DOS in you everyday life) and if you’re migrated to Ubuntu or MacOS X system someday you will forced to use Terminal that using BASH command within it (if you still like using command line). I want to share the comparison between MS-DOS syntax and BASH commands; hopefully it can help you….
Actually, I use it on Ubuntu 7.04 but I had try it with my Macbook and using MacOS X Terminal and I found that almost all commands that I had wrote here are worked too in MacOS X Terminal.
Here are comparison between BASH commands and MS-DOS commands:
| Command | MS-DOS Command | Linux Shell Command (BASH Command) | Usage | |
| 1 | Copy Files | COPY | cp | cp <filename> <new location> |
| 2 | Move files | MOVE | mv | mv <filename> <new location> |
| 3 | Rename files | RENAME | mv | mv <old filename> <new filename> |
| 4 | Delete files | DEL | rm | rm <filename> |
| 5 | Create directories | MKDIR | mkdir | mkdir <directory name> |
| 6 | Delete directories | DELTREE/RMDIR | rm | rm –rf <directory name> |
| 7 | Change directory | CD | cd | cd <directory name> |
| 8 | Edit text files | EDIT | vi | vi <filename> |
| 9 | View text files | TYPE | less | less <filename> |
| 10 | Print text files | lpr | lpr <filename> | |
| 11 | Compare files | FC | diff | diff <file1> <file2> |
| 12 | Find files | FIND | find | find –name <filename> |
| 13 | Check disk integrity | SCANDISK | fsck | fsck |
| 14 | View network settings | IPCONFIG | ifconfig | ifconfig |
| 15 | Check a network connection | PING | ping | ping <ip address> |
| 16 | View a network route | TRACERT | tracepath | tracepath <address> |
| 17 | Clear screen | CLS | clear | clear |
| 18 | Get help | HELP | man | man <command> |
| 19 | Quit | EXIT | exit | exit |
| 20 | Browse files | DIR | ls | ls |
You can subtitute command man (number 18) with info <command>, for example info fsck.
The BASH shell also offers a rename command, but this is usually used to rename many files at once, so I think mv command is more efficiently.
Hopefully, it can help you…..
(article no:0080)






















No Comment Received
Leave A Reply