October 3rd, 2018
UNIX is an operating system
UNIX systems also have a graphical user interface (GUI)
However, command line interface is also used
There are many different versions of UNIX they share common similarities
The most popular varieties of UNIX are Linux, and MacOS X
In old times we also had Solaris, Minix, Ultrix, AIX, DG/UX, Irix and Unix
Set of programs which make the computer work.
The UNIX operating system is made up of three parts:
The kernel of UNIX is the hub of the operating system:
The kernel wraps the different hardware. No other software can interact with the hardware.
Programs have to ask to the kernel to access the hardware
When a user logs in
$
$
By typing part of the name of a command, filename or directory and pressing the [Tab] key, the shell will complete the rest of the name automatically.
If the shell finds more than one name beginning with those letters you have typed, it will beep, asking you to type a few more letters before pressing the tab key again.
The shell keeps a list of the commands you have typed in
If you need to repeat a command,
history
for a list of previous commandsAll the files are grouped together in the directory structure
/
In the diagram above, we see that the home directory of the user ee51vn
contains two sub-directories (docs
and pics
) and a file called report.doc
The full path to the file report.doc
is /home/its/ug1/ee51vn/report.doc
ls
(list)When you first login, your current working directory is your home directory
To find out what is in your home directory, type
$ ls
The ls
command ( lowercase L and lowercase S ) lists the contents of your current working directory.
ls
commandIn that case, the UNIX prompt will be returned
ls
does not show all the files but only those ones whose name does not begin with a dot .
Files beginning with a dot .
are known as hidden files and usually contain important program configuration information.
They are hidden because you should not change them unless you are very familiar with UNIX!!!
ls
is an example of a command which can take options: -a
is an example of an option.
The options change the behaviour of the command.
There are online manual pages that tell you which options a particular command can take, and how each option modifies the behaviour of the command
In the old times, people looked it in the “Manual”
Later people realized that you can have the manual in digital form, inside the computer
To see the manual page of ls
, use the command man ls
This class is a derived work from http://www.ee.surrey.ac.uk/Teaching/Unix/
M.Stonebank@surrey.ac.uk, © 9th October 2000
Licensed under a Creative Commons License
Images from: archive.computerhistory.org
, staff.salisbury.edu/~rafantini