Using UNIX Charles Duan FAS Computer Services June 12, 2016.

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.
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
1 Introduction to UNIX Ke Liu
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
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.
George Blank University Lecturer. Creating A Web Site at NJIT Professor Blank.
Lesson 22 – Introduction to Linux Systems Administration.
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall linux.
UNIX Command-line Introduction Terence Parr. Navigating  cd  pwd  ls  pushd/pod  cd  pwd  ls  pushd/pod.
Virtual Machine and UNIX. What is a VM? VM stands for Virtual Machine. It is a software emulation of hardware. By using a VM, you can have the same hardware.
“Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.
Unix Workshop Aug What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters.
“Linux at the Command Line” Don Johnson of BU IS&T.
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
A crash course in njit’s Afs
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
File Systems Sources and Resources: 1. A Students Guide to UNIX, by Hahn 2. Paula Davidson’s Handout on UNIXHandout on UNIX.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
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 Workshop Freshmen Orientation UNIX workshop Before we begin…  Does everybody have a computer?  Does everybody have your account slips?
UNIX File System by Tero Toikkanen, CAP02S. UNIX Multi-user system Multi-user system Multi-tasking system Multi-tasking system Wide selection of tools.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
November 5, 2015CIS 118 Intro to UNIX What’s a Unix? Unix is an Operating System Designed for high-traffic usage Many variants –Linux, BSD: free versions.
Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix.
Introduction to Programming Using C An Introduction to Operating Systems.
Basic of UNIX For fresh members of SPARCS
EGEE-III INFSO-RI Enabling Grids for E-sciencE Apr. 25, Grid Computing Hands On Training for Users Faculty of Sciences, University.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
Intro. To Unix commands For those who’ve never used Unix before Quick tutorial to let you move around your Unix Accounts No discussion of inner workings.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
A gentle introduction to LINUX at the command prompt.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Learning basic Unix command It 325 operating system.
Chapter 2: Exploring the UNIX File System (For Tuesday Section) File and File Systems.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
+ Introduction to Unix Joey Azofeifa Dowell Lab Short Read Class Day 2 (Slides inspired by David Knox)
Learning Unix/Linux Based on slides from: Eric Bishop.
Getting Started with Linux
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.
Getting started with CentOS Linux
Web Programming Essentials:
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
How to create and run CGI programs using the CS web server.
UNIX Basics Internet Technology.
Unix : Introduction and Commands
Web Programming Essentials:
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Presentation transcript:

Using UNIX Charles Duan FAS Computer Services June 12, 2016

FAS Computer Services What’s a Unix? Unix is an Operating System Designed for high-traffic usage Many variants –Linux, BSD: free versions Spelled either Unix or UNIX

June 12, 2016FAS Computer Services Using UNIX Basic Concepts Common Commands Multi-User Functions File System –Structure –Commands –Security UNIX>_

June 12, 2016FAS Computer Services Using UNIX Basic Concepts Common Commands Multi-User Functions File System –Structure –Commands –Security UNIX>_

June 12, 2016FAS Computer Services Multi-Computer, Multi-User Servers Clients

June 12, 2016FAS Computer Services The Shell Person Operating System SHELL User types commands into shell Run program Shell translates commands to machine code

June 12, 2016FAS Computer Services Starting a UNIX Shell Run through an SSH client –PuTTY, SecureCRT, NiftyTelnet Try it! –date, cal [ [month] year] Special Keys –Ctrl-C, Ctrl-D, Ctrl-Q, Ctrl-Z

June 12, 2016FAS Computer Services Using UNIX Basic Concepts Common Commands Multi-User Functions File System –Structure –Commands –Security UNIX>_

June 12, 2016FAS Computer Services Interesting Commands Fun –weather –fortune Useful –man –apropos –date –cal Printing –lpr –enscript Network –ping –traceroute –nslookup –hostname

June 12, 2016FAS Computer Services Commands pine: read mail forwardmail: forward mail blockmail: block mail procmail: proc[ess] mail

June 12, 2016FAS Computer Services FAS/UA Commands fixfinger, fixdotfiles, fixwebfiles: when your account’s acting funny nofinger: keep people from finding you quota: how much disk space do I have left? usage: how much printing budget do I have left? sudo: special UA tools

June 12, 2016FAS Computer Services Using UNIX Basic Concepts Common Commands Multi-User Functions File System –Structure –Commands –Security UNIX>_

June 12, 2016FAS Computer Services What’s on your server? List users online –users –who –last [user] –finger [user] FAS-specific –ph [full name] –rwho [user] What are people doing? –w –ps [aux] Managing your own processes –fg/bg –kill [process #]

June 12, 2016FAS Computer Services Communicating on UNIX write send a one- way message talk have a conversation mesg [y | n]: let people talk to you

June 12, 2016FAS Computer Services Using UNIX Basic Concepts Common Commands Multi-User Functions File System –Structure –Commands –Security UNIX>_

June 12, 2016FAS Computer Services Hierarchical File System /home/c/d/cduan

June 12, 2016FAS Computer Services Remote Home Directories home05 home06 home07 is01 is02 smtp webmail

June 12, 2016FAS Computer Services Using UNIX Basic Concepts Common Commands Multi-User Functions File System –Structure –Commands –Security UNIX>_

June 12, 2016FAS Computer Services File System Commands Browsing commands File Manipulation Commands File Viewing/Editing Commands

June 12, 2016FAS Computer Services File Browsing pwd print working directory % pwd /home15/c/d/cduan cd change directory cd.. up 1 directory % cd /usr/bin % pwd /usr/bin ls list files ll “long” listing % ls file1 file2 file3 file4 file5 file6

June 12, 2016FAS Computer Services File Manipulation mv: move file(s) –mv file1 file2 rename file1 to file2 –mv [file…] dir move files to directory cp: copy file(s) rm: remove file(s) mkdir: create a directory rmdir: remove a directory

June 12, 2016FAS Computer Services File Viewing/Editing cat, more, less, head, tail: view (parts of) files grep word [file…]: find words in files vim: edit files (see tutorial) –Or use that pico program

June 12, 2016FAS Computer Services Using UNIX Basic Concepts Common Commands Multi-User Functions File System –Structure –Commands –Security UNIX>_

June 12, 2016FAS Computer Services File System Security Problem: multiple users, one machine 1.How do we keep data private? 2.How do we make data public? 3.How do we make data partially public?

June 12, 2016FAS Computer Services File System Security Solution: UNIX permissions scheme Three levels of people –Self, group, others Three levels of protection –read, write, execute

June 12, 2016FAS Computer Services File Permission Types LevelFor FilesFor Directories readAble to read file contents Able to list files in directory writeAble to modify file contents Able to create/ remove files executeAble to run file as a program Able to use files in directory

June 12, 2016FAS Computer Services User Permission Levels Self: yourself Group: members of pre-defined system groups (student, ua, etc.) –Generally not treated specially World: every user on the system Root can read/write everything!

June 12, 2016FAS Computer Services Viewing File Permissions: ll -rwxr-xr-x 1 cduan ua... self group worldownergroup read write execute No write permission for world

June 12, 2016FAS Computer Services Changing Permissions: chmod LevelSelfGroupWorld read444 write222 execute111 + chmod 755 [file…]

June 12, 2016FAS Computer Services Common chmod Values Private file Private directory Public file Public directory Public directory, no listing files

June 12, 2016FAS Computer Services Setting Up a Web Page ~cduan/ public_html/ index.html cgi-bin/ script.cgi ! Remember: to read a file, you must be able to execute all higher directories!

June 12, 2016FAS Computer Services Using UNIX: Final Remarks Where to get help –man pages –Internet –UAs, full-time staff, UNIX Group Be safe, be secure, be careful Have fun using UNIX!

June 12, 2016FAS Computer Services