Monday, 23 March 2015

Operating Systems 1 Lab 5 – Shell Script Creation

Operating Systems 1 Lab 5 – Shell Script Creation






I started by creating two text files and then made a backup for these files. I showed the directory to make sure that the files had been created. Using the vi editor I created the given shell script. The given shell script made a backup, called BackUpFolder and copied all filed ending with .txt to that folder. Using the chmod 700 command I changed the files to be executable. Finally I  displayed all the files in the folder.

Saturday, 21 February 2015

Operating Systems 1 Lab 4 – DOS Batch File Creation

DOS Batch File Creation






In this lab I began by creating two text files in notepad. I added the same text into both and saved them. I then created a third file, added some specific text to it and saved it as a .bat file, which is a backup file. Next I navigated through MS DOS to where I saved the files and then I entered in the name of the third file, MakeABackup. MS DOS executed the piece of text in this file which then created a copy of the previous two text files and saved these copies as a backup.

Operating Systems 1 Lab 3 – Linux Commands

Linux Commands


Command = "ls -la"
The list command shows all of the major directories filed under a given file system.

Command = "pwd"
The print working directory command shows the current folder as an absolute path

Command = "man man"
This command displays a help page/manual for the different commands.

Command = "ls"
The list command shows all of the major directories filed under a given file system.

Command = "cd ."
This is the change directory command which enables you to switch between different directories.
Command = "cd .."
This change directory command moves up one folder in the directory.

Sunday, 8 February 2015

Operating Systems 1 Lab 2 – DOS Commands

DOS Screen grabs


 The "cd .." command is used to change directory. It navigates back to the last directory that it was on
 The "cls" command is used to clear the screen. it removes all the writing on the screen that may be in the way and lets you continue where you left off.
The "dir" command shows the full directory of the location you are in. It shows all files and folders so you can see what you want to pick next.
the "echo hello world" command displays the world that is written after the word echo. it echoes what is written down.
 The "help" command provides instructions to all the commands that you can enter into the command prompt and what each one will do.
The "path" command shows the current path information but is also used to specify the location where DOS looks when using a command 
The "tree" command displays a tree listing of the current directory, showing all files and folders.

Friday, 30 January 2015

Operating Systems 1 Lab 1

Operating Systems Lab 1
Names of Classmates:

  • Behzad Sanehi
  • Daniel Tiley
  • Conor Murphy
1. two 110lb tanks of oxygen
Essential item needed to survive in space

2. 5 gallons of water
Water is needed to survive and for other tasks

3.  food concentrate
Needed to prevent starvation

4. portable heating unit
If it was cold people could get sick and be miserable

5. first aid kit containing injection needles
Necessary when taking care of wounds and prevent spread of infections

6. a magnetic compass
If power was lost and things went bad, it provides a reliable sense of direction

7.  stellar map of the moon's constellations
Can be used as a last resort emergency for navigation

8. parachute silk
Can be used as a blanket to keep warm

9. one case of dehydrated pet milk
If it goes into your pet, it can go into you!

10. two .45 calibre pistols
With ammo provide protection against other species

11. life raft
Can float around in it in space and keep items and people together

12. 50' of nylon rope
Could be used to guide people or keep them connected if in darkness

13.solar-powered FM receiver-transmitter
Solar panel could be extracted or transmitted used to receive messages

14. signal flares
If they even worked in space could help you be found if lost in darkness

15. box of matches
Irrelevant but flicking matches on fire is always fun!