- Log in to computer with your user identification. Start Secure Shell
SSH from desk. By choosing File|Connect login window emerges
and it can be used to log into e-mail server. Write server´s name to the
point Host Name. Server´s name is kanto.cc.jyu.fi
if you have user identification in cc-server. And the server´s name is
verso.st.jyu.fi if you have user identification in st-server.
Put your user identification to the point User name and your
password to the point Password.
- If you haven´t changed your original password change it now with command
passwd! The system asks your
old password and then new password twice.
- You are automatically in your home directory after log in.
Check directory listing by using command ls -al and check also
which directories and files you´ll find from your home directory. Try also
if the command dir works on your computer. If it works
alias dir has been done of command ls. There are
DOS-substitutes for most of the commands in ADP-centrum´s UNIX-computers.
- Produce a subdirectory lahetys to your home-directory by using command
mkdir.
- Go to the produced directory with command cd and produce
a file called nimi.txt by using pico-editor
(pico nimi.txt). Write your name to the file.
When pico is on you´ll see the most common commands at the bottom of the screen.
^ -mark means that you have to press ctrl-button and the character next to it at the same time.
For examble saving files can be done by pressing ctrl-button and then o-character
at the same time.
^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text^T To Spell
- Produce also a file called osoite.txt and write your
address to the file.
- Go back to your home-directory.
- Produce a new directory called temp to your home-directory.
- Your directory structure should look like the following when you check it from
your home-directory level.
.
|-- lahetys
| |-- nimi.txt
| `-- osoite.txt
|-- temp
You can try tree-command to find see the listing of your
directory structure. The command tree may not work on all
computers.
- Use the absolute reference and copy the file nimi.txt from
the directory lahetys to the directory temp with
the command cp.
absolute reference (an examble)
You have following directory structure right under the home-directory:
.
|-- norja
| `-- oslo
|-- ruotsi
| `-- tukholma
`-- suomi
|-- helsinki
`-- jyvaskyla
`-- agora.txt
There is told the location of file or directory from since
the root of home-directory in absolute reference. The root of
home-directory is marked with ~ -symbol. If you now want to
copy agora.txt to below the oslo-directory it can be
done by writing
cp ~/suomi/jyvaskyla/agora.txt ~/norja/oslo/.
- Move the osoite.txt -file to same directory with command
mv by using relative reference.
relative reference (an examble)
You have following directory structure right under the home-directory:
.
|-- norja
| `-- oslo
`-- agora.txt
|-- ruotsi
| `-- tukholma
`-- suomi
|-- helsinki
`-- jyvaskyla
`-- agora.txt
There is told the location of file or directory from since
the default-directory in relative reference. The default-
directory is the one where you are in when you write commands. So it is
the directory where you have moved to with cd -command.
If you now want to move the agora.txt-file from oslo
-directory to the tukholma-directory and the default-directory is
suomi you should write:
mv ../norja/oslo/agora.txt ../ruotsi/tukholma/
The marking .. backs up one level in the directory structure.
- Check the directory listing from lahetys-directory with
ls-command. Check also the content of temp-
directory. Try to take directory listing from temp-directory by
using both absolute and relative reference.
- Go to the temp-directory and merge nimi.txt
and osoite.txt with pico-editor. Name the
new file mina.txt. You can put one document inside the other document
in pico-editor with CTRL-R button combination.
- Delete temp-directory and all it´s contents. At first
you must delete files and then the directory can be deleted. (rm and rmdir).
- Go to lahetys-directory and look what kind of authorizations are
defined to directory and to it´s contents (ls -al). Change the
authorizations so that you give read-authorization to all with chmod-
command. Read the instructions of chmod on page 58 and 59.9
from the manage guide of information technology. Be careful that you give
read-authorization only for correct directory. Try with your neighbour if can you gain
access to each others directories. This can be done in the following way:
cd ~user identification/lahetys/. The user identification is your
neighbour´s user identification.
- Try to copy file mina.txt from your friend´s lahetys
-directory to file called kaveri.txt in your own lahetys-directory.