Blog Small
Travel
Journal
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.
[root@ns2 ~]# smartctl -a /dev/sdasmartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce AllenHome page is http://smartmontools.sourceforge.net/ Device: SEAGATE ST373207LC Version: 0003Serial number: 3KT04Y9500007609MM1EDevice type: diskTransport protocol: Parallel SCSI (SPI-4)Local Time is: Thu Jul 17 19:47:11 2008 KSTDevice supports SMART and is EnabledTemperature Warning EnabledSMART Health Status: OK Current Drive Temperature: 28 CDrive Trip Temperature: 68 CVendor (Seagate) cache information Blocks sent to initiator = 3138754649 Blocks received from initiator = 1182413804 Blocks read from cache and sent to initiator = 40205361 Number […]
프로그램 명 : 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 [root@storage0001 dmidecode-2.9]# whereis dmidecodedmidecode: /usr/sbin/dmidecode /usr/local/sbin/dmidecode[root@storage0001 dmidecode-2.9]# dmidecode 매우 복잡한 시스템정보 출력됨 문제점 너무 복잡해서 뭐가 뭔지 모름 그래서, dmidecode를 쉽게 보여주는 유틸을 하나 추가설치한다. http://ezix.org/project/wiki/HardwareLiSter 화면중간쯤에 The latest version is B.02.13 (MD5:e94c728ed037ca706436b5ef71aa392d, SHA1:e27412d47de8efb4adb3646e46affffb95dd384f). 이 부분 클릭하고 다운로드함 wget http://ezix.org/software/files/lshw-B.02.13.tar.gz tar xvzfp lshw-B.02.13.tar.gzcd lshw-B.02.13make 완료됨 cd src./lshw |more(약 2초간 대기….) *-cpu:1 description: CPU physical id: 8 bus info: cpu@1 version: 15.4.3 serial: […]
netstat -ant | awk ‘{print $5}’ | cut -f 1 -d : | sort | uniq|wc -l 서버에 접근하는 ip들 보기
#uname -a 하시면 됩니다. Linux kkamagi2 2.6.18-8.1.15.el5 #1 SMP Mon Oct 22 08:32:04 EDT 2007 i686 i686 i386 GNU/Linux 32bit시에 위와 같이 뜨고.. 64bit시에는. x86 64로 나올 꺼예요
$ find . -name “b*” -exec rm -rf {} \; 현재 디렉토리(.) 하부에 b로 시작하는 파일은 모두 삭제하라 $ find . -name “*” -exec rm -rf {} \; 이렇게 하면 현재 폴더하부모든파일 및 폴더 삭제 -atime : 파일을 열어본 시간 또는 디렉토리에 cd 명령으로 접근한 시간-mtime : 파일의 내용이 변경된 시간 ls -l 에서 나오는 시간-ctime : 파일의 정보가 변경된 시간 chmod chown과 연관성이 있음 우리가 보통 사용하는 단위는 ls로 보기때문에 mtime 이 맞다. find . -mtime +15 -exec rm -rf {} \; […]
