Apr 202009
 

In this tutorial we will show you list of dos commands with corresponding linux commands.If you are new user to linux you can use this as reference

DOS/Linux commands

DOS commands Linux command Action
assign ln Create a file or directory link
<command> /? man <command> Help about the command
break on trap Trap ctrl-break / Trap signals
cd cd Change directory
chdir pwd Display directory location
cls clear Clear screen
copy cp Copy a file
date date Displays or sets the date
del rm Deletes one or more files
dir ls Displays a list of files and subdirectories in a directory
doskey /h history history List command history
echo echo Displays messages, or turns command-echoing on or off
edit vim (or other editor) Editor to edit files
exit exit Exit the command prompt
fc diff Compare two files and show differences
find grep Searches for a text string in a file or files
format mke2fs or mformat Formats a disk
find grep Look for a word in files given in command line
hostname hostname Print host name of computer
ipconfig ifconfig Display/configure network interface
mem free Displays the amount of used and free memory in your system
mkdir mkdir Create a Directory
more more or even less Displays output one screen at a time
move mv Moves files and renames files and directories
ping ping Send packets to a network host
route print route -n Print routing table
reboot shutdown -r now Reboot system
ren mv Renames a file or files
set set or env List all environment variables
tracert traceroute Show routes and router hops to given network destination
time date Displays or sets the system time
tasklist ps -aux top top List executable name, process ID number and memory usage of active processes
type cat Dump contents of a file to users screen
ver Uname -a Operating system/shell version
win startx Start x-windows
xcopy cp -R Copy all file of directory recursively

Incoming search terms:

  5 Responses to “DOS commands and equivalent linux commands”

  1. Is there a DOS equivalent of the unix “which” command?

  2. what file stores all the commands line issued in opensuse?

  3. @Rupe
    No, there is no equivalent to “which”.

    @eib
    Why do you need that? If you want to delete history, just run “history -c”

  4. Two errors:

    Both Linux and Windows work the same way with “cd” and a parameter, i.e. current directory will be changed.

    Windows’ “cd” without parameters will show current directory. The Linux equivalent is “pwd”.

    Linux’s “cd” will change the direcotry to home directory. There is no Windows equivalent.

  5. in Linux command such as exploite, lhost(Local host), rhost(Remote host), PS,migrate, keyscan,keydump, shell etc
    What are the equivalent in windows cmd command? Specially for win 7 if diffferent from other windows………….

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>