Basic UNIX commands


Explanation

CommandWindows/DOS equivalentLinux example
List filesdirls
Copy a filecopy file1 file2cp file1 file2
Rename a filerename file1 file2mv file1 file2
Move a filemove file1 newdirectory\*.*mv file1 newdirectory/
Change directorycd newdirectorycd newdirectory
Make directorymd newdirectorymkdir newdirectory
Type a filetype filename | moremore filename
Remove a filedel filenamerm filename
Show current directorycdpwd
Go to home directoryN/Acd
Text Editorswordpad filename[vi emacs nedit jot] filename
(nedit,emacs : xwindows only.
emacs -nw, vi, pico :terminal)
Finding a command apropos phrase or man -k phrase.

EXAMPLE:

% apropos c++
cc, c89, CC (1) - Invokes the MIPS C, MIPSpro C, or MIPSpro C++ compiler
complex (3C) - Introduction to C++ complex mathematics library
etc.
Help on a commandhelp commandman command.

EXAMPLE:

% man CC
NAME
cc(1) Last changed: 4-15-99
cc, c89, CC - Invokes the MIPS C, MIPSpro C, or MIPSpro C++ compiler
etc.