Accessing your account
Logging in and out of you account
Changing your password
Changing your login shell
Manipulating and managing files and directories
Transferring files to and from your account
Printing from your account
Compilers and interpreters
Compiling a C program
GNU C and C++ Compiler
Browsing the web
Reading a PDF file
References and tutorials
Books
System tools
System support references
Logging in and out of you account
Changing your password
Changing your login shell
Manipulating and managing files and directories
Transferring files to and from your account
Printing from your account
Compilers and interpreters
Compiling a C program
GNU C and C++ Compiler
Browsing the web
Reading a PDF file
References and tutorials
Books
System tools
System support references
Accessing your account
You can access your UNIX account from one of the following two ways:- By sitting directly in front of the UNIX computer you
are trying to access. The UNIX computers in our
department live in the AN 131 lab. This simply involves
entering your username and password (given on the first
day of class) at the console. Be sure to change your
password (see instructions below).
- By accessing the UNIX computer remotely from another
(UNIX, Macintosh, Windows) computer using SSH (Secure
SHell).
- SSH is a common protocol for connecting to remote
computers. There are several free versions of SSH
available.
My personal favorite is PuTTY.
The Windows computers in the CPS labs (AN 13[15]) are
equip with SSH Secure Shell (Start -> Programs
-> SSH Secure Shell -> Secure Shell
Client).
- You may connect to any of the following three
client computers (runnig SUSE Linux) identified by
their hostname:
cpssuse04.cps.udayton.edu
cpssuse05.cps.udayton.edu
cpssuse06.cps.udayton.edu
cpssuse07.cps.udayton.edu
cpssuse08.cps.udayton.edu
cpssuse09.cps.udayton.edu
cpssuse10.cps.udayton.edu
cpssuse11.cps.udayton.edu
cpssuse12.cps.udayton.edu
cpssuse13.cps.udayton.edu
Note: You can access your files from any of these computers.
- SSH is a common protocol for connecting to remote
computers. There are several free versions of SSH
available.
My personal favorite is PuTTY.
The Windows computers in the CPS labs (AN 13[15]) are
equip with SSH Secure Shell (Start -> Programs
-> SSH Secure Shell -> Secure Shell
Client).
- After you connect, enter your username and password (given on the first day of class; if you have never logged into one of these computers, your password is still the default as it is not synchronized with your Windows account). You will see a command prompt for input.
Logging in and out of your account
To log in, follow the above instructions for accessing you account. Enter your username when prompted. Similarly, enter your password when prompted.To log out, hit crtl-d (this is the EOF character on UNIX systems).
Changing your password
To change your password, enter the following command at the prompt.passwd
Changing your login shell
To change your login shell (e.g., to bash), enter the following command at the prompt.chshThe path to the Bash shell (Bourne Again SHell) is /bin/bash. The path to the Korn shell is /bin/ksh. The shell is the user's command line interface to the UNIX system. The Bash and Korn shells have more user friendly features, such as command and filename completion (using the TAB key), than the C shell (i.e., csh, the default login shell for your account).
Manipulating and managing files and directories
Transferring files to and from your account
To transfer files to and from your account, use a secure file transfer program such as FileZilla. You can also use PSCP or PSFTP available for free download from the PuTTY Download Page. The Windows computers in the CPS labs (AN 13[15] and MH 21A) are equip with Secure File Transfer Client (Start -> Programs -> SSH Secure Shell -> Secure Shell File Transfer Client).Printing from you account
Printing is unavailable at this time, but should be available soon. To print a file in your account, you will need to first transfer (see above) it out of your account and then print it locally.
You can also explore various utilities for printing installed on the system such as a2ps (ascii to postscript), enscript, gs, and dvips. For instance, enscript hw1.c -o hw1.ps sends the output of the conversion of hw1.c from ascii to Postscript to the file hw1.ps rather than directory to the printer.Compilers and interpreters
- C: gcc mypgm.c
- C++: g++ mypgm.cpp
- Perl: perl mypgm.pl
- Python: python mypgm.py
Compiling a C program
GNU C and C++ Compiler
Browsing the web
To fire the Mozilla web browser, enter the following command (only from the console): firefox &Reading a PDF file
To read a PDF file, enter the following command (only from the console): acroread [filename] & or replace acroread with evince or kpdf on Linux system.References and tutorials
(also have a look at the posters titled "UNIX Shell Commands" and "UNIX Vi Commands" in the AN 131 lab)- CPS 346 & 444/544 introduction to UNIX webpage
- UNIX Tutorial for Beginners (from University of Virginia)
- Best UNIX Resources
- UNIXhelp for Users is an excellent beginner's guide to common tasks, packed with helpful information for users of the UNIX operating system, developed at the University of Edinburgh.
- Introduction to Unix commands from Indiana University
- On-line docs from Berkeley: on-line documentation covering general UNIX, vi, mail using elm or pine, X-Windows, shell tutorial, and more!
- The genealogy of UNIX
- The Creation of the UNIX* Operating System (Bell Labs)
- An Overview of the UNIX* Operating System (Bell Labs)
- vi Editor
- UW vi reference
- vi for smarties
- hub of vi resources
- additional vi resources
- vi Lovers homepage
- vim (vi mproved editor)
- vim tutorial using Flash
- "What's so great about `grep'? Implications for program comprehension tools," J. Singer and T. C. Lethbridge
Books
Pick up any textbook or programming reference on UNIX at the Roesch Library or your local library. My favorites are the following.- B.W. Kernighan and R. Pike. The UNIX Programming Environment. Prentice Hall, Upper Saddle River, NJ, Second edition, 1984. ISBN: 0-13-937681-X.
- M. G. Sobell. A Practical Guide to the UNIX System. Addison Wesley, Reading, MA, Third edition, 1994. ISBN: 0-8053-7565-1.
- A. Robbins. UNIX in a Nutshell: A Desktop Quick Reference for GNU/Linux, Mac OS X, and Solaris. O'Reilly, Fourth edition, 1999. ISBN: 0596100299.
- L. Lamb and A. Robbins. Learning the vi Editor. O'Reilly, Sixth edition, 1998. ISBN: 1-56592-426-6.
- S. Powers, J. Peek, T. O'Reilly, and M. Loukides. UNIX Power Tools. O'Reilly, Third edition, 2002. ISBN: 0596003307.
System tools
- VirtualBox
- LiveCD and LiveUSB images are available on the main download page for openSUSE (both GNOME and KDE live media are available)
- XLiveCD (a free CD based on Cygwin for X Windows forwarding through ssh)
- Xming (a free X Window server for Microsoft Windows (XP/2003/Vista) which can be used to forward X applications through ssh)
System support references
- OpenSUSE Linux
- GNU (free, open-source software for UNIX)
- FreeBSD (based on UCB 4.4BSD-Lite)
- NetBSD
- OpenBSD
- The X Window System
- ALPINE Information Center at the University of Washington (ALPINE is the successor to PINE)
- E-Mail with the elm mailer from the University of Hawaii at Manoa
- An HTML Reference
- Perl
- Cygwin: UNIX utilities for Windows
(c) Saverio Perugini, Winter 2005, University of Dayton. Permission to use ideas about the organization of topics and any notes or material is granted, provided suitable acknowledgments and citations are made.