dos vs linux commands
TRANSCRIPT
![Page 1: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/1.jpg)
DOS COMMANDS VS UNIX/LINUX
Prepared by David
![Page 2: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/2.jpg)
DOS Commands vs Unix/Linux
DOS Command UNIX or Bash Command Action
DIR ls List directory contents
![Page 3: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/3.jpg)
DOS Commands vs Unix/Linux
DOS Command UNIX or Bash Command Action
TREE ls -R List directory recursivly
![Page 4: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/4.jpg)
DOS Commands vs Unix/Linux
DOS Command UNIX or Bash Command Action
CD cd Change directory
![Page 5: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/5.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/6.jpg)
DOS Commands vs Unix/Linux
DOS Command UNIX or Bash Command Action
RMDIR / RD rmdir Remove a directory
![Page 7: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/7.jpg)
DOS Commands vs Unix/Linux
DOS Command UNIX or Bash Command Action
CHDIR pwd Display directory location
![Page 8: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/8.jpg)
DOS Commands vs Unix/Linux
DOS Command UNIX or Bash Command Action
DEL / ERASE rm Remove a file
![Page 9: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/9.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/10.jpg)
DOS Commands vs Unix/Linux
DOS Command UNIX or Bash Command Action
COPY cp Copy a file
![Page 11: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/11.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/12.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/13.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/14.jpg)
DOS Commands vs Unix/Linux
DOS Command UNIX or Bash Command Action
CLS Clear / ctrl-l Clear screen
![Page 15: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/15.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/16.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/17.jpg)
DOS Commands vs Unix/Linux
DOS Command UNIX or Bash Command Action
DOSKEY /h history List command history
![Page 18: Dos vs Linux Commands](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/18.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/19.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/20.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/21.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/22.jpg)
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](https://reader030.vdocuments.site/reader030/viewer/2022013114/543cdb02b1af9f5f378b48a2/html5/thumbnails/23.jpg)
DOS Commands vs Unix/Linux
You have successfully finished your task