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.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

1 Introduction to UNIX Ke Liu
5 Basic utilities When a user logs in to the Linux operating system the directory that they will start in is their home directory. Most users will have.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
Linux+ Guide to Linux Certification, Second Edition
Linux Linux File System.
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
Unix Basics. Systems Programming: Unix Basics 2 Unix Basics  Unix directories  Important Unix file commands  File and Directory Access Rights through.
CMPE 151: Network Administration Spring Class Description Focus: system and network administration. Sequence of exercises. E.g., installing/configuring.
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 Commands LINUX COMMANDS.
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
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”
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Unix Basics Chapter 4.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux+ Guide to Linux Certification, Third Edition
CS 6560 Operating System Design Lecture 3:Tour of GNU/Linux.
LINUX Tuesday, 5 July :00 pm. Remote Login l Use Secure Shell (ssh) l Machine name/IP address E.g. ssh hydra.sma.nus.edu.sg Or ssh
HKOI 2012 TRAINING INTRO TO LINUX /CUHK/SHB123]$ date Sat Feb 18 13:00:00 HKT 2012.
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.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
1 System Administration Introduction to Scripting, Perl Session 3 – Sat 10 Nov 2007 References:  chapter 1, The Unix Programming Environment, Kernighan.
UNIX File System by Tero Toikkanen, CAP02S. UNIX Multi-user system Multi-user system Multi-tasking system Multi-tasking system Wide selection of tools.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
UNIX An Introduction. Brief History UNIX UNIX Created at Bell Labs, 1969 Created at Bell Labs, 1969 BSD during mid 70s BSD during mid 70s AT&T began offering.
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
Introduction to Programming Using C An Introduction to Operating Systems.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 2a – A Unix Command Sampler (Courtesy of David Notkin, CSE 303)
Linux Commands C151 Multi-User Operating Systems.
2 Manual & Filestore Mauro Jaskelioff. Introduction Using the manual The UNIX filestore File permissions.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
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.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
The Unix File sytem. Introduction Tree structure …
Lecture 1: Introduction, Basic UNIX Advanced Programming Techniques.
Learning basic Unix command It 325 operating system.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
Learning Unix/Linux Based on slides from: Eric Bishop.
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
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.
Tutorial of Unix Command & shell scriptS 5027
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Linux 101 Training Module Linux Basics.
Linux file system "On a UNIX system, everything is a file;
Some Linux Commands.
C151 Multi-User Operating Systems
The Command Prompt Commands are the way to “do things” in Unix
Command Line Interface for Beginners
CSE 374 Programming Concepts & Tools
Linux Basic Commands Visit to more Learning Resources.
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Introduction to Linux Week 0 - Thursday.
Tutorial of Unix Command & shell scriptS 5027
Linux Shell Script Programming
CSE 303 Concepts and Tools for Software Development
Module 6 Working with Files and Directories
Linux Commands LINUX COMMANDS.
January 26th, 2004 Class Meeting 2
Presentation transcript:

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 the dominant Unix text editors, and their relative strengths and weaknesses. Filesystem – Learn the differences between Unix filesystems and those on other operating systems Using the Unix shell – Basic commands and shell syntax

What is Unix? Operating system first developed at Bell Labs in 1969 Based on design philosophy of simplicity and modularity Gave birth to a large family of operating systems. The most common of these (and the one used at Drexel) is GNU/Linux Free and open-source

Accessing Documentation man command ◦ Access online documentation for programs, functions, and more. info command ◦ More advanced documentation format, but not as widely used. apropos command ◦ Searches man pages for a command; helpful when you don’t know the exact name Course materials – Probably best source for basic commands Software manuals – More detailed and readable than man pages Books - Unix in a Nutshell available from Drexel Unix standards ◦ POSIX, Single Unix Specification ◦ Poor choice for everyday use, but may be helpful for portability questions.

Text Editors Vi (Visual Editor) ◦ Simple ◦ Available almost everywhere (part of Single Unix Specification) ◦ Mode-based UI takes some getting used to Emacs (Editor Macros) ◦ Lots of features (even has a vi mode) ◦ Highly extensible ◦ Uses multi-key keyboard shortcuts instead of modes Other editors : ◦ vim ◦ nano ◦ Kate ◦ And many more

Filesystem Overview File paths are delimited with forward slashes( / ) All directories are descendants of a root directory, called / Parent directory is denoted with two periods (..) Current directory is denoted with one period (.) Files are assigned permissions, which determine how they can be accessed and by whom.

Filesystem - Related Commands Directory manipulation ◦ cd change directory ◦ ls list files in directory ◦ mkdir make directory ◦ rmdir remove directory ◦ pwd print working directory File manipulation ◦ mv move file ◦ cp copy file ◦ rm remove file ◦ touch make file / update file timestamp

More common commands Search ◦ grep search text (General Regular Expression Parser) ◦ find search for file by name Display ◦ cat concatenate file to output ◦ echo output a given string Misc ◦ wc word/line count ◦ tail return the end of a file ◦ cmp compare files, show first difference ◦ diff compare files, show all differences ◦ ps show running processes ◦ less/more make large outputs easy to read And many more

Important Directories / Root directory /home Personal files /usr User software files /bin Executables /sbin Restricted Executables /dev Devices /usr/man Manuals /usr/src Source code /lib Important libraries /tmp Temporary, deleted on boot For full list, see Filesystem Hierarchy Standard:

File permissions Three sets of permissions ◦ Owner: Generally the file’s creator, but can be changed with chown ◦ Group: A group of users with a special set of permissions  Defined in /etc/passwd and /etc/group  File’s group is changed with chgrp ◦ Other: All other users Three flags in each set ◦ Read, write, execute ◦ Set with chmod Often encoded with each set represented by an octal digit, and each permission flag stored in a single bit ◦ E.g “Read and execute” encoded as 5 ( 2^2 + 2^0) ◦ E.g All permissions for all users encoded as 777

Shell Pipes and Metacharacters Pipes help programs work together. Use | to send output from one program to input for another. ◦ Example: cat file.txt | grep “hello” prints lines of file.txt containing the string “hello” Use > to write output to a file ◦ Example: ls > file.txt writes a directory listing to file.txt Use < to send a file to a program’s input ◦ Example: cat < file.txt prints file.txt * expands to all filenames in the current directory ◦ Example: rm./* deletes all files in current directory. ◦ Use carefully:  Easy to type rm /* and destroy the filesystem.  Use rm –i to avoid accidental deletions. See course notes or sh manual for more shell syntax.

Questions