Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.

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

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
1 Introduction to UNIX Ke Liu
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.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
7/17/2009 rwjBROOKDALE COMMUNITY COLLEGE1 Unix Comp-145 C HAPTER 2.
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.
Linux Commands LINUX COMMANDS.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Learning basic Unix command IT 325 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”
© Crown copyright Met Office An Introduction to Linux PRECIS Workshop, University of Reading, 23rd – 27th April 2012.
UNIX command line. In this module you will learn: What is the computer shell What is the command line interface (or Terminal) What is the filesystem tree.
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.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
Carnegie Mellon Linux Boot Camp Jenna MacCarley, Peter Pearson, Shashank Goyal 9/19/2015.
CS240 Computer Science II Introduction the Unix File System and File Related Utilities Based on “UNIX for Programmers and Users” by G.Class and K. Ables.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
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.
Unix/Linux cs3353. The Shell The shell is a program that acts as the interface between the user and the kernel. –The shell is fully programmable and will.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
Linux and Java Basics. What is Linux? Operating system by Linus Torvalds that was a clone of Unix (thus Linux) Free and open source – this is the reason.
Introduction to Programming Using C An Introduction to Operating Systems.
The Genome Analysis Centre Building Excellence in Genomics and Computational Bioscience.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
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.
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.
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.
 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.
The Unix File sytem. Introduction Tree structure …
Learning basic Unix command It 325 operating system.
Introduction to Linux Workshop February 15, 2016.
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.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
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.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Introduction to Unix for FreeSurfer Users
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.
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.
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
The Command Prompt Commands are the way to “do things” in Unix
Eric Shook Department of Geography Kent State University
The Linux Operating System
Shell Environments.
Introduction to Linux Week 0 - Thursday.
Unix : Introduction and Commands
Web Programming Essentials:
A Brief Overview of Unix
Andy Wang Object Oriented Programming in C++ COP 3330
Linux Shell Script Programming
CSE 303 Concepts and Tools for Software Development
Lab 2: Terminal Basics.
Short Read Sequencing Analysis Workshop
Presentation transcript:

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,” an NSF Expedition in Computing (Award Number ).

Outline Switch 101: Switching from a PC to a Mac: Switch 101 Introduction to Unix

Exercises Run Safari (or Chrome or Firefox) Run Microsoft Word or Powerpoint Find a pdf file containing the word “CMACS” and open it What program was used to open it? Look at all the open programs and activate the Word program Put the RuleBender application icon in the Dock

Mac OS X: A Geek with a Pretty (Inter)Face

Introduction to Unix Everything is a file The file system is organized into a hierarchy A fully-specified path specifies all the directories from the root to the file, for example: /Users/nancyg/Documents/ABBREV.csv The working directory or current directory is the one you are working in A relative path specifies the directories starting with one contained in the working directory: Documents/ABBREV.csv

Getting help help : displays information about builtin commands (a subset of all commands) man or info : display a manual page for a command

The file hierarchy The root file is “/” Some directories below root are: Applications Developer Library Users bin etc

Manipulating Files ls pwd cd mkdir rmdir mv cp cat rm open

Manipulating Files: ls options -a: list *all* files (including. and..) -d: print directories as normal files (no contents) –G: colorize output -l: long format (access options, time, size) -t: sort by time modified (most recent first)

Exercises Use man to learn about ls, cd, pwd What directories are contained in the root directory (“/”) What non-directory files are contained in the root directory? What is your home directory? What directories are contained in your home directory? Use man to learn about mkdir, rmdir Create a subdirectory of your home directory Create a subdirectory of the subdirectory

Exercises Use man to learn about mv, cp, cat, rm Create a file containing your name in your home directory Create a subdirectory of your home directory Copy the file to the subdirectory Remove the original file Move the copy back to the home directory

Exercises Use man to learn about “open” Run Safari by opening the appropriate file

Inspecting and Changing Files more less cat Editors nano vi emacs

Exercises Use man to learn about more, less, cat Try using more, less, and cat to look at files. What are the differences? Use man to learn about nano Create a file containing a brief description of your favorite Unix command and save it in your home directory as.txt

The Shell Every Unix system runs a “shell” to interpret your commands Commands can be entered from a terminal or The shell can be directed to read a file containing commands (“. ”) Mac OS X uses “bash” (Bourne-again shell) by default

The Shell Types of commands: Built-in shell commands (shell programming) Unix programs (e.g., ls, mv, etc.) Scripts (executable user files) Shell variables set export echo

The Shell Start-up script:.bash_profile Sets important variables PATH: determines where the shell looks for commands

Exercises Type “set” to see variables HOME PATH

Keyboard Shortcuts Auto-completion: Tab and double Tab Command history: Up and down arrows Cancel: ^C End of input: ^D

Programs and executables File permissions: Write: w Read: r Execute: x

Final Exercises Start RuleBender Run a bngl file Open the output using the “System Editor” Open Excel and find the output files to open. Navigate to the results directory using a Unix terminal window