|
Linux/UNIX command
|
Description
|
MS-DOS equivalent |
|
./foo |
start foo (allocated in current dir.) |
foo |
|
/ ¯ |
previous / next command |
doskey |
|
cd x (or cd /x) |
go to directory x |
cd |
|
cd .. (or cd ../ or cd /..)
|
go down one directory |
cd.. |
|
x then [tab] <beep> [tab]
|
view all commands starting with x |
- |
|
adduser |
add a user to the system |
/ |
|
ls (or dir) |
list a directory |
dir |
|
cat |
view a textfile on the terminal |
type |
|
mv x y |
move or rename file x to file y |
move |
|
cp x y |
copy file x to file y |
copy |
|
rm x |
delete a file |
del |
|
mkdir x |
make a directory |
md |
|
rmdir x |
remove a directory |
rd |
|
rm -r x |
remove directory x and all its underlying files |
deltree |
|
rm p |
remove a package |
- |
|
df (or df x) |
Show free space on device x |
chkdsk ? |
|
top |
view memory status (q to quit) |
mem |
|
man x |
get a manual page about command x |
/ |
|
less x |
view text file x (note that the more filter works under
Linux too!) |
type x |more |
|
echo |
print something on the screen |
echo |
|
mc |
Norton Commander for UNIX |
nc |
|
mount |
to couple a device (e.g. CD-ROM, umount to uncouple)
|
- |
|
halt |
to shutdown |
- |
|
reboot ([ctrl] + [alt] + [del]) |
to restart |
[ctrl] + [alt] + [del] |