Weekly Notes - Linux - 2 - Aaron Brick PDF

Title Weekly Notes - Linux - 2 - Aaron Brick
Course Intro To Programming: C++
Institution City College of San Francisco
Pages 1
File Size 44.4 KB
File Type PDF
Total Downloads 13
Total Views 142

Summary

Aaron Brick...


Description

CS110A

2

Weekly notes

2017

Linux

Key terms: Linux ˜abrick/send Reading: Kevin Heard’s UNIX Tutorial 1 through 54 Exercise: Log into hills and send in the file /proc/dma. Programming for this course takes place on the Linux server hills.ccsf.edu. Linux is an open source operating system developed starting in 1991 by the Finnish computer scientist Linus Torvalds. It follows traditions and contains tools established in the many versions of UNIX created since Dennis Ritchie and Ken Thompson’s primitive version of 1970. Many elements were developed starting in 1985 by Richard Stallman’s Free Software Foundation. Log into hills from any online device with an ssh (Secure Shell) client – frequently by that name. Macs and UNIX machines in general already have it installed; until Windows offers one by default, a convenient 3rd party alternative is called PuTTY.5 An example of logging into a server follows. Your password will not be shown as you are typing it. The dollar sign, $, is your bash shell command prompt in interactive sessions. [TurtleKing66@home ˜]$ ssh [email protected] The authenticity of host ’hills.ccsf.edu (147.144.1.2)’ can’t be established. RSA key fingerprint is 25:59:17:34:e5:4a:2d:d5:cd:a5:76:63:2f:6f:0c:24. Are you sure you want to continue connecting (yes/no)? yes yourname@hills’s password: [yourname@hills ˜]$

Once you log in, your command shell will start in your home directory, and you have access to all the classic UNIX tools. One easy editor you can use is nano (also known as pico in its copyrightencumbered form). Among the editors favored by professional programmers are emacs, a maximalist option, and vim, a minimalist one. To make a new directory for your coursework and enter it: [yourname@hills ˜]$ mkdir coursework [yourname@hills ˜]$ cd coursework [yourname@hills coursework]$

Linux file systems accommodate various kinds of files. Some of those files are programs, composed in various programming languages. Those written in C++ are produced by an automated compilation process from source code. Learning to work in that source code will be your goal for this semester. Next, we will address the nature of programs in C++. Next, we will discuss the computing logic and grammar which make up a program. 4 http://people.ischool.berkeley.edu/˜kevin/unix-tutorial/toc.html 5 https://www.chiark.greenend.org.uk/˜sgtatham/putty/

Brick...


Similar Free PDFs