DOS COMMANDS VS UNIX/LINUX
Prepared by David
DOS Commands vs Unix/Linux
DOS Command DIR UNIX or Bash Command ls Action List directory contents
DOS Commands vs Unix/Linux
DOS Command TREE UNIX or Bash Command ls -R Action List directory recursivly
DOS Commands vs Unix/Linux
DOS Command CD UNIX or Bash Command cd Action Change directory
DOS Commands vs Unix/Linux
DOS Command MKDIR / MD UNIX or Bash Command Action mkdir Make a new directory
DOS Commands vs Unix/Linux
DOS Command RMDIR / RD UNIX or Bash Command Action rmdir Remove a directory
DOS Commands vs Unix/Linux
DOS Command CHDIR UNIX or Bash Command Action pwd Display directory location
DOS Commands vs Unix/Linux
DOS Command DEL / ERASE UNIX or Bash Command Action rm Remove a file
DOS Commands vs Unix/Linux
DOS Command RMDIR /S UNIX or Bash Command Action Remove all directories and files rm -R below given directory
DOS Commands vs Unix/Linux
DOS Command COPY UNIX or Bash Command Action cp Copy a file
DOS Commands vs Unix/Linux
DOS Command XCOPY Xcopy /e (including sub directory) UNIX or Bash Command cp -R Action Copy all file of directory recursivly
DOS Commands vs Unix/Linux
DOS Command RENAME UNIX or Bash Command mv -iv Action Rename/move a file
DOS Commands vs Unix/Linux
DOS Command HELP or COMMAND /? Just type help or eg dir/? UNIX or Bash Command man Action Online manuals
Ctrl Z
To exit Ctrl Z and Press Enter
DOS Commands vs Unix/Linux
DOS Command CLS UNIX or Bash Command Clear / ctrl-l Action Clear screen
DOS Commands vs Unix/Linux
DOS Command COMP UNIX or Bash Command Action Compare two files and show diff differences. Also see comm, cmp, mgdiff and tkdiff.
DOS Commands vs Unix/Linux
DOS Command DATE or TIME UNIX or Bash Command date Action Show date. (also set date DOS only)
DOS Commands vs Unix/Linux
DOS Command
DOSKEY /h
UNIX or Bash Command
history
Action
List command history
DOS Commands vs Unix/Linux
DOS Command EDIT filename.txt UNIX or Bash Command pico, gnp, vi, xedit, xemacs,dtpad Action Edit a file. The Linux editor which looks most like DOS edit is probably Pico. (Not a recomendation!)
Alt F and S to save Alt F and X to exit
Ctrl O to save
Ctrl X to exit
DOS Commands vs Unix/Linux
DOS Command MEM UNIX or Bash Command free Action Show free memory on system
Generated by Foxit PDF Creator Foxit Software
DOS Commands vs Unix/Linux
DOS Command
TASKLIST (WIN2K, XP)
UNIX or Bash Command
ps -aux top
Action
List executable name, process ID number and memory usage of active processes
DOS Commands vs Unix/Linux
DOS Command EXIT EXIT0 UNIX or Bash Command exit exit 0 Action Exit a shell
DOS Commands vs Unix/Linux
Assignment 1. Create 4 directory with below name EEE ECE CSE IT 4. Copy sub.txt to other dept directory
2.
Create sub directory for four year
3.
Type all subject on text file and save as sub.txt on any 1st year folder
DOS Commands vs Unix/Linux
You have successfully finished your task