+ All Categories
Home > Documents > Dos vs Linux Commands

Dos vs Linux Commands

Date post: 14-Oct-2014
Category:
Upload: somasekhar-chowdary-kakarala
View: 1,561 times
Download: 9 times
Share this document with a friend
23
DOS COMMANDS VS UNIX/LINUX Prepared by David
Transcript
Page 1: Dos vs Linux Commands

DOS COMMANDS VS UNIX/LINUX

Prepared by David

Page 2: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

DIR ls List directory contents

Page 3: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

TREE ls -R List directory recursivly

Page 4: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

CD cd Change directory

Page 5: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

MKDIR / MD mkdir Make a new directory

Page 6: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

RMDIR / RD rmdir Remove a directory

Page 7: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

CHDIR pwd Display directory location

Page 8: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

DEL / ERASE rm Remove a file

Page 9: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

RMDIR /S rm -R Remove all directories and files below given directory

Page 10: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

COPY cp Copy a file

Page 11: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

XCOPY Xcopy /e (including sub directory)

cp -R Copy all file of directory recursivly

Page 12: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

RENAME mv -iv Rename/move a file

Page 13: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

HELP or COMMAND /? Just type “ help” or eg dir/?

man Online manuals

Ctrl Z

To exit Ctrl Z and Press Enter

Page 14: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

CLS Clear / ctrl-l Clear screen

Page 15: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

COMP diff Compare two files and show differences. Also see comm, cmp, mgdiff and tkdiff.

Page 16: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

DATE or TIME date Show date. (also set date - DOS only)

Page 17: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

DOSKEY /h history List command history

Page 18: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

EDIT filename.txt pico, gnp, vi, xedit, xemacs,dtpad

Edit a file. The Linux editor which looks most like DOS edit is probably Pico. (Not a recomendation!)

Ctrl X to exit Ctrl O to save Alt “F” and “S” to save Alt “F” and “X” to exit

Page 19: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

MEM free Show free memory on system

Page 20: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

TASKLIST (WIN2K, XP) ps -aux top

List executable name, process ID number and memory usage of active processes

Generated by Foxit PDF Creator © Foxit Software

Page 21: Dos vs Linux Commands

DOS Commands vs Unix/Linux

DOS Command UNIX or Bash Command Action

EXIT EXIT0

exit exit 0

Exit a shell

Page 22: Dos vs Linux Commands

DOS Commands vs Unix/Linux

Assignment

Create 4 directory with below name EEE ECE CSE IT

Create sub directory for four year

Type all subject on text file and save as sub.txt on any 1st year folder

1.

2.

3.

4. Copy sub.txt to other dept directory

Page 23: Dos vs Linux Commands

DOS Commands vs Unix/Linux

You have successfully finished your task


Recommended