|
Dos Commands compare to Linux |
Linux Compared to DOS
| Linux/Unix Commands |
Dos Equivalent
|
Description of the command |
| ls |
dir |
list of files or directories/folders |
| cp |
copy |
Command to allow the copy of files and/or directories |
| ls -ail |
dir /a |
list of files or directories/folders & any possible hidden/system files |
| cd / |
cd \ |
To move to a direcotory / folder |
| rm |
del |
To delete file(s) |
| rmdir |
rmdir |
To delete a directory / folder |
| rm -R |
deltree |
To delete a directory / folder & its sub directories / folders . ** WARNING ** THIS CAN REMOVE THE ENTIRE DISK CONTENTS. |
| vi |
edit |
A text (ANSI) editor |
| mv |
ren |
To rename a file |
| mv |
move |
To move a file |
| chmod |
attrib |
To set permissions on a file or directory / folder |
| chown |
N/A |
To set user and group permissions |
| pwd |
cd |
Shows current directory |
| clear |
cls |
Clears the screen |
| find |
dir /s |
This is used to search for files/folders on the hard disk. The find command under Unix/Linux does have additional parameters which are required for it to work. |
| cat |
type |
To output a file to a device |
|