Vim Editor and Unix Command gcc compiler Computer Networks.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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.
Working Environment - - Linux - -.
1 Using Editors Editors let you create and edit ASCII files UNIX normally includes two editors: vi and Emacs Vi and Emacs are screen editors: they display.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
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.
Learning basic Unix command IT 325 operating system.
Notes Assignment #1 is due next Friday by 11:59 pm via Test #1 will be held Thursday February 18 at the start of class (one period long) Format:
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”
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
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.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
The UNIX development environment CS 400/600 – Data Structures.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
Carnegie Mellon Linux Boot Camp Jenna MacCarley, Peter Pearson, Shashank Goyal 9/19/2015.
Intro. To Unix commands For those who’ve never used Unix before Quick tutorial to let you move around your Unix Accounts No discussion of inner workings.
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
VIM  This is the text editor you will use on the workstation.  You can also edit the text files under windows environment and upload it to the workstation.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
UNIX Introduction CSCE 221H Texas A&M University.
House Keeping Section 1 is due on Thursday BEFORE class 18 labs 11 quizzes Log into LabSim I want to verify you are in the Spring 15 CBIS 4225 Sys Admin.
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
CGS 3460 Why we choose UNIX n Powerful lMulti-user operating system lGood programming tools Most heavy-duty database management systems started out on.
Text editors Why should I use an editor ? It is very important to able to use at least one text mode editor a text mode editor is so useful on remote machines.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Chapter Three Text Editing1 System Programming Text Editing.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Week 8: Linux / ubuntu Dr. I. H. Shah. / CSCS 301 Fall 2009.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
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.
Exploring Spyder: An IDE for scientific computing
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.
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.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Tutorial Six Linux Basics CompSci Semester Two 2016.
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
GRID COMPUTING.
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
CS1010: Intro Workshop.
Development Environment Basics
Getting started with CentOS Linux
Vim basics Vi IMproved.
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.
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Linux.
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Operating Systems Lecture 5.
A Brief Overview of Unix
Lab 00 Discussion Linux Basics
Run Java file with Window cmd
Getting started with CentOS Linux
Command line.
Module 6 Working with Files and Directories
Lab 2: Terminal Basics.
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

Vim Editor and Unix Command gcc compiler Computer Networks

Vim Vim is a Editor installed in almost every version of the unix-like OS. There are three mode in Vim: Normal, Edit, Command. This overview will cover the simple use of Vim like open file, editing, saving, abort the editing. If you want to know more, you can reference: hp hp

Vim – environment setting Vim can mark the syntax in different colors, which can enhance the efficiency of developing programs dramatically. You can set the custom color scheme or cursor line in.vimrc file. cd ~ vim.vimrc

Vim – environment setting After typing vim.vimrc, you’ll be able to edit the.vimrc file (if you don’t have one before, the system will create one for you). If you want the default color scheme, just type “syntax on” in the file and then save the file. If you want more custom setting, you can reference here : m_set m_set

Vim – file open and save If you want to save or abort the editing, you have to enter the command mode of the Vim. If you’re in edit mode, press ESC and then “shift+:” If you want to save the file, enter wq If you don’t want to save the file, enter q!

gcc compiler gcc is a c compiler to compile the code you develop. There are a few flags need to take care when you compile code. If you use the pthread in your server, remermber to add –lpthread after your gcc command. Ex: gcc –lpthread server.c

gcc compiler You can also assign the name of executable file by –o flags Ex. gcc –o server server.c

UNIX Command pwd : show the location you're ls: list all the file in the current directory mv [filename] [path] : move the file to the given path cp [filename] [path] : copy the file to the given path. mkdir [path] : create a sub directory at the current directory.

UNIX Command cd path : change the current location to given path Ex: cd testDir, Note: 1.cd.. means go back to the parent directory 2. cd ~ means go to home directory