1 / 13

CIS 2107

CIS 2107. Assignment 1. 1. 2. 3. 4. Lab and Linux. Basic commands. Compile and Debug. Contents. Editor: vim. Lab. Name: Chen Shen Lab: Wachman Hall 409 Office Hours: Wednesday 10:00am-12:00pm Email: tuf18653@temple.edu Deadline: 2 weeks. Linux. Most popular: Ubuntu Choices:

Download Presentation

CIS 2107

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. CIS 2107 Assignment 1

  2. 1 2 3 4 Lab and Linux Basic commands Compile and Debug Contents Editor: vim Chen Shen

  3. Lab • Name: Chen Shen • Lab: Wachman Hall 409 • Office Hours: Wednesday 10:00am-12:00pm • Email: tuf18653@temple.edu • Deadline: 2 weeks Chen Shen

  4. Linux • Most popular: Ubuntu • Choices: • Windows + Ubuntu • Windows + Vmware + Ubuntu • Shell: interface between users and computer Chen Shen

  5. Basic operations • ls • cd • . • .. • / • ~ Chen Shen

  6. Basic operations • man • pwd • clear • cat • less & more • hd Chen Shen

  7. Basic operations • touch: create file • mkdir: create directory • rm: delete file • rmdir: delete directory • cp: copy • mv: move or rename Chen Shen

  8. Basic operations • ls -l • chmod • ^C ^Z ^D • fg • bg • jobs Chen Shen

  9. Vim • Install: sudo apt-get install vim • example vimrc • vimtutor • :set ruler • :set number • :set smartindent Chen Shen

  10. Vim • Command mode • press I to Insert mode • Insert mode • press Esc to Command mode • last line mode • :w filename save as filename • :wq save and exit • :q! exit without save Chen Shen

  11. Compile • preprocessing: gcc–E –o welcome.iwelcome.c • compiling: gcc–S –o welcome.swelcome.i • assembling: gcc–c –o welcome.owelcome.s • linking: gcc–o welcome welcome.o Chen Shen

  12. Debug • gcc –g • gdb Chen Shen

  13. Click to edit company slogan . Thank You !

More Related