|
| DEPARTMENT OF COMPUTER SCIENCE REFERENCE & FORMS |
UNIX is a multi-user environment.
sshclient
First, you'll have to click on the computer icon or select Quick Connect from the File menu. An example of the actual login procedure is as follows:
Host Name: machine@cs.fsu.edu
User Name: yourusername
Authentication: Password
When you press Connect you will be prompted for your password. Enter it here, now.
Remember that both your userid and password are case sensitive.
% logout
OR
% CTRL-d
ls
To list the contents of another directory, you can either "cd" to it and type "ls", or you can simply supply the directory name as an argument. For example: "ls /etc", would list the contents of the directory /etc.
Creating a Directory
If you are in a directory for which you have write permission, you can
create one or more sub-directories using the "mkdir" command. Examples:
mkdir thesis
mkdir private.stuff letters milkdud
Erasing Files
The command "rm" is used to erase files and sometimes directories. By
default, it does not ask for conformation before wiping out exactly what
you tell it to. For example, this command would erase all files ending in
`.o', and `.out':
rm *.o *.out
But be careful, the following command would remove all files in the current directory:
rm *.o * .out
You can remove a directory that you own with the "rmdir" command. The directory must be empty before it can be removed. Use the "ls -a" command to make sure you have removed any hidden files.
more view file(s), stopping for each page cp copy file(s) mv move file(s)
Viewing Files
The command "more" will display a file or files one video page at a time.
Use the space bar to move on to the next page; use the return key to
scroll one line at a time. There are a bunch of other useful functions
built into "more", such as searching for the next occurrence of a string,
and scrolling backwards. Note that many programs will automatically use
"more" to display files to the user. Examples:
more /etc/motd
more /usr/lang/pascal/docs/readme
Copying, Moving, and Renaming Files
You can copy a file with the "cp" command. You can move a file with the
"mv" command. You can also use these commands recursively, to copy and
move directories (see their man pages for details). Note that the "mv"
command is also used to rename files (by `moving' them to their new name).
Examples:
cp .login .login.backup
mv .cshrc /tmp/mybackups
mv first-try.c bad-idea.c
Graduate students and faculty can access the CS dial-up services at one of the following numbers:
28.8 ---- 6090 (Rotary), 6091, 9092, 6093, 6094 8585 14.4 ---- 0090, 0091, 0092, 0093, 0094 8592, 8593, 8594