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.

Slides:



Advertisements
Similar presentations
Introduction of Unix/Linux Compiled by Anant Vishnoi.
Advertisements

1 Introduction to UNIX Ke Liu
©Colin Jamison 2004 Introduction to Linux Colin Jamison.
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
1 Introduction to UNIX 2 Ke Liu
Linux+ Guide to Linux Certification, Second Edition
Linux & Applications Sean GavinWayne State University multi-user environment -- log in: user name and password -- you never turn the computer on or off.
Linux Files. Files and directories As in Windows directories are structures which contain –Other directories –Files.
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.
1 Intro to C/C++ #include using namespace std; int main() { cout
UNIX Command-line Introduction Terence Parr. Navigating  cd  pwd  ls  pushd/pod  cd  pwd  ls  pushd/pod.
Embedded Programming and Robotics Lesson 13 Basic Linux 1.
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.
Systems Programming Concepts
Learning basic Unix command IT 325 operating system.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
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+ Guide to Linux Certification, Second Edition
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
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.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
UNIX Introduction CSCE 221H Texas A&M University.
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.
Linux+ Guide to Linux Certification, Third Edition
Getting Started UNIX InKwan Yu Topics Unix Commands Unix System calls C function calls.
EGEE-III INFSO-RI Enabling Grids for E-sciencE Apr. 25, Grid Computing Hands On Training for Users Faculty of Sciences, University.
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part B Shell Commands Professional Training.
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.
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.
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
ICE UNIX TUTORIAL. File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete.
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.
Using UNIX Charles Duan FAS Computer Services June 12, 2016.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Tutorial Six Linux Basics CompSci Semester Two 2016.
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.
Tutorial of Unix Command & shell scriptS 5027
Getting started with CentOS Linux
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.
Prepared by: Eng. Maryam Adel Abdel-Hady
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
Useful Linux Commands.
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
Working with the Command-Line Interfaced
CS 60 Discussion Review.
Tutorial of Unix Command & shell scriptS 5027
A Brief Overview of Unix
UNIX Reference Sheets CSE 2031 Fall 2010.
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Tutorial Unix Command & Makefile CIS 5027
Working with Mac OS and Linux
Using emacs and G++ at U. W.
Lab 2: Terminal Basics.
Linux Commands LINUX COMMANDS.
Presentation transcript:

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 terminals (xmanager, putty, cygwin) Login

2 Basic commands of Linux I Command format: [command] [arguments] Search information on a command: man [command] e.g., man pwd Print current directory: pwd List files and directories in a directory: ls ls –l Only list directories: ls -ld Current directory:. upper-level directory:..

3 Basics Commands of Linux II File/directory operations: Copy file x to y: cp x y Remove file x: rm x be very careful, rm –i x Move file x to y (rename): mv x y Create new directory x: mkdir x Change directory: Go to upper level: cd.. Go to directory x: cd x Remove directory: rm –r x Rename directory x to y: mv x y

4 Basics Commands of Linux III State of processes: ps (process state) ps –aux ps –aux | grep bing Kill First use ps to find the ID of a process kill pid Pipeline command: e.g., ps -aux | more

5 Basics Commands of Linux IV Mode of a program: list mode of f: ls –l f 3 components: for owner, group member, others 3 bits in each component: r, w, x e.g., mode of 755 means? Change the mode of a file: chmod E.g., chmod 755 f Change owner of a program: chown

6 Programming on Linux Write your code (using e.g., emacs, xemacs, vi, or eclipse) Compile: e.g., g++ –g -o hello hello.cpp Run: e.g., hello or./hello Debug: print messages using gdb( locate segmentation fault) or xxgdb (better interface)