Introduction to linux exercise


Introduction to Linux Exercise:

1) Write a bash shell script which searches through your folders for files with the extension *.tex, and then interactively deletes the corresponding *.aux, *.dvi and *.log files (i.e. asks the user whether or not to delete the fi les). You will need to use the fi nd command, and fi rst write and compile some LATEX fi les. If you are not doing the LATEX module, download the example file from the resources directory for this module and see the instructions in that directory.

2) Write a bash shell function which removes duplicate copies of directories from your PATH environment variable. You will need to use the the awk command, and write some for and if constructs. Execute this function in your :profi le file.

3) Write a makefi le which compiles the program cavity. The Fortran files required to do this are contained in the archive parallel.tgz, which is on the MUSO website. To unpack this file use:

$ tar xvfz parallel.tgz

then read the le README. Your make le should also include targets which commit and checkout the text fi les from your svn repository, archive the text les into a :tgz file, and cleans the directory (remove all the executable, :o and :mod les).

4) Write a bash script which runs an executable file in the background, directs the output and error to log fi les, keeps it running when you logout and mails you when the job is finished. This is useful for long jobs. You will need to use the mail, nohup and nice commands. The input for the script should be the name of the executable file.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Introduction to linux exercise
Reference No:- TGS02024

Expected delivery within 24 Hours