An Introduction to UNIX
Configuration files
- UNIX allows users to configure the system to their own preferences. Look at the attached
configuration files
- To see the files on line (on toksrv):
- login to your own account. Then type
cd ~marlowe
- to change to my directory. Then type
alias ls ls -lga
- to set up a useful alias for this session, Then type
ls
- to list the files, and then
more .cshrc.old
- to type that file, (and likewise for the other files)
- You may copy the file for your own use by
cd
- to get back to your own directory
cp ~marlowe/.cshrc.old
- To write your own shell commands, you need to know
- what shell you are in, and
- what the syntax of shell commands is
- click here for a discussion of C-shell programming
Glass tutorial
- Log on to your account on toksrv
- Run the tutorial from Glass, Chapter 2.
- Look at the vi editor .
Lab exercise
Answer the following questions:
- What does the cc command do?
- What does the -p flag do in cc?
- What are the outputs of the wc command?
- How many lines are there in my .cshrc file?
- How many lines are there in the man page for cc?
- Give at least two unix instructions which would find this out.