cse15l-lab-reports

Lab Report 1

This tutorial contains instructions on how to download VScode, access a remote server, and test some commands on the remote server.

Step 1: VS Code Download

To begin, visit the download link to download and install the current release. Click the correct installer for your OS and follow the installer’s instructions.

Visual Studio Code

Opening a new window should look similar to this.

vscodescreen

Step 1.5: Downloading Git

Windows users will need to download Git in order to use the Git Bash terminal.

Git

Run the installer with default settings, then go back to VS Code and open the command palette using Ctrl + Shift + P. Search for “select default profile”, select Git Bash, and then open a new terminal using Ctrl + `. The new terminal should be a bash terminal that looks similar to the following.

bashscreen

Step 2: Accessing a Remote Server from the Terminal

With the bash terminal open, type the following into your terminal, omitting the $. Replace xyz with the unique characters pertaining to your user account.

$ ssh cs15lwi23xyz@ieng6.ucsd.edu

As this is your first time accessing the remote server, it will ask if you wish to continue connecting. Type yes and it will return a prompt for your password. Type in your account’s password and hit enter/return.

When you are successfully logged into the remote server, the terminal should look like this.

remotelogin

Step 3: Using Terminal Commands

Now you can test out some basic Unix commands on the remote computer.

commands

In the example above, we used mkdir to make a new directory called hello. Then, we moved into that directory using cd. Using ls while in hello yielded nothing as the directory was just created.

Later, after using cd .. to get back to the original directory, adding -lat as a modifier to ls let us see hidden files and their timestamps. Lastly, we used rm to remove the text file we copied earlier.

When you are done testing out commands and combinations, use exit to disconnect from the server.