본문 바로가기

전체 글

네트웍 활성화 이더넷활성화 ifup ethX 또는 sudo dhclient ethX 네트웍 재시작 /etc/rc.d/init.d/network restart 또는 service network restart 부팅시 활성화시키기 /etc/sysconfig/network-scripts/ifcfg-ethX onboot=yes 더보기
사용자 계정 관리 사용자 계정 관리 1. 계정의 이해 리눅스의 계정은 오피스텔의 임대에 비유 할수 있다. 루트권한, 로그인, 계정생성, 소유권, 퍼미션, 그레커, 열쇠글, 계정삭제 2. 계정생성 * 생성 : useradd [옵션] 계정명 (adduser 와 같음) * 변경 : usermod [옵션] 계정명 * 삭제 : userdel [옵션] 계정명 -> /etc/passwd 파일에 계정 정보 저장 (실습) # useradd kim (==adduser kim) # ls -l /home # useradd -c 010-1213-4567 hong # cat /etc/passwd | grep hong * assuser 옵션 hong:x:502:502:010-123-4567:/home/hong:/bin/bash 사용자계정:사용자비번.. 더보기
lsof 1. lsof 란? 2. lsof 활용법 3. 해킹 추적 4. 결론 ____ 1. lsof 란? ]# whatis lsof lsof (8) - list open files ( 열려진 파일들을 보는 명령어 ) 일반적으로 시스템에서 동작하고 있는 모든 프로세스에 의해서 열리어진 파일들에 관한 정보를 보여주는 시스템 관리 명령어 2. lsof 활용법 2.1. lsof 파일명 지정한 파일을 엑세스 하고 있는 프로세스의 정보를 보여준다. ]# lsof /usr/sbin/proftpd COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME proftpd 647 nobody txt REG 8,2 433516 209221 /usr/sbin/proftpd 2.2. lsof /tmp 지정한 디.. 더보기
PostgreSQL 기본 클라이언트 psql 사용 psql 쉘 옵션 [root@linux root]# psql --help This is psql 7.4.1, the PostgreSQL interactive terminal. Usage: psql [OPTIONS]... [DBNAME [USERNAME]] General options: -d DBNAME specify database name to connect to (default: "root") -c COMMAND run only single command (SQL or internal) and exit -f FILENAME execute commands from file, then exit -l list available data.. 더보기