Tags

    4.1

    In this screen, I created a script using nano (contents of script shown below). I moved it to the desktop via the gui, then I used chmod 700 (read,write and execute for me only) so that I could execute the file. Then I used ./ to execute the file, which only had the command echo hello.


    The contents of my script. The shebang lets the computer know that the file is a script. The bin and sh say what type of script it is. Bash is usually better, but I used sh.
    Opening chess via absolute and relative references

    Relative

    Absolute
    I used ps -ax to show processes, then used a pipe and the grep command to filter only the processes that contained the word Chess. NOTE: IT IS VERY IMPORTANT TO CAPITALIZE THE C IN CHESS. OTHERWISE THIS DOESNT WORK. Next I used kill -9 to kill the chess process (373)
    I curled physics.hpa.edu from the web using curl physics.hpa.edu > physics.html. Here is what it looked like after I loaded the local file in safari:

    Next I converted it to a word document using textutil -convert doc physics.html.


    Here is the converted file.
    Download file "physics.doc"

    Next I converted the file back to html using textutil -convert html physics.doc. Here is the reconverted file
    Download file "physics.html"

    I performed a software update on my machine. The flags (-i -a) of this command told the computer to download and install anything that was found:
    I used a default command that told my mail program I prefer incoming messages in plain text instead of whatever format mail uses by default (ignore the first commands in this shell, that was the software update):

    I curled ipchicken.com, which tells you the public ip of a computer. Then I opened the local file using the gui, and it told me my public IP:

    There is a program on this computer that shows wifi networks. I used terminal to execute it and it echoed all the wifi networks that my computer could access:

    Thats it folks! Hope you enjoyed this review bill
    -abe

    Comments