Activity 14.11.
In the server window below, enter your Dartmouth password when prompted. You’ll find yourself back on the ENGS20 server. This is thus no longer a practice coding window but rather the real deal. So do not randomly delete files; you are now in your own space on the server with your own responsibilities.
Navigate to your workspace directory (
cd engs20/workspace
), then type ls
. You should see your "hello.c" program there.Type
compile hello.c
, which will translate your code into machine language. The compiler names the resulting executable program "hello". In order to run this code, type hello
(the name of the executable file resulting from compiling "hello.c").Open your editor (NotePad++ on a PC or BBEdit on a Mac) and establish a connection to the ENGS20 server. Next, open "hello.c" in your editor. Make a change to your code, such as printing out your pet’s name, and save the changes on the server.
Verify in the code window below that your code has indeed changed (hint: use the
less
command). Now, recompile and run your code to observe your printed changes.If the server window does not load, please click here.