130 likes | 292 Views
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:
E N D
CIS 2107 Assignment 1
1 2 3 4 Lab and Linux Basic commands Compile and Debug Contents Editor: vim Chen Shen
Lab • Name: Chen Shen • Lab: Wachman Hall 409 • Office Hours: Wednesday 10:00am-12:00pm • Email: tuf18653@temple.edu • Deadline: 2 weeks Chen Shen
Linux • Most popular: Ubuntu • Choices: • Windows + Ubuntu • Windows + Vmware + Ubuntu • Shell: interface between users and computer Chen Shen
Basic operations • ls • cd • . • .. • / • ~ Chen Shen
Basic operations • man • pwd • clear • cat • less & more • hd Chen Shen
Basic operations • touch: create file • mkdir: create directory • rm: delete file • rmdir: delete directory • cp: copy • mv: move or rename Chen Shen
Basic operations • ls -l • chmod • ^C ^Z ^D • fg • bg • jobs Chen Shen
Vim • Install: sudo apt-get install vim • example vimrc • vimtutor • :set ruler • :set number • :set smartindent Chen Shen
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
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
Debug • gcc –g • gdb Chen Shen
Click to edit company slogan . Thank You !