
Quick Summary of Unix Commands
- man
- This is unix help. To get help you need to know the command name. For
example, you could type 'man ls'. You can also do keyword searches if you don't know the
exact name of the command you want information on, for example : "man -k
password".
- cp
- This command COPIES files. For example "cp file.dat new.dat"
- ls
- This LISTS files in a directory. Most often you would type "ls
-l" . The "-l" key gives all file details. A "-" in a Unix
command designates a command option.
- mkdir
- This makes a directory just like in DOS.
- cd
- CHANGE DIRECTORY, for example "cd newdir". Typing just
"cd" will take you to your home directory.
- pwd
- Tells you which directory you are currently in (print working directory)
- rm
- removes (deletes) a file, e.g. "rm file.dat"
- mail
- Standard unix mail program
- mv
- This moves a file (sort of like renaming it). For example "mv
oldfile.dat newfile.dat" renames "oldfile.dat" to "newfile.dat".
If a subdirectory called "sub1" exists below the directory containing
"oldfile.dat", then "mv oldfile.dat sub1" would result in the file
moving into subdirectory "sub1", but keeping the same name.
- more
- Lets you view a file on the screen, for example "more
file.dat". Use the space bar to page thru the file. Type "q" if you have
seen all that you want to see. Typing "/text" will search down through the file
until the character string "text" is found.
- less
- a more powerful version of ""more".
- passwd
- Changes your password. Be sure to use at least 8 letters in the
password, including at least 2 numbers or strange characters like "+",
"-", "?", "!", etc. Mixing upper and lower case letters is a
good idea.
- ps or jobs
- Shows jobs running on the system. (you can use "kill" to kill
jobs)
- lpr
- Prints a file.
Editors
- pico
- This is an easy to use text-mode editor
- emacs
- A standard unix editor. Excellent editor but not all that easy to learn.
- vi
- A standard unix editor. Again another excellent one, but takes some
getting used to.
- nedit, xcoral
- Very easy to use and powerful window based editors.
| ECE Home | What's New | General Information
| Faculty | Alumni
| Research | Student Organizations | Courses |
| Paul W. Klipsch | College of Engineering | Related Links |
This page is maintained by eeoffice@nmsu.edu
| Last update 4-14-99