Lab 00 Discussion Linux Basics

Slides:



Advertisements
Similar presentations
1 Introduction to UNIX Ke Liu
Advertisements

Basic linux shell commands and Makefiles. Log on to engsoft.rutgers.edu Open SSH Secure Shell – Quick Connect Hostname: engsoft.rutgers.edu Username/password:
Unix Basics. Systems Programming: Unix Basics 2 Unix Basics  Unix directories  Important Unix file commands  File and Directory Access Rights through.
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.
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
Learning basic Unix command IT 325 operating system.
CprE 288 – Quick intro for compiling C in Linux
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
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”
Unix Basics Chapter 4.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
Vim Editor and Unix Command gcc compiler Computer Networks.
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
TAMU CSCE 313 (the basics). Basic Unix/Linux programming Accessing CS systems  PuTTY (putty.exe) – a Telnet and SSH client  Common hosts: unix.cs.tamu.edu.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
– 1 – CSCE 211H Fall 2015 Lecture 5 Linux Basics Topics Linux 10 essential commands Machine names forReadings September 21, 2015 CSCE 211 Digital Design.
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.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Tera Term Brian Smith Chris Vasse Zaheemat Adetoro William Newton Tom Presgraves.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
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.
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
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.
EMT 2390L Lecture 3 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
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  There are many different.
Learning basic Unix command It 325 operating system.
Introduction to UNIX and Linux.  Written by Dennis Ritchie and Ken Thomsom at Bell Labs in 1969  Initially written in assembly language and a high-level.
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.
+ Introduction to Unix Joey Azofeifa Dowell Lab Short Read Class Day 2 (Slides inspired by David Knox)
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
Tutorial Six Linux Basics CompSci Semester Two 2016.
Overview of Linux Fall 2016 Dr. Donghyun Kim
ENEE150 Discussion 01 Section 0101 Adam Wang.
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.
First Day in Lab Making a C++ program
EE516: Embedded Software Project 1
CS1010: Intro Workshop.
Getting started with CentOS Linux
CSCE 742 Software Architectures
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Linux 101 Training Module Linux Basics.
Andy Wang Object Oriented Programming in C++ COP 3330
The Command Prompt Commands are the way to “do things” in Unix
Useful Linux Commands.
Welcome to CSCI 230! Problem Solving using C
Welcome to CSCI 230! Problem Solving using C
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems Lecture 5.
The Unix File System.
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Lab 2: Terminal Basics.
January 26th, 2004 Class Meeting 2
Presentation transcript:

Lab 00 Discussion Linux Basics CSCE 212 Computer Architecture Lab 00 Discussion Linux Basics Topics Login in SWGN 1D39, a Linux Lab (3D22 is another) Code-all.tgz (all the code from the book) Basic Unix Commands January 16, 2018

Overview Last Time New – Next Time: Lec00 – C primer slides (we did not go over these in class) New – Login Filesystem “tree” Basic Commands Saving attachment from email “code-all.tgz” Unpacking Compiling showbytes Running Next Time:

Login to Unix/Linux Boxes in 1D39 Your Login name is the root_name of your USC email address Your password is your email password To logout you … (I’ll check on this. On my Linux box it is done differently and I’ll have to go down to 1D39 to remember how you do it there.

Unix file system / At every point in Unix you are “in” the current working directory At login your “current directory” initially will be your home-dir You specify files and directories with paths A full path (starts with slash) /acct/matthews/212 A relative path does not start with ‘/’ and starts from the current directory acct bin dev etc … proc matthews cp … ls device drivers 212

Basic Commands ls – list the contents of this directory cd – change directory pwd – print working (current) directory mkdir – make a directory cp – copy file mv – move a file (= rename) rm – remove a file pico (maybe nano) – a simple editor gcc (Gnu C Compiler) – man cmd – print the manual page on cmd

30 Useful Unix Commands From Univ. of Manchester 1997 http://www.maths.manchester.ac.uk/~pjohnson/resources/unixShort/examples-commands.pdf

More Unix references 50 Most Frequently Used UNIX / Linux Commands (With Examples) 2010 Ramesh Natarajan More experienced selection of commands http://www.thegeekstuff.com/2010/11/50-linux-commands/?utm_source=feedburner 100 Useful Unix Commands & Unix Intro. 2014 by Oliver http://www.oliverelliott.org/article/computing/ref_unix/ http://www.oliverelliott.org/article/computing/tut_unix/

Saving and unpacking code-all.tgz mkdir 212 Student webmail Save attachment cd // go home cd Downloads cp code-all.tgz ~/212 cd ~/212 ls tar xvfz code-all.tgz

Compiling showbytes Cd code Cd data gcc show_bytes.c // this produces a.out ./a.out // run the executable gcc show_bytes.c –o prog // names the executable prog ./prog // run the executable Note show_bytes.c might be show-bytes.c