Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Welcome! If you're reading this, you're interested in learning about using Linux, perhaps the most famous open-source operating system. While we won't be delving into how Linux operates, we will be looking at how we can interact with it using the command line.

Info

Many of these commands may additionally work on your local system, especially if you are using a Mac product. However, we will assume that you are working on the server, a Linux environment where these commands are known to work

Setup Script

The first thing you'll want to do when logging into the server is to source the C2S2 setup script. This can be done with the command below (this formatting will always indicate a command to run):

...

We'll delve a lot into these details later, but right off the bat, you can see the date when each item was created. Additionally, if you look at the long string of characters to the left, notice that some of them start with "d" - this indicates the directories within your current working directory! (Just a dash "-" means that it's a regular file)

The other main flag that we'll pass is the a flag. Normally, items with names that begin with a dot (".") are hidden from us, as they usually contain some configurations and stuff that isn't used to often. However, we may wish to see these on occasion, which the a flag (for "all") allows us to do:

...

You should be able to see your new directory named c2s2. To move into a directory, we use the cd command (for change directory), with an argument of the directory that we want to move into:

...

Info

You can visualize the folder hierarchy from where you are by using the tree command to print a tree representation of the folder structure - be careful using this in large directories however, as it will display all of the subdirectories, the subsubdirectories, and so on!

...