linux 썸네일형 리스트형 ls 파일사이즈 MB 단위로 파일사이즈 표시ls -al --block-size=M KB 단위ls -al --block-size=K 더보기 디렉토리별 용량확인하기 du du /etc16 /etc/chatscripts4 /etc/apparmor/init/network-interface-security8 /etc/apparmor/init16 /etc/apparmor12 /etc/kbd8 /etc/rcS.d172 /etc/ssh du -s /etc7196 /etc du -sh /etc7.1M /etc 더보기 [CENTOS]JDK7 설치하기 1.OS확인$getconf LONG_BIT 64 2.jdk 다운로드 및 파일풀기 http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html su 비밀번호입력 chmod 755 jdk-7u25-linux-x64.gz mv jdk-7u25-linux-x64.gz /usr/local/ tar -xvf jdk-7u25-linux-x64.gz /usr/local/jdk1.7.0_25 3.프로파일 수정하기 vi /etc/profile # java settings export JAVA_HOME=/usr/local/jdk1.7.0_25 export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH="... 더보기 CentOS CPU 및 메모리확인 cat /proc/cpuinfo processor: 0 vendor_id: GenuineIntel cpu family: 6 model: 44 model name: Intel(R) Xeon(R) CPU E5640 @ 2.67GHz stepping: 2 cpu MHz: 2666.760 cache size: 12288 KB fdiv_bug: no hlt_bug: no f00f_bug: no coma_bug: no fpu: yes fpu_exception: yes cpuid level: 11 wp: yes flags: fpu de tsc msr pae cx8 apic cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc up nonstop_tsc pni .. 더보기 ln 리눅스에서 링크는 하드링크와 소프트링크(심볼릭링크) 두 가지 타입이 있다. 하드링크 사용예 ln /test1.txt /test2.txt 하드링크는 디렉토리에서는 사용할 수 없고 파일에서만 사용가능하다 사용예의 test1.txt를 삭제하여도 test1.txt는 삭제되지만 test2.txt를 이용하여 파일을 열 수 있다. 하드링크를 사용했을 경우 ls -al을 사용하면 몇개의 링크가 있는지 알 수 있다. 소프트링크(심볼릭링크) 사용예 ln -s /aaa/bbb /testdir ln -s ./test.txt ./test1.txt 소프트링크(심볼릭링크)는 주로 디렉토리를 링크할 때 사용된다. 연결된 원본 파일을 삭제 시 링크를 사용할 수 없게 된다. 더보기 간단한 find 사용법 1. 현재 디렉토리내 확장자가 txt인 파일 찾기 find . -name "*.txt" 2. 전체 디렉토리내 확장자가 txt인 파일 찾기 find / -name "*.txt" 3. 확장자가 txt인 파일을 찾아 ls 형식으로 출력하기 find / -name "*.txt" -ls 4. 디렉토리 찾기 - jdk라고 들어가는 모든 디렉토리 찾기 find / -name "*jdk*" -type d [root@myserver /]# find / -name "*jdk*" -type d /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0 /usr/lib/jvm-exports/java-1.6.0-openjdk-1.6.0.0 /usr/lib/jvm-private/java-1.6.0-openjdk /u.. 더보기 CentOS 버전 확인하기 root@servername /]# lsb_release -a LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID: CentOS Description: CentOS release 5.4 (Final) Release: 5.4 Codename: Final 더보기 Linux command line에서 파일 다운로드하기 *톰캣 다운로드 wget http://apache.tt.co.kr/tomcat/tomcat-7/v7.0.22/bin/apache-tomcat-7.0.22.tar.gz 더보기 [CentOS]root 비밀번호 변경하기 [root@javarian/]# su [root@javarian/]# passwd Changing password for user root. New UNIX password: Retype new UNIX password: 더보기 이전 1 다음