|
General Commands
Changing
Your Password |
|
GENERAL COMMANDS |
| cat F1 |
Scroll the file, F1, on the screen |
| cat F1 > F2 |
Replace contents of file F2 with file F1 |
| cat F1 >> F2 |
Appends the contents of file F1 to the end of
file F2 |
| cd dirname |
Change directory. |
| chfn |
Change finger (user's) information. |
| cp F1 F2 |
Copies file F1 and names it F2. |
| date |
Gives the system date and time. |
| f name | more |
Lists all users with name as part of their name
or login (one screenful at a time). |
| ls |
Lists files in current directory.
ls -l shows permissions, etc. shows permissions, etc.
ls -a also shows hidden files also shows hidden files |
| mesg [yes | no] |
Controls ability of others to talk with you. |
| mkdir programs |
Make directory, where the directory name is
programs. To get to this directory after creating it, type cd programs. |
| more F1 |
Scroll the file F1 to the screen, one screenful
at a time. |
| mv F1 F2 |
Moves file F1 to file F2, and overwrites
file F2 if it exists. This is the way to rename a file. NOTE!! If a file already exists
whose name is F2, this file is removed or overwritten by the contents of F1. If the
destination file is write protected, then you must change the mode before you can write to
it. |
| passwd |
Changes the password for the user who is
currently logged in. |
| pico |
Invokes (starts) the
Pico editor. |
| pico F1 |
Starts the Pico editor and either opens or
creates the file F1. |
| rm F1 |
Deletes the file F1. |
|
vi |
Starts
the vi
editor. |
| who |
Displays information about on-line users. |
| Ctrl-D or logout |
Logs you off the system. |