Introduction to Linux ( I ) Sidney Fong 4 th Feb 2006.

Slides:



Advertisements
Similar presentations
ITR3 lecture 7: more introduction to UNIX Thomas Krichel
Advertisements

Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Chapter One The Essence of UNIX.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Introduction to Linux Alan Orth April 17, 2010 ILRI, Nairobi.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
CMPE 151: Network Administration Spring Class Description Focus: system and network administration. Sequence of exercises. E.g., installing/configuring.
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
Cambodia-India Entrepreneurship Development Centre - : :.... :-:-
“Linux at the Command Line” Don Johnson of BU IS&T.
Linux Introduction. Overview What is Unix/Linux? History of Linux Features Supported Under Linux The future of Linux.
Linux Basics. What is an Operating System (OS)? An Operating System (OS) is an interface between hardware and user which is responsible for the management.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
Linux Basics CS 302. Outline  What is Unix?  What is Linux?  Virtual Machine.
Using the “CLI” Unix / Linux Preparation Course May 25 Djibouti.
Linux Operations and Administration
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Introduction to *nix Systems HKOI Training Team Sidney Fong.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Unix Basics Chapter 4.
CENT 305 Information Systems Security Linux Introduction.
Dedan Githae, BecA-ILRI Hub Introduction to Linux / UNIX OS MARI eBioKit Workshop; Nov , 2014.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
Operating System - Linux Ph. D. Course Work : PHYS 601 Statistics and Computer Applications Presented By: Sanjay Godara Dept. of Physics & Astrophysics.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
UNIX and Shell Programming (06CS36) Unit 1 Continued… Shrinivas R. Mangalwede Department of Computer Science and Engineering K.L.S. Gogte Institute of.
HKOI 2012 TRAINING INTRO TO LINUX /CUHK/SHB123]$ date Sat Feb 18 13:00:00 HKT 2012.
System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference:  chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Linux Introduction What is Linux? How do you use it?
Introduction to Linux ( II ) Sidney Fong 11 th Feb 2006.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
CS2204: Introduction to Unix January 19 th, 2004 Class Meeting 1 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty.
Unix/Linux for beginners:
Basic of UNIX For fresh members of SPARCS
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 2a – A Unix Command Sampler (Courtesy of David Notkin, CSE 303)
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop I Introduction to Linux Professional Training Academy.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
Gorman, Stubbs, & CEP Inc. 1 Introduction to Operating Systems Lesson 8 Linux.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
Learning Unix/Linux Based on slides from: Eric Bishop.
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
Intro to GNU/Linux See, Stallman? I said GNU. Are you happy now?
UNIX U.Y: 1435/1436 H Operating System Concept. What is an Operating System?  The operating system (OS) is the program which starts up when you turn.
UNIX  Portable (common to many computer architectures), multitasking, multi-user operating system  Introduced by Bell labs in mid-1960’s  Thus, much.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Welcome to Linux Chap#1 Hanin Abdulrahman.
Unix Shells.
Some Linux Commands.
Unix Operating System (Week Two)
CSE 374 Programming Concepts & Tools
Linux Professor Sabol.
Module 5 Getting Help.
UNIX and Shell Programming (06CS36)
Welcome to Linux Chap#1 Hanin Abdulrahman.
UNIX and Shell Programming (06CS36)
Welcome to Linux Chap#1.
Presentation transcript:

Introduction to Linux ( I ) Sidney Fong 4 th Feb 2006

Rough Outline  Prerequisites:  Knowledge of basic Computer / Operating System concepts  No previous knowledge of Linux  No previous knowledge of Windows or any other systems  Training is divided into Two Parts:  Part I - Introduction of the background of Linux  Part II – Practical Session

Introduction to Linux ( I ) Part I – Some Background of Linux

What is “Linux”?  Operating system?  … What is an operating system?

What is an “Operating System”?  Wikipedia: “the system software responsible for the direct control and management of hardware and basic system operations”.  The kernel?  The basic interface (eg. command line, graphical interface)?  The commands? The tools?  Text editors? Compilers?  Web Browser?  … Everything?

Operating System (cont’d)  In general, there is one narrow usage and a broader usage  Narrow usage: Only the parts that deal directly with the hardware, and very low level features (i.e. the kernel)  Broader usage: Also includes system software. What is “system software” depends on the nature of the system.b

Graphical Illustration User space programs Shell Kernel Hardware X Client Daemons X Server

What is Linux?  There are also two usages of the term “Linux”, corresponding roughly to the narrow/broad usage of the term “Operating System”.  The narrow definition: simply the kernel  The broader definition: includes basically everything available in the system

A Typical Linux System  Linux Kernel  User space programs (many are GNU software)  Shell (command line): bash  Utilities: ls, cp, mv, rm, cat, grep,...  Compiler: gcc  … and more …  X Window System (for desktops/workstations)  Various daemons (a.k.a. services)  Eg.: syslogd, httpd, cron, inetd

A bit of History  Richard Stallman founded the GNU project in the 1980’s  Linus Torvalds began writing a kernel in the early 1990’s  => GNU/Linux, commonly referred to as “Linux”.  (For more details, see for yourself on the web)

Open Source / Free  Open Source – Source code is available to everybody  “Free” – Source code is available to everybody, and everybody can re- distribute the source code  “Copyleft” – Source code is available to everybody, and if you want to distribute the program, you must also distribute the source code.

Linux Distributions  Once upon a time, there were softwares  The softwares were scattered in different sites, and they were distributed by source code  If people wanted to use them, they have to download them from different sites, compile them, and install them  See how many packages you have in your system! (dpkg -l)  Also, consider the difficulty of installing software onto a new computer (with no operating system pre-installed)  Conclusion: Installation of software is a very complicated process.  (Refer to the LFS “Distribution” if you want to get a feel of this)

Linux Distributions (cont’d)  In the beginning, people did those complicated and tedious work themselves.  Later, some of them released their work of collecting the software to the public. These are called “distributions”.  Typically, a modern distribution handles the following:  Installation of the OS  Software Packaging (compiled software instead of source)  Install / Upgrade / Removing packages  Sensible default configurations  You may have heard of these names:  Redhat / Fedora  Mandrake  Debian  Slackware  Gentoo

Characteristics of Linux Systems  Heavy emphasis of command line  Many command line utilities for scripting purposes  Customizable

Introduction to Linux ( I ) Part II - Practical

Before Starting…  Remember that Linux is a completely different system from Windows. You may find that everything is different from what you are used to. Do not be frustrated. You may not yet be able to do everything you can in Windows, but after some time, you will be able to grasp the basics and feel more comfortable in using Linux  Also, forget all your “cool” Windows skills, and forget how you do things in Windows… the Linux way is quite different, especially if we focus on the CLI.

Login Screen “Message of the day” Usually contains important notices Username Hostname Current directory Hint: You may press to for multiple terminals if you are using Linux on the local machine (instead of over network) Why is the username and hostname displayed in the command prompt?

Getting Help  man pages Purpose of command Different usages Detailed description of command and its options Hint: Press ‘q’ to quit

More on Man Pages  There are different sections of man pages  Section 1: commands  Section 2: system calls  Section 3: C library calls  Section 4: special files (in /dev)  Section 5: (config) file formats  Section 6: “games”  Section 7: Misc  Section 8: System administration commands  If there are conflicts in names, the section of lower value is displayed. For a specific section:  man  man  Note that you may find section 3 very useful as a reference to standard C functions (eg. printf, fopen, string functions, etc)

Useful Commands in Competitions  bc – Arbitrary precision calculator  sort – Sort lines of text files (note the “-n” option)  ps – list running processes on the machine  kill – Sends a signal to running programs (terminates it by default)  date – Print system date/time  time – reports execution time of a command  diff – compares files  head, tail – prints the first/last N lines of the input  wc – word count (also counts characters and lines)  more – pager (allows you to scroll the input for easy viewing)  less – better version of more  grep – print lines matching a pattern  find – search for files  factor – factorize numbers  tsort – perform topological sort  seq – print a sequence of numbers  file – determine file type (sometimes displays other useful information)  tar – Archive files (“glue” multiple files into one, and vice versa)