CS 60 Discussion Review.

Slides:



Advertisements
Similar presentations
I/O & Perintah Dasar Linux Onno W. Purbo
Advertisements

CSE1222: Unix IntroThe Ohio State University1. Common Directory Commands  lsList directory contents  cd {dir}Change working directory to {dir}  pwdPrint.
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Introduction of Unix/Linux Compiled by Anant Vishnoi.
Introduction to UNIX Cornell University CS 316 – Fall 2006 Slides by Michael Siegenthaler.
Unix. Outline Commands Environment Variables Basic Commands CommandMeaning lslist files and directories ls -alist all files and directories mkdirmake.
1 Introduction to UNIX Ke Liu
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
©Colin Jamison 2004 Introduction to Linux Colin Jamison.
1 Introduction to UNIX 2 Ke Liu
It's a binary file kept under specific directory.
Introduction to UNIX Cornell University CS 316 – Fall 2007 Slides by Jed Liu (Based on slides by Michael Siegenthaler)
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.
Introduction to Linux/UNIX. History UNIX beginnings in 1969 (Linus Torvalds is born!) AT & T Bell Laboratories (Ken Thompson & Dennis Richie) Working.
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.
Systems Programming Concepts
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
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.
Introduction to UNIX Don Bahls user consultant (907)
Introduction to Computer Organization & Systems Topics: Intro to UNIX COMP John Barr.
Linux Un*x Overview Peter Norton’s Guide to Unix Running Linux (O’Reilly)
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
CS 6560 Operating System Design Lecture 3:Tour of GNU/Linux.
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.
Keyword Shell Variables The shell sets keyword shell variables. You can use (and change) them. HOME The path to your home directory PATH Directories where.
Linux File System and The Shell Yonglei Tao. Linux File System  Consists of one or more self-contained file management units  each is known as a filesystem.
1 Operating Systems Lecture 2 UNIX and Shell Scripts.
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.
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.
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.
Lecture 24CS311 – Operating Systems 1 1 CS311 – Lecture 24 Outline Final Exam Study Guide Note: These lecture notes are not intended replace your notes.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
CS252: Systems Programming Ninghui Li Slides by Prof. Gustavo Rodriguez-Rivera Topic 7: Unix Tools and Shell Scripts.
Basic of UNIX For fresh members of SPARCS
Linux Commands C151 Multi-User Operating Systems.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Lecture 1: Introduction, Basic UNIX Advanced Programming Techniques.
+ 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.
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.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
The UNIX Shell Learning Objectives:
Part 1: Basic Commands/Utilities
Some Linux Commands.
C151 Multi-User Operating Systems
Basic UNIX OLC Training.
Introduction to UNIX.
Sarah Diesburg Operating Systems CS 3430
Internet-of-Things (IoT)
Introduction to Linux/UNIX
Introduction to Computer Organization & Systems
UNIX Reference Sheets CSE 2031 Fall 2010.
Andy Wang Object Oriented Programming in C++ COP 3330
Shells jbliao.
Shells.
Linux Shell Script Programming
CSE 303 Concepts and Tools for Software Development
Chapter 3 The UNIX Shells
Linux Commands LINUX COMMANDS.
Introduction to Linux Commands
CMPSC 60: Week 5 Discussion
Presentation transcript:

CS 60 Discussion Review

Important Unix Commands ls Options: -ltra pwd mkdir rmdir cd

Important Unix commands cp Options: -r mv rm more/less cat echo

File Permissions rwx: Read, Write, eXecute Owner, Group, Others What do these mean for files/dirs Owner, Group, Others Example: chmod 754 file.txt

Redirection, Pipes >, >> < |

Backquotes cat `ls abc* |grep 123`

Processes ps pidof kill -9

Background jobs ^Z bg fg &

Debugging gcc -g gdb <program> [core] GDB commands run list print break continue step next

Compiling Compiling Gcc Pre-Processing Compiling/Assembly Linking Options: -o, -c, -l, -L -W, -Wall, -g

More commands find grep Options: -name, -type, -maxdepth, -user, -exec Options: -r, -l, -n, -v, -I

Tars tar -tvzf tarfile.tar.gz tar -czf tarfile.tar.gz dir/ tar -xvzf tarfile.tar.gz

Shells What is a shell ? Setenv PATH ? .cshrc, .login, .logout csh, bash, etc Setenv PATH ? .cshrc, .login, .logout

More commands head tail cut cut -f2 -d’ ‘ |head -10|tail -2

Shell Scripts Examples

all the best for finals !!