UNIX notes:

Windows
Commands
:

Musings

Home

More Unix


By: Nicholas Duchon

Setting up a nova.umuc.edu account

  1. create or update a nova account:
    > ssh chgpass@nova.umuc.edu
    1. use your general UMUC login name and password (Leo, etc.)
    2. select your class, you will be given a temporary password - WRITE THIS DOWN!
    3. login as normal (2 below), you will be required to change your password immediately
  2. log in to the system, using ssh from a command line (most operating systems):
    > ssh nova.umuc.edu
    > ssh name@nova.umuc.edu


Useful stuff:


Critical UNIX Commands

For more, see the UMUC Programming Guide, and the IT help page. I thought perhaps a short list of critical Unix commands might be helpful for some:
Command
(> represents the prompt,
do not type this character)
Generally spaces count on command lines
Effect
> ls list the contents the current directory
> pwd print the work (current) directory
> dir same as ls
> dir -l ell, not one, long (detailed) list of files in this directory
> dir -F put a / after directories and a * after executable files
> cd <directory name>
> cd www/p1
change directory to <directory name>, do not type <>'s in actual command
Example
> cd .. dot dot represents the parent directory
> cd $HOME
> cd
go to your login (home) directory
> mkdir <directory name>
> mkdir p6
> mkdir $(cat "rollRow.txt")

make a subdirectory of the current directory

read the directories to make from a text file
> pico <file name>
> pico index.html
a simple editor on nova
> exit end telnet session
> sysctl -a | grep cachesize get the cache sizes, sysctl is quite powerful
> gcc -o prog.exe program.c
> g++ prog.cpp
compile and link a C program to an executable file called prog.exe, default would be a.out
compile and link a C++ program to a.out, by default
> man sleep
> man 3 sleep
get manual help about a command, looks in section 1, command line commands, first
Look in man section 3, library functions callable from a user program
> cat file.txt
> hexdump -C file
> less file.txt
list the contents of a (text) file
hex dump of a file
another way to look at the contents of a file
> echo $path | tr " " \\n
list the elements the path used to find an executable file, one entry per line


There are LOTS of other commands, and most commands have lots of options, but this should be enough to get you started.


Emacs:


Windows:

Command
(> represents the prompt,
do not type this character)
Generally spaces count on command lines
Effect
Many commands similar to UNIX commands
also, you can get Cygwin to add UNIX commands to your Windows system.
> cmd
Present a command mode window, looks like DOS and mostly works that way as well
> wmic:root\cli
Tells about CPU information

ND.