Introduction of Linux

Similar documents
Introduction of Linux. Huang Cheng-Chao Dept. of Comput. Sci. & Tech. East China Normal University

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

Introduction to Linux

Introduction to Linux

Introduction to Linux

EECS Software Tools. Lab 2 Tutorial: Introduction to UNIX/Linux. Tilemachos Pechlivanoglou

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

A Brief Introduction to Unix

CENG 334 Computer Networks. Laboratory I Linux Tutorial

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Perl and R Scripting for Biologists

Introduction: What is Unix?

Session 1: Accessing MUGrid and Command Line Basics

GNU/Linux Course Lesson 1. Puria Nafisi

Unix Filesystem. January 26 th, 2004 Class Meeting 2

Operating Systems. Copyleft 2005, Binnur Kurt

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

Unix File System. Class Meeting 2. * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech

5/8/2012. Creating and Changing Directories Chapter 7

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

Linux Training. for New Users of Cluster. Georgia Advanced Computing Resource Center University of Georgia Suchitra Pakala

Introduction to Linux

Linux Command Line Primer. By: Scott Marshall

*nix Crash Course. Presented by: Virginia Tech Linux / Unix Users Group VTLUUG

CISC 220 fall 2011, set 1: Linux basics

Introduction to Unix: Fundamental Commands

History. Terminology. Opening a Terminal. Introduction to the Unix command line GNOME

Introduction to the UNIX command line

Virtual Machine. Linux flavor : Debian. Everything (except slides) preinstalled for you.

CS 3410 Intro to Unix, shell commands, etc... (slides from Hussam Abu-Libdeh and David Slater)

Introduction to Supercomputing

Hands-on Keyboard: Cyber Experiments for Strategists and Policy Makers

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

EECS 2031E. Software Tools Prof. Mokhtar Aboelaze

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage

CHAPTER - 1

Linux Essentials Objectives Topics:

Lab Working with Linux Command Line

Week 2 Lecture 3. Unix

Files

Mills HPC Tutorial Series. Linux Basics I

Unix Workshop Aug 2014

Introduction to the Linux Command Line

Introduction to Linux Basics

Introduction to Linux. Roman Cheplyaka

UNIX. The Very 10 Short Howto for beginners. Soon-Hyung Yook. March 27, Soon-Hyung Yook UNIX March 27, / 29

Chapter-3. Introduction to Unix: Fundamental Commands

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Computer Architecture Lab 1 (Starting with Linux)

CS Fundamentals of Programming II Fall Very Basic UNIX

Unix System Architecture, File System, and Shell Commands

Linux at the Command Line Don Johnson of BU IS&T

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

EE516: Embedded Software Project 1. Setting Up Environment for Projects

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

The Unix Family. Linux 101. GNU/Linux distributions. Even more. MULTICS MIT/GE/Bell Labs. UNIX AT&T (Bell Labs) Mach, Carnegie Mellon

The Shell. EOAS Software Carpentry Workshop. September 20th, 2016

Unix as a Platform Exercises. Course Code: OS-01-UNXPLAT

Introduction To Linux. Rob Thomas - ACRC

Scripting Languages Course 1. Diana Trandabăț

Working with Basic Linux. Daniel Balagué

Introduction Into Linux Lecture 1 Johannes Werner WS 2017

Essential Linux Shell Commands

Files and Directories

Linux Systems Administration Getting Started with Linux

Introduction to UNIX command-line

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo

Introduction to Linux

Computer Systems and Architecture

INTRODUCTION TO BIOINFORMATICS

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Mauro Ceccanti e Alberto Paoluzzi

CSCI 2132 Software Development. Lecture 4: Files and Directories

National University of Computer and Emerging Sciences Operating System Lab - 02 Lab Manual

CENG393 Computer Networks Labwork 1

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Esercitazione Introduzione al linguaggio di shell

Getting your department account

Operating Systems and Using Linux. Topics What is an Operating System? Linux Overview Frequently Used Linux Commands

h/w m/c Kernel shell Application s/w user

Intro to Linux & Command Line

CSE 391 Lecture 1. introduction to Linux/Unix environment

Linux Kung-Fu. James Droste UBNetDef Fall 2016

Brief Linux Presentation. July 10th, 2006 Elan Borenstein

Introduction to Linux

The Unix Shell & Shell Scripts

PDS Lab Section 16 Autumn Tutorial 1. Unix Commands pwd The pwd command displays the full pathname of the current directory.

INTRODUCTION TO LINUX

Commands are in black

Std: XI CHAPTER-3 LINUX

Chap2: Operating-System Structures

CS246 Spring14 Programming Paradigm Notes on Linux

Lec 1 add-on: Linux Intro

Linux Shell Script. J. K. Mandal

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

Transcription:

Introduction of Linux 阳 oslab2018_class1@163.com 寅 oslab2018_class2@163.com

PART I Brief Introduction Basic Conceptions & Environment Install & Configure a Virtual Machine Basic Commands PART II Shell Script Compile & Debug (for C) Text Editor (Vim, Sublime text, Atom)

PART I Brief Introduction Basic Conceptions & Environment Install & Configure a Virtual Machine Basic Commands

History 1969 - UNIX 1984 - GNU 1987 - MINIX 1995 - POSIX Internet

Distribution Ubuntu Debian CentOS Arch Linux Fedora...

Features Protable Open source Security Shell...

PART I Brief Introduction Basic Conceptions & Environment Install & Configure a Virtual Machine Basic Commands

Linux Kernel The most important component of Linux OS, containing all the operating system s core functions and the device drivers. memory management process scheduling file system...

Shell (CLI shell) Command Line Interface A program which accepts commands as text input and converts commands to appropriate operating system functions. Terminal Shell The terminal send information to the shell, receive and display the information from the shell.

Open Terminal keyboard accelerators: CTRL+ALT+T

File System Tree structure, with the root directory / /home/godweiyang/... ~ = /home/godweiyang...

File System /bin : essential tools and other programs /dev : files representing the system s hardware devices /etc : system configuration files /home : the home directory for all system s users /lib : essential system library files /proc : files that give information about current system /usr : files related to user tools and applications

User & Group The system determines whether or not a user or group can access a file or directory. There is a special user called Super User or the root which has permission to access any file and directory. Three Permissions: r = read w = write x = execute

Environment Variables Environment variables are a set of values that can affect the way running processes will behave on a computer. PATH -- Contains a colon-separated list of directories that the shell searches for commands that do not contain a slash in their name. HOME -- Contains the location of the user's home directory.... Set The Environment Variables: export VARIABLE = value /etc/profile ~/.profile ~/.bashrc # temporary # permanent, all users # permanent, one user

PART I Brief Introduction Basic Conceptions & Environment Install & Configure a Virtual Machine Basic Commands

Virtual Machine A virtual machine is an emulation of a particular computer system. Virtualization Software provide (hardware) resources virtually to the new OS. VMware Virtual Box Virtual PC

Install the Virtual Machine VMware Workstation 9.0 + Ubuntu 14.04 LTS ( kernel 3.19 ) 1. Download the Setup File of Vmware 9.0 2. Download the Ubuntu Ubuntu 14.04 LTS from the official website www.ubuntu.com/download/desktop 3. Install VMware 9.0 4. Create a Virtual Machine in the VMware

Create a Virtual Machine

Create a Virtual Machine

Create a Virtual Machine In the computers in our computer room, our.iso-file lies on path E:/ of the system.

Create a Virtual Machine

Create a Virtual Machine

Create a Virtual Machine

Create a Virtual Machine

Create a Virtual Machine

Create a Virtual Machine (Mac) Mac Virtual Machine -- Parallels desktop magnet:? xt=urn:btih:5ee7e1dc3e01f362b0e53bfee9e4d6dcdedad61b

Create a Virtual Machine (Mac)

Create a Virtual Machine (Mac)

Create a Virtual Machine (Mac)

Create a Virtual Machine (Mac)

Create a Virtual Machine (Mac)

Create a Virtual Machine (Mac)

Create a Virtual Machine (Mac)

PART I Brief Introduction Basic Conceptions & Environment Install & Configure a Virtual Machine Basic Commands

Basic Commands command [-options] [arguments] cd pwd ls su chmod cat touch rename mv cp mkdir rmdir rm find grep > >> xargs awk man help --help

cd (change directory) cd cd ~ cd - cd.. pwd (print working directory) pwd

ls (list segment) -l long - Displaying long format -a all - Lists all files in the given directory -R recursive - Recursively lists subdirectories. -d directory - Shows information about a directory ls ls -l ls -a ls -R ls -d ls -la ls -ld...

su (switch user) su weiyang chmod (change mode) chmod 660 class1.txt chmod u-r class1.txt cat (concatenate) cat class1.txt cat godweiyang.txt

touch touch class1.txt rename rename 's/oslab/oslab0/' o*b?.txt mv (move) mv oslab.txt oslab1.txt mv oslab01.txt oslab02.txt /home/oslab cp (copy) cp oslab03.txt /home/oslab

mkdir (make directory) mkdir Lesson1/rename rmdir (remove empty directory) rmdir empty_directory rm (remove) -r recursive -i interactive -f force rm -rf ~/Lesson1/* rm -i oslab04.txt

find find ~ -name "*.txt" grep globally search a regular expression and print grep match_pattern file_name grep apple oslab05.txt grep -i apple oslab05.txt

> & >> (redirection) cat oslab06.txt oslab07.txt > oslab08.txt cat oslab06.txt oslab07.txt >> oslab08.txt (pipeline) command1 command2 cat oslab09.txt grep jt xargs cat oslab09.txt ls -l cat oslab09.txt xargs ls -l

awk (Aho, Weinberg & Kernighan) AWK is a programming language designed for text processing and typically used as a data extraction and reporting tool. pattern { action } BEGIN regular expression END { function calls, variable assignments, calculations } awk 'BEGIN { print "Hello, world!" }'

man (manual) man ls help help cd --help ls --help Wikipedia https://en.wikipedia.org/wiki/awk