'STUDY > Objective-C' 카테고리의 다른 글
objective c // calcurate (0) | 2010.06.30 |
---|---|
[Objective C] NSDictionary , NSMutableDictionary (0) | 2010.06.24 |
[Objective C] method 앞에 plus (+) , minus (-) (0) | 2010.06.24 |
[Objective C] NSArray , NSMutableArray, Enumeration (0) | 2010.06.24 |
[Objective C] NSMutableString (0) | 2010.06.24 |
[Objective C] NSString (0) | 2010.06.24 |
root 권한으로 리눅스 로그 삭제
/etc/syslog.conf // 로그상태를 분석해서 로그를 찾아나간다.
/var/adm/messages // 자신의 흔적을 지운다.
/var/adm/sulog // su 명령어를 쓴 자신의 흔적을 지운다.
/.history // 자신이 쳤던 명령어 리스트를 지운다.
/var/log/syslog // 자신의 흔적을 지운다.
/var/log/authlog // 자신의 흔적을 지운다.
/var/adm/utmp // 자신의 흔적을 지운다.
/var/adm/wtmp // 자신의 흔적을 지운다.
/tmp/ // 자신의 흔적을 지운다.
'STUDY > Linux' 카테고리의 다른 글
httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName (0) | 2013.04.18 |
---|---|
리눅스 버전 확인 (uname || /etc/issue) (0) | 2013.04.18 |
Linux Log history delete (0) | 2010.06.28 |
리눅스 간단 명령어 정리 모음 (0) | 2010.01.14 |
[Linux] web server install (0) | 2010.01.12 |
ntsysv (0) | 2010.01.12 |
NSDictionary
- Dictionary
- 키워드와 그 정의의 모음
- 주어진 key (보통 NSString 객체)에 대한 값 (임의의객체)을 저장
- 많은 데이터에 저장할 경우 NSArray를 사용해서 순차검색 하는 것 보다 수백 배 더 빠를수 있음
+(id) dictionaryWithObjectsAndKeys: (id)firstObject, …;
-(id) objectForKey: (id) akey;
Tire *t1 = [Tire new]; Tire *tire = [tires objectForKey: @”back-right”];
Tire *t2 = [Tire new];
Tire *t3 = [Tire new];
Tire *t4 = [Tire new];
NSDictionary*tires;
tires = [NSDictionarydictionaryWithObjectsAndKeys:
t1 @”front-left” t2 “front-right”
t3, @”back-left”, t4, @”back-rignt”, nil];
NSMutableDictionary
+(id) dictionaryWithCapacity: (unsigned int) numItens;
-(void) setObject: (id) anObject forKey: (id) aKey;
-(void) removeObjectForKey: (id) aKey;
NSMutableDictionary*tires;tires = [NSMutableDictionarydictionary];// 혹은 +(id) dictionaryWithCapacity: (unsigned int)numItems[tires setObject: t1 forKey: @”front-left”];[tires setObject: t2 forKey:@”front-right”];[tires setObject: t3 forKey: @”back-left”];[tires setObject: t4 forKey: @”back-right”];…[tires removeObjectForKey: @”back_left”];
'STUDY > Objective-C' 카테고리의 다른 글
objective c // calcurate (0) | 2010.06.30 |
---|---|
[Objective C] NSDictionary , NSMutableDictionary (0) | 2010.06.24 |
[Objective C] method 앞에 plus (+) , minus (-) (0) | 2010.06.24 |
[Objective C] NSArray , NSMutableArray, Enumeration (0) | 2010.06.24 |
[Objective C] NSMutableString (0) | 2010.06.24 |
[Objective C] NSString (0) | 2010.06.24 |