Basic of UNIX For fresh members of SPARCS

Slides:



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

Introduction of Unix/Linux Compiled by Anant Vishnoi.
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.
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.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
Introduction to Linux/UNIX. History UNIX beginnings in 1969 (Linus Torvalds is born!) AT & T Bell Laboratories (Ken Thompson & Dennis Richie) Working.
Embedded Programming and Robotics Lesson 13 Basic Linux 1.
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.
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.
GETTING STARTED USING LINUX UBUNTU FOR A MULTI-USER SYSTEM Team 4 Lab Coordinator Manager Presentation Prep Webmaster Document Prep Faculty Facilitator.
Chapter 10 – UNIX. History In late 1960s, two employees of Bell Labs (Ken Thompson & Dennis Ritchie) designed a new operating system to overcome the constraints.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
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.
1 Intro to Linux - getting around HPC systems Himanshu Chhetri.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux 简介. Contents Unix GNU/Linux, Distributions Basic usage Applications Compiling, compilers Clustering.
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
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Natawut NupairojAssembly Language1 Unix Survival Guide.
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.
Chapter 0 A “Quick-Start” into the UNIX Operating System.
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.
Lecture 24CS311 – Operating Systems 1 1 CS311 – Lecture 24 Outline Final Exam Study Guide Note: These lecture notes are not intended replace your notes.
Chapter Four I/O Redirection1 System Programming Shell Operators.
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.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
40 Years and Still Rocking the Terminal!
Introduction to Programming Using C An Introduction to Operating Systems.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
Linux Commands C151 Multi-User Operating Systems.
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.
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.
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.
Learning Unix/Linux Based on slides from: Eric Bishop.
Using UNIX Charles Duan FAS Computer Services June 12, 2016.
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.
A “Quick-Start” into the UNIX Operating System
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Some Linux Commands.
C151 Multi-User Operating Systems
Command Line Interface for Beginners
Introduction to GNU/Linux (Fedora) Command Line Interface
Linux Basic Commands Visit to more Learning Resources.
Tutorial of Unix Command & shell scriptS 5027
Introduction to UNIX.
Tutorial of Unix Command & shell scriptS 5027
Introduction to Linux Week 0 - Thursday.
CS 60 Discussion Review.
Tutorial of Unix Command & shell scriptS 5027
Introduction to Linux/UNIX
UNIX Reference Sheets CSE 2031 Fall 2010.
Tutorial Unix Command & Makefile CIS 5027
Linux Commands LINUX COMMANDS.
Presentation transcript:

Basic of UNIX For fresh members of SPARCS

What is UNIX? AT&T ’ s UNIX Ken Thompson and Dennis Ritchie BSD and System V Release Solaris, AIX, IRIX, HP-UX, FreeBSD, … Linux

Features of UNIX Multi-user, Multitasking Written in C – portability Simple and elegant Very good at networking server

Basic Commands of UNIX Please help me!!! Using file system Permissions Compression and archiving Displaying system information

Basic Commands of UNIX – cont. Searching and find Job control Redirection and pipe Various utilities Using network

Please help me!!! man – to see on-line reference manual $ man man $ man ls info – for reading documentation (GNU) $ info info $ info ls -h, --help option

Using file system All in UNIX is file Tree structure ls – listing directory contents $ ls -al cp, mv – copying, moving files $ cp file1 file2 $ mv file1 file2 directory

Using file system – cont. rm – removing files $ rm file1 file2 $ rm -rf directory mkdir, rmdir, cd – making, removing, changing directory $ mkdir directory; cd directory $ cd..; rmdir directory pwd – printing working directory

Permissions UNIX is multi-user system user, group, other rwxrwxrwx – 777 chmod – changing file access permissions $ chmod 644 file1 file2 $ chmod go-rw file3 chown, chgrp (for superuser) – changing user, group ownership

Compression and archiving gzip, bzip2 – compress or expand files $ gzip file1 file2 $ bzip2 -d *.bz2 tar – archiving files $ tar cvf files.tar file1 file2 $ bzip2 files.tar $ tar xzvf directory.tar.gz directory $ tar xjvf directory.tar.bz2 directory

Displaying system information du, df – displaying usage of space w, who – show who is logged in finger – lookup user information whoami – who am I id – printing real eUID and GID

Searching and find which, whereis, type – simple searching utilities find – finding files $ find directory [expression] … $ find / -name hanterm $ find. -name “ *~ ” -exec rm -f {} \; $ man find

Redirection and pipe $ command > file $ command < file $ command1 | command2 Ask details to netj

Various functions kill – sending signal to process ps – printing process status cat – to see file (?) more, less – paging text file to see grep, egrep – print line matching pattern $ grep pattern [file] …

Various functions head, tail – see head, tail of files cut, sort – cut or sort text file write – send message to other user Mail alias Xmanager – required

Using network telnet – telnet client mutt, pine – Mail User Agent ftp, ncftp – ftp client wget - a utility to retrieve files lynx, w3mmee – text web browser talk

For C/C++ programming Use ‘ :set cindent ’ in vim gcc, g++ - C/C++ compiler $ gcc -o target1 source1.c source2.c … $ g++ -o target2 source1.cc source2.cc … make – very good program using Makefile

Simple example of Makefile