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.




No comments:
Post a Comment