The course CSE2391/CSE3391 Unix Tools is on advanced uses of Unix, but it does contain some pointers to introductory material: [web]. |
Everyone has a lab' in week 2. The purpose is to become familiar with the lab' equipment and the Linux / Unix operating system.
From Lab #2, weeks 3 and 4, onwards, groups A and B alternate.
3 -4 -2 2 2 -3 4 -5 2 1
,
then the interval is <4,7> and its sum is 5.
There are no marks for this exercise, but attendance is compulsory, and you will almost certainly be in difficulties in following weeks if you do not complete this lab'. The demonstrators will give you feedback on what they will be looking for in future, marked exercises.
man blah
:print the manual entry on command `blah',
very usefulls
:list the
contents of the current working directory
ls -l
:list in long format.ls -la
:list, in long format, all files,
including `.foo' etc..ls dirName
:list contents of directory `dirName'.mkdir dirName
:make a sub-directory
called `dirName'.rmdir dirName
:remove a directory
called `dirName' (if empty).cd dirName
:change to directory `dirName'
cd
:to your home directory, or cd ~
cd ..
:to the directory up one level.cat fileName
:print contents of file `fileName'.vi fileName
:edit a file called `fileName' using `vi'. NB. You have to make your
own backup copy first if you want one.cp f1 f2
:copy file `f1' to `f2', creating f2 if necessary.mv oldName newName
:move
or rename a file called `oldName' to a destination `newName'.rm fileName
:remove
file called `fileName', dangerous.gcc
:the gnu C compiler.
Compiled programs have the suffix `.out
' by default.make
:organise the compilation of multi-file programs.logout
:bye bye.awk
:pattern scanning and processing.grep
:search for regular expression in file(s).sed
:stream editor, useful in shell scripts.L.Allison, Comp. Sci. and S.W.E., Monash University, Australia.