Go back to DSc8450 home

Basic Unix Commands

How to             Dos command                   Unix command
Directory          dir                           ls
Copy a file        copy <file1> <newfilename>    cp <filename> <newfilename>
Copy files         copy <filespec> <newlocation> cp <filespec> <newlocation>
Rename a file      ren <filename> <newfilename>  mv <filename> <newfilename>
Move a file        move <file> <newlocation>     mv <file> <newlocation>
Move files         move <filespec> <newlocation> mv <filespec> <newlocation>
Delete a file      del <file>                    rm <file>
Make a directory   md <dirname>                  mkdir <dirname>
Delete a directory rd <dirname>                  rmdir <dirname>
change directories cd <dirname>                  cd <dirname>
Change to home
  Directory        cd \                          cd ~
read mail          N/A                           pine
read news          N/A                           tin
edit a text file   edit <filename>               pico <filename>
list a test file   type <filename>               cat <filename>
command help       help <command>                man <command>

ls command options:
   -l  Long format- shows file size, owner, group and permissions
   -C  Colums-  like the /w in Dos
   -a  All file-  including "hidden" files that begin with a .
   -la All file in Long format

Keeping LS, Cat and other commands from going off the screen too fast.
  add a
    | more
  after the command.

The ~ character in Unix
  The ~ character in Unix, when used by itself, is the same thing as your
home directory.  If you place userid after the ~, it is the same thing as
the home directory of the userid

Other Unix commands
ftp <remote server>
  File Transfer Protocol, login as anonymous and use your email address as
   the password.
  commands :
    bin               sets ftp for binary files (.zip, .gif, .jpg, .exe, ect)
    ascii             sets ftp for text transfers (.txt)
    get <filename>    downloads file to your account.
    put <filename>    uploads file from your account
    mget <filespec>   downloads a bunch of files to your account
    mput <filespec>   uploads files from your account
    cd <directory>    change directory

telnet <remote server> [port #]
   Logs into a remote host..
     Used for Connecting to other accounts and M*'s (Mud, Muse, Mush, Moo)

lynx <URL Address>
   Connects to the WWW using a text only interface, useful when you don't
    wish to wait for images to download or cannot access a graphical web
     ?          - Help
     up         - previous link
    down        - next link
   Right, Enter - follow link
    Left        - previous topic
    +, space    - Next page
     g          - Go to a URL
     a          - Add to Bookmark file
     v          - View bookmark file
     z          - Cancel current transfer

In Him, for Him
Robert Lance Milby       | Web Designer
Georgia State University | Computer Center, Training Group
usgrlmx@glacier.gsu.edu  | http://glacier.gsu.edu/

Go back to DSc8450 home