Thursday, 7 April 2016

Operating Systems 1 Lab 5 - Shell Script Creation





Shell Script Creation



First I logged into Linnux, then I used the command echo and created the files ReallyImportantFile1 and ReallyImportantFile2. I then used the command ls so that I could see the files I had just created listed out on the screen.






Next I created a folder called BackUpFolder using the command mkdir. I then copied the contents of any files with the ending .txt into this file using the command cp *.txt, I then listed out the contents of this new folder I created.





I then used the command cat so that I could list out the file so I would be able to see the commands I had used.




I then needed to change the file to make it executable. I used the chmod command to achieve this. I then tried to use the command MakeABackup.sh but this didn't seem to do anything so I had to try a different command. I was succesful with ./MakeUpBackup.sh and I was able to get through.

Friday, 19 February 2016

Operating Systems 1 Lab 4 – DOS Batch File Creation

Operating Systems 1 Lab 4 – DOS Batch File Creation


Really Important Program 1



I entered the text "This is a really important program" and saved it as "reallyimportantprogram1.txt". It was requested that this document and the following document "reallyimportantprogram2.txt" was created in order to be added to the Backup Folder later on.

                    Really Important Program 2



 I entered the text "This is a really important program" and saved it as "reallyimportantprogram2.txt". It was requested that this document and the following document "reallyimportantprogram1.txt" was created in order to be added to the Backup Folder later on.

                          Make A Backup File



I created the following document. Upon creating this document I observed that a new folder appeared in the same location I had saved my really important program text files, named "Backup Folder". 

Command Window



The command window output showed that the MakeABackup.bat when searched in the command window contained the contents of the 2 really important program text files within the newly created "Backup Folder".

Wednesday, 10 February 2016

Operating Systems 1 Lab 3 - Linux Commands

ls


When I entered this command it just gave me the option to re-enter a new command.


ls -la


When I entered this command it gave me a history of each of the commands I had previously entered.


pwd


When I entered this command it gave me the command I had just used.


cd .


When I entered this command it gave me the option to enter a new command.


cd ..


When I entered this command it seemed to do the same as the cd . command.


man man


When I entered this command it displayed a manual list for different commands.









Tuesday, 9 February 2016

Operating Systems 1 Lab 2 - DOS Commands

Cls


This command when entered cleared the screen in order for me to be able to type a new command in afterwards.

Cd ..


This command when entered, it seemed to clear the user of the program.

Path


This command when entered showed me a list of each of the programs that were used.


Echo


This command when entered it seemed to just print out the message hello world.

Tree


This command when entered showed a list of all the programs from the path.

Dir


This command when entered showed me the files stored on the computer.

Help


This command when entered displayed all the options of commands that could be entered and explained what each task each different one performed.

Sunday, 31 January 2016

Operating Systems 1 Lab #1

RANKING
ITEM
REASON
#1Two 110b tanks of oxygenWithout oxygen, you wouldn’t be alive in the first place, so any kind of travel would be out of the question!
#25 gallons of waterA 200mile trip would definitely require a well hydrated team to survive.
#3 Stellar map of the moons constellations200miles in an unknown land would require a map, or else you’d have no idea where to go.
#4A magnetic compassTo compliment the map, we need a compass to steer us in the right direction and pinpoint our location.
#5Portable heating unitWe’ve potentially landed on the dark side of the moon, if we’ve missed the light side, this has potential to be incredibly chilly. To avoid hypothermia the team need a heat source.
#6Food concentrateOnce we know where we’re going, we need sustenance to get us through the lengthy trip.
#7Solar-power FM receiver-transmitterIn order to keep in touch with the crew and mothership, it’s important to have the transmitter.
#850’ nylon ropeThe rope can be used to keep the crew together and pull along the life raft holding the rest of the items
#9Life raftWe decided the life raft and parachute silk could be used to carry and tie down the smaller items for the trip to stop them floating away.
#10Parachute silkThe parachute silk, as above, could be used to tie down the arbitrary items and stop them floating away.
#11One case of dehydrated pet milkThis is further down the list as it sounds delightfully unappealing, if we’re in need of calcium we will access the dehydrated pet milk.
#12Signal flaresThere was uncertainty as to whether this was the special type of flare that can be used on the moon, so it’s in this place and will be used in the event of a missing crew member.
#13First-aid kid containing injection needlesIt was uncertain as to whether a crew mate could be accessed in the event of an injury or emergency, given that a puncture to the suit (with for example a needle) would probably kill them almost instantaneously.
#14Two .45 calibre pistolsWe were totally dumbfounded as to what the pistols could be used for… if there were potential moon martians to fight off? Given this uncertainty, it’s rather low in priorities.
#15Box of matchesGiven that the crew receive oxygen via the tanks, without oxygen in the atmosphere, I can’t see how the flame would even light - therefore these are small, useless fragments of wood. 
  

The classmates that I discussed this with are Catherine Kane, Ciara Sastre and Shona Doran