1 / 6

UNIX Introduction

UNIX Introduction. CSCE 221H Texas A&M University. Linux environment. PuTTY is an application to establish SSH connections Development machine: linux.cse.tamu.edu Open a PuTTY session and log into linux. Basic UNIX commands. cd: change directory mkdir: make directory

ziazan
Download Presentation

UNIX Introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UNIX Introduction CSCE 221H Texas A&M University

  2. Linux environment • PuTTY is an application to establish SSH connections • Development machine: linux.cse.tamu.edu • Open a PuTTY session and log into linux

  3. Basic UNIX commands • cd: change directory • mkdir: make directory • ls: list items in a directory • g++ / g++-4.6: invoke GNU’s C++ compiler • vim / emacs / nano: text editing

  4. Exercise • Make a directory called “lab1” in your home folder • Type “mkdir lab1” • Type “cd lab1” • Create a file called “hello.cpp” using vim • Type “vim hello.cpp” • Write hello world to the screen • Type “i” to go to insert mode then type the program • Type “esc” to go to command mode and “:wq” to save and quit vim • Compile using g++-4.6 and run your application • Type “g++-4.6 hello.cpp –o hello” to compile • Type “./hello” to run the program

  5. vim Quick start guide Vim cheat sheet Vim settings file – put in home directory labeled “.vimrc”

  6. Helpful tools for linux • gdb – debugging tool for linux • valgrind – memory leak detector/memory profiler • screen – very helpful when working remotely in a terminal. Saves the terminal session even if the network connection cuts out. • LaTex – tool for creating documents • top – monitor the system processes

More Related