CSC209H1 Study Guide - Final Guide: Chmod, Grep, Core Dump

147 views2 pages
18 May 2014
School
Course
Professor

Document Summary

Linux permissions owner u (user), g (group), o (all other - not u nor g) Rwxr-xr-x 1 root root (user, group), ex: chmod a+rx. Bash redirects: ls >out (stdout), ls 2>out (stderr), ls &>out (both) Return code: piping: ls l | wc, background job: command , kill [ sigstop, sigcont, sigterm, sigkill] pid, example for month display (wed feb 20 16:36:00 est 2013, set Fri Dec 7 07:04:33 UTC 2018 + echo the current month is . Pointers void func(int* a){ sizeof(a); } invalid size of array from pointer. Strings: char* a= aaa ; a[0]= z"; fault - can"t change/free read-only mem, char a[10]; strncpy(a, ,10); valid size but need to add \0", char a[10], b= c ; strncpy(a,b,10); valid, result in a = c . Makefiles: make flags: debug: -g, warnings: wall: % - match, - target name, $^ list of prereq, $< first prereq.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents