Logo

Blog Grid 2 Column

Journal

Creative Collection

When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees.

2025년 04월 16일

하위 디렉토리까지 뒤져 특정파일의 내용을 replace하기

출처 : http://kltp.kldp.org/stories.php?story=02/01/17/8416340 find . -name ‘*.php’ -exec perl -pi -e ‘s/문자열/변경할문자열/g’ {} \; 웹호스트에서 검증한 명령어입니다. 칸띄우기등 그대로 사용하세요.

Continue Reading
2025년 04월 16일

find 명령으로 특정파일 특정문자열 찾아내기

/home 디렉토리 하단에 .htaccess 파일중에서“avi”란 단어가 들어간 파일을 모두 찾아보자. # grep “avi” `find /home -name .htaccess`/home/mech007/public_html/main/.htaccess:RewriteCond %{DOCUMENT_ROOT}//main/attach/1/favicon.ico -f/home/mech007/public_html/main/.htaccess:RewriteRule ^favicon\.ico$ attach/1/favicon.ico /home/mech007/public_html/main/.htaccess:RewriteRule ^favicon\.ico$ image/icon_favicon_default.ico...

Continue Reading
2025년 04월 16일

하드디스크의 상태보기

# smartctl -a /dev/sdasmartctl version 5.33 Copyright (C) 2002-4 Bruce AllenHome page is http://smartmontools.sourceforge.net/ Device: SEAGATE  ST373207LC       Version: 0003Serial number: 3KT04Y9500007609MM1EDevice type: diskTransport protocol:...

Continue Reading
2025년 04월 16일

linux CPU,메모리 제조사, 슬롯,뱅크등 자세한 정보 알아내는 방법

프로그램 명 : dmidecode 2.8 (시스템(bios/dmi) 정보확인)운영체제     LINUX,FreeBSD라이센스     GPL홈페이지     http://www.nongnu.org/dmidecode/ 홈페이지에서 최신 tar.gz 다운로드 tar xvzfp dmidecode-2.9.tar.gzcd dmidecode-2.9makemake install # whereis...

Continue Reading