◈ decompress 확장자 : .tar (묶음 개념) tar xvf 확장자 : .tgz || .tar.gz (묶음이 압축되어 있는 개념) tar xvfz (tar의 버전에 따라서 z옵션이 f보다 앞에 있어야 인식하는 경우도 있습니다.) x : extract v : verbose f : file z: gzip ◈ compress 확장자 : .tar (묶음 개념) tar cvf 확장자 : .tgz || .tar.gz (묶음어서 압축하는 개념) tar cvfz tar cvfz c : create v : verbose f : file z: gzip MAN tar NAME tar - The GNU version of the tar archiving utility SYNOPSIS tar [options] Ope..
printk("[%s %d] %s call %p \n", __FILE__, __LINE__, __FUNCTION__, __builtin_return_address(0)); __FILE__ 해당 코드의 파일 위치 출력 __LINE__해당 코드의 라인 출력 __FUNCTION__해당 함수 출력 __builtin_return_address(unsigned int level)해당 함수를 콜한 주소 출력 (level은 call stack 위치, 0->바로 호출한 함수 1-> 그 함수를 호출한 함수) 출력 결과 [include/net/dst.h 238] dst_input call 4033efac
DHCP messages Message Use ------- --- DHCPDISCOVER - Client broadcast to locate available servers. DHCPOFFER - Server to client in response to DHCPDISCOVER with offer of configuration parameters. DHCPREQUEST - Client message to servers either (a) requesting offered parameters from one server and implicitly declining offers from all others, (b) confirming correctness of previously allocated addre..
편집모드 (i,o 등로 입력할 수 있는 상태) 명령 모드(편집모드에서 esc key를 누른상태) 기 타 A 현재라인의 끝부터 문자 삽입 a 커서 다음부터 문자 삽입 I 현재라인의 처음부터 문자 삽입 i 커서 이전부터 문자 삽입 O 커서의 윗라인에 새로운 라인첨가 (처음부터 문자 삽입) o 커서의 아래 라인에 새로운 라인첨가 (처음부터 문자 삽입) r 커서위치의 한문자 치환 R 커서위치에서부터 계속 치환 cw 한 단어 치환 C 한 라인 치환 c$ 현재부터 라인끝까지 치환 cG 현재부터 파일끝까지 치환 cL 현재부터 화면 끝까지 치환 c) 현재 구 치환 c} 현재 절 치환 ~ 소문자와 대문자 서로 치환 xp 두 문자 자리바꿈 n>> n(숫자)만큼 이동 CTRL + I tab ..
심심할때 한번씩 보면 재미있는 Linux man page..이번에는 iptables 공략입니다, iptables(8) - Linux man page Name iptables - administration tool for IPv4 packet filtering and NAT Synopsis google_protectAndRun("render_ads.js::google_render_ad", google_handleError, google_render_ad);iptables [-t table] -[AD] chain rule-specification [options]iptables [-t table] -I chain [rulenum] rule-specification [options]iptables [-t ta..
#define SIGRTMIN 32 #define SIGRTMAX _NSIG #define _NSIG 64 정규 시그널(sig.1~31)의 action및 Comment는 아래와 같이 확인 (시그널 번호는 하드웨어 구조에 따라 다릅니다) # Signal name Default action Comment POSIX 1 SIGHUP Terminate Hang up controlling terminal or process Yes 2 SIGINT Terminate Interrupt from keyboard Yes 3 SIGQUIT Dump Quit from keyboard Yes 4 SIGILL Dump Illegal instruction Yes 5 SIGTRAP Dump Breakpoint for debuggi..
# /etc/services:# $Id: services,v 1.40 2004/09/23 05:45:18 notting Exp $## Network services, Internet style## Note that it is presently the policy of IANA to assign a single well-known# port number for both TCP and UDP; hence, most entries here have two entries# even if the protocol doesn't support UDP operations.# Updated from RFC 1700, ``Assigned Numbers'' (October 1994). Not all ports# are in..
우선 마운트 상태를 체크하기 위한 명령어로 df 로 확인합니다. $ df Filesystem 1k-blocks Used Available Use% Mounted on /dev/ram0 63461 37406 22779 62% / /dev/hdc3 248895 66914 169129 28% /xxx/xxx /dev/hdc4 427824 311440 94295 77% /yyy/yyy none 65536 13072 52464 20% /zzz/zzz 원하는 unmount 영역은 hdc3이지만, umount 명령 실행시 실제로 umount가 되지 않음을 알 수 있습니다. $ umount /dev/hdc3 umount: cannot umount /usr/local: Device or resource busy 이럴때 ..
linux 코딩시에 유용한 errno... 대략 errno.h 파일을 include 하고 사용할 수 있습니다. // 경로 : linux/include/asm-generic/errno-base.h #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3 /* No such process */ #define EINTR 4 /* Interrupted system call */ #define EIO 5 /* I/O error */ #define ENXIO 6 /* No such device or address */ #define E2BIG 7 /* Argument list..
좋은 방향으로 사용하면 자신의 장비에 열린 포트를 확인함으로 인해 조금 더 안전한 서버 운영에 도움이 되고, 반면 open 포트 확인으로 공격성을 가질 수 있는.. 그런 양날의 검(?) 이라고나 할까요.. 이번에는 nmap에 대해 알아봅니다. 보통의 옵션은 man page에 상세하게 정의되어 있으니.. 자주 사용되는 몇가지 옵션만 기록해 두도록 합니다. TCP 포트 확인 방법 #nmap -sT -p 1-65535 localhost UDP 포트 확인 방법 #nmap -sU -p 1-65535 localhost 네트워크에 열린 포트 확인 #nmap -sX -p 22,53,110 211.239.111.* 아래는 nmap에 대한 man page입니다. nmap(1) - Linux man page Name nma..
- Total
- Today
- Yesterday