Apr 202009
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 |
Is there a DOS equivalent of the unix “which” command?
what file stores all the commands line issued in opensuse?
@Rupe
No, there is no equivalent to “which”.
@eib
Why do you need that? If you want to delete history, just run “history -c”
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.
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………….