CSE 14 Lecture Notes - Lecture 1: Timeshare, Terminal Emulator, Putty
CMPS12A Lecture 1 – Unix TimeShare
Before we get into learning Java and coding, we should know how to use the Unix Timeshare,
which is a server, a command line access to Linux-based Unix systems. One is able to use it to
store things into the Unix system, make directories, execute files, read text tiles, make files, run
programs like Java (which we will), etc.
In order to access the Unix Timeshare systems, you can use PuTTY which is a free and open-
source terminal emulator, serial console and network file transfer application. You will need to
log in with your username and password, which is basically the CruzID for username and Blue
Password for password. As a UCSC student, you will already have a file system like this:
root/afs/cats.ucsc.edu/users/<some letter>/<your cruzid>
In the file directory of your CruzID, you will make directories that correspond to the program
assignments and labs that you do, as well as make the files needed. Here are the commands for
the Unix Timeshare system gathered from the UCSC Information Technology Services page
https://its.ucsc.edu/unix-timeshare/tutorials/unix-command.html
Login/logout
login: accountname
type your UCSC account name, then press the RETURN key.
Password:
type your password (it does not print, so type carefully), then press the RETURN key.
logout
logs you off the system (logout is one word). You can also use exit.
General commands
clear
clears your terminal screen.
date
shows the date and time.
cal 3 1998
shows the calendar for March 1998. cal 3 92 shows you March in 92 A.D.; try also cal 9 1752 !
find more resources at oneclass.com
find more resources at oneclass.com
mail
retrieves mail which has been sent to you, and shows it one message at a time, prompting
with & for disposition. Type a ? while inside mail to get a list of mail commands. Most people
should use pine instead (see below). mail does not work in IC Solaris
passwd
changes your password. You are prompted once for your current password and twice for
your new one. Printing is turned off while the passwords are typed. New passwords may be as
long as eight characters.
kpasswd
changes your password in IC Solaris systems. You are prompted once for your current
password and twice for your new one. Printing is turned off while the passwords are typed.
New passwords may be as long as eight characters.
pine
another email program. Easier to use than mail because it is menu driven.
who
lists users who are currently logged in. If you type users, you get only their login names.
fs lq
How much filesystem storage quota you have used.
Online documentation
man command
prints a writeup from the UNIX Programmer's Manual for the specified command.
man -k topic(s)
locates commands by keyword lookup. For example, try man -k editor.
help
on Athena machines (e.g. si, am, ese, angus, and others) invokes lynx, a web text browser
beginning at the ITS HelpDesk's home page. Use the on-screen menus to navigate.
quickhelp
help on IC Solaris Systems
find more resources at oneclass.com
find more resources at oneclass.com
Document Summary
Before we get into learning java and coding, we should know how to use the unix timeshare, which is a server, a command line access to linux-based unix systems. One is able to use it to store things into the unix system, make directories, execute files, read text tiles, make files, run programs like java (which we will), etc. In order to access the unix timeshare systems, you can use putty which is a free and open- source terminal emulator, serial console and network file transfer application. You will need to log in with your username and password, which is basically the cruzid for username and blue. As a ucsc student, you will already have a file system like this: root/afs/cats. ucsc. edu/users// In the file directory of your cruzid, you will make directories that correspond to the program assignments and labs that you do, as well as make the files needed.