The Linux Environment
Programming with C
CSCI 112, Spring 2015
Patrick Donnelly
Montana State University
The Linux Environment Programming with C CSCI 112, Spring 2015 - - PowerPoint PPT Presentation
The Linux Environment Programming with C CSCI 112, Spring 2015 Patrick Donnelly Montana State University Linux Flavors There are many different distributions of the Linux operating systems. Some of the most popular are as follows: Ubuntu
CSCI 112, Spring 2015
Montana State University
There are many different distributions of the Linux operating
The distro used in the lab here on campus is Fedora.
Programming with C (CSCI 112) Spring 2015 2 / 10
1964 1969 1970 1971 1972 1975 1979 MIT, GE, and Bell Labs develop Multics (“Multiplexed Information and Computing Service”), an influential early time-sharing operating system. Thompson, Ritchie, Canaday developed a hiercrachical file system at Bell Labs. Peter Neumann coined the project name UNICS (UNiplexed Information and Computing Service), a pun on Multics. The UNIX Programmer’s Manual was published on 3 November 1971. Unix was rewritten in the (new) C programming language. Sixth edition; Bourne shell is introduced. Seventh edition of Unix released.
Programming with C (CSCI 112) Spring 2015 3 / 10
Ken Thompson (sitting) and Dennis Ritchie working together at a PDP-11.
Programming with C (CSCI 112) Spring 2015 4 / 10
1983 1987 1990 1991 1994 1996 2003 2004 AT&T licenses System V - first commercial version of UNIX. Justice Department mandates breakup of the Bell System. GNU project is announced by Richard Stallman. Sun and AT&T cooperated to develop Unix System V R4. Open Software Foundation released OSF/1. Sun unveils Solaris 2 operating environment. Linux is introduced by Linus Torvalds, a student in Finland. Red Hat Linux is introduced. KDE development began by Matthias Ettrich. Fedora, Debian released. First release of Ubuntu
Programming with C (CSCI 112) Spring 2015 5 / 10
What we wanted to preserve was not just a good environment in which to do programming, but a system around which a fellowship could form. We knew from experience that the essence of communal computing, as supplied by remote-access, time-shared machines, is not just to type programs into a terminal instead of a keypunch, but to encourage close communication. Dennis Ritchie, 1979
Programming with C (CSCI 112) Spring 2015 6 / 10
Each Linux distribution has it’s own unique software and changes to the visual style. In the end however, they all share a virtually identical shell that runs “under the hood”.
In this course, we will do most of our work using the shell.
Programming with C (CSCI 112) Spring 2015 7 / 10
directory you have open is called the “working directory”
by default, you must explicitly request that they be listed
command, followed by the target directory
directory, “..” is the name of the parent directory, and “-” is the name of the previously visited directory
Programming with C (CSCI 112) Spring 2015 8 / 10
the name of the directory you wish to create.
followed by the name of the file you wish to view.
Programming with C (CSCI 112) Spring 2015 9 / 10
The following is a list of text editors in order of learning difficulty. Nano
first-time Linux users. Emacs
features for programming. Vim
difficult to learn.
Programming with C (CSCI 112) Spring 2015 10 / 10