IT244 - Introduction to Linux / Unix Instructor: Bo Sheng

Slides:



Advertisements
Similar presentations
Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
Advertisements

By: Tony Andrews.  Linux directory ordering system  Navigating and creating directories ◦ Listing directories and files ◦ Creating directories ◦ Changing.
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Unix. Outline Commands Environment Variables Basic Commands CommandMeaning lslist files and directories ls -alist all files and directories mkdirmake.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
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.
Unix Basics. Systems Programming: Unix Basics 2 Unix Basics  Unix directories  Important Unix file commands  File and Directory Access Rights through.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
UNIX Command-line Introduction Terence Parr. Navigating  cd  pwd  ls  pushd/pod  cd  pwd  ls  pushd/pod.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Systems Programming Concepts
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Introduction to Linux Operating System Tutorial 1
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Introduction to Computer Organization & Systems Topics: Intro to UNIX COMP John Barr.
Agenda Chapter 1: Linux (Unix) Features Commands (Chapters 2 & 3) Command Structure / Command line editing man, passwd, cal, date, whereis, which Working.
Chapter 2: Getting Started Logon to Logout. In this chapter … Logging on The Shell Superuser Getting Help Logging off.
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.
Additional UNIX Commands. 222 Lecture Overview  Multiple commands and job control  More useful UNIX utilities.
Natawut NupairojAssembly Language1 Unix Survival Guide.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
Agenda Getting Started: Using Unix Unix Structure / Features Elements of the Unix Philosophy Unix Command Structure Command Line Editing Online Unix Command.
Using Commands Unix / Linux Preparation Course May 6, 2012 Serrekunda, The Gambia.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 4: More Command Line Interface (CLI) Chapter 6: The Linux File System By Fred R. McClurg.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
1 Day 18 Bash and the.files. 2 The.files ls shows you the files in your directory –Or at least most of them. –Some files are hidden. Try: ls –a –This.
Using the “CLI” Unix / Linux Preparation Course June 9, 2013 Lusaka, Zambia.
Module 1 - Introduction to Linux. Users must log-in Linux is case sensitive File and Directories naming conventions (No spaces!) Files and Directories.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
BIF713 Introduction to Linux. Agenda Getting Started: Using Linux Unix and Linux - Structure / Features Elements of the Linux Philosophy Linux Command.
Unix Lab Fall Shell Scripting ●Through the shell (LXTerminal) you can: ●Run programs. ●Interact with the file system. ●Change settings. ●Send/receive.
Learning Unix/Linux Based on slides from: Eric Bishop.
Using UNIX Charles Duan FAS Computer Services June 12, 2016.
Bash Scripting CIRC Summer School 2016 Baowei Liu CIRC Summer School 2016 Baowei Liu.
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
CIRC Winter Boot Camp 2017 Baowei Liu
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Unix Shells.
Some Linux Commands.
The Command Prompt Commands are the way to “do things” in Unix
Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Linux.
CSE 374 Programming Concepts & Tools
Basic UNIX OLC Training.
Introduction to UNIX.
Introduction to UNIX UNIX developed at Bell Labs in 70s
CSE 390a Lecture 1 introduction to Linux/Unix environment
Web Programming Essentials:
Shells, Help, and Paths.
Introduction to Computer Organization & Systems
Introduction Paul Flynn
CSE 390a Lecture 1 introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
CSE 303 Concepts and Tools for Software Development
Module 5 Getting Help.
introduction to Linux/Unix environment
UNIX and Shell Programming (06CS36)
introduction to Linux/Unix environment
introduction to Linux/Unix environment
UNIX and Shell Programming (06CS36)
Presentation transcript:

IT244 - Introduction to Linux / Unix Instructor: Bo Sheng Get Started IT244 - Introduction to Linux / Unix Instructor: Bo Sheng

Outline Working with the shell Basic file operations Editing command lines System info/settings Help and documents Everything is case sensitive

Basic File Operations List files ( ls ) ls pwd (print working directory) ls / ls /home (see your username?) ls /home/shengbo/it244

Basic File Operations Change directory ( cd ) cd / ls pwd cd /home/your username/it244

Basic File Operations Read files ( cat ) cat /home/shengbo/it244/welcome cat /var/run/motd.dynamic Some files are not readable (e.g., binary) cat /bin/cat

Basic File Operations Write/create files ( echo ) ls echo “hello world” > hello cat hello echo “I am your name” >> hello cat hello hello

Basic File Operations Execute files /home/shengbo/it244/exetest Abort execution CTRL+C CTRL+Z and kill CTRL+Z jobs kill %1

Editing Command Lines Delete a char Delete a word ( CTRL+W ) “backspace” and “delete” Delete a word ( CTRL+W ) Delete a line ( CTRL+U ) Arrow keys Up / down: browse the command history Left / right: move the cursor

System info/settings Which shell we are using? What OS is running? ps What OS is running? uname Something you can’t do (su/sudo) Try to create a file under /

Practice ls pwd ls / ls /home cd / cd /home/your username/it244

Practice echo “hello world” > hello ls cat hello echo “I am your name” >> hello cat hello hello /home/shengbo/it244/exetest Press ctrl+c CTRL+Z jobs kill %1

Help and Documents --help option System manuals ( man ) man ls man cat man ssh man man

Help and Documents --help option System manuals ( man ) man ls man cat man ssh man man Reading long manuals Press ENTER, SPACE, and Q

Help and Documents GNU info / pinfo (menu display) Search Keyword info ls info cat info info Control+h Search Keyword man –k apropos whatis

Summary File operations System info Help and documents ls, pwd, cd, cat, echo CTRL+C, CTRL+Z, kill, jobs System info ps, uname Help and documents man, info, apropos, whatis

Questions Use man and info to read the manual of ls and find out how to distinguish files from directories. uname can display a lot more system information. Find a way to display the OS “kernel name” and “kernel release”.