wiki:Ubuntu

Ubuntu

Definition

리눅스 배포판의 한 종류. 매년 4월 10월에 배포판이 나오면 각 판은 1년의 지원을 책임진다. 알파벳 두자로 구성된 페포판 명과 v10.04 (2010년 4월) 같은 버전명을 갖는다.  각버전별 명명

10.04 기준 세팅사항

명령어 정리

ps

  • 프로세스 확인 명령어 . 이걸로 찾아서 kill로 죽임.
        #컴맨드에 메이지 않은 전체 프로세스 보기 
        ps -x
        #모든 프로세스
        ps -a
    

crul

바이너리 파일 받기. 옵션 -O 사용

    curl http://domain.com/aaa.zip -O

FTP

  • open
  • get
  • put
  • mput : 현재 remote경로에 로컬 멀티파일 업로드
     $mput ../scripts/*.js      #scripts폴더의 *.js 업로드
    
  • prompt : 컴맨드 on/off

apt-get

vim

일반명령어

  • perror : 에러코드로 에러 내용 확인
        #mysql 에서 에러가 난 상황 
        mysql> select * into outfile '/home/hrdsystem/pollAll.csv' fields terminated by ',' from EDU_POLL;
        ERROR 1 (HY000): Can't create/write to file '/home/hrdsystem/pollAll.csv' (Errcode: 13)
    
        > perror 13
        OS error code  13:  Permission denied
    
    
  • kill
        kill -9 PID
    
  • Ubuntu/crontab
  • rm : 삭제
        #현재경로 하위에서 .svn 디렉토리 모두 찾아서 삭제.
        find . -name ".svn" -type d -exec rm -rf {} \;
    
  • mv : 이동
  • Find
    find / -name trac.css -print
    
  • 설치된 우분투 버전확인하기
    lsb_release -a
    
    LSB Version:    core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:cxx-4.0-ia32:cxx-4.0-noarch
    Distributor ID: Ubuntu
    Description:    Ubuntu 10.04.1 LTS
    Release:        10.04
    Codename:       lucid
    
    
  • 사용중인 커널 정보
    uname -r
    
  • 포트 스켄
    netstat -ntl
    
  • 압축풀기
    tar xvzfp textcube-1.8.3.1-expansion.tar.gz
    tar -xvjf textcube-1.8.3.1-expansion.tar.gz
    
  • 로그 보기
    tail -f logfilename.log
     
    

기타

  • 폴더 조회
    ls -l | grep "^d" 
    
  • root 계정 암호 설정
    1.터미널을 실행한다.
    2.sudo passwd root 라고 적어준다.
    3.현재 계정의 비밀번호를 적어준다.
    4.root 비밀번호를 새로 적어준다.
    
  • 일괄복사
    cp -r
    
  • 퍼미션과 생성시간 유지 일괄복사
    cp -pr
    
  • 소유권 변경
    chown -R www-data:www-data /var/www
    find /var/www -type d -exec chmod 755 {} \;
    find /var/www -type f -exec chmod 644 {} \;
    
  • 폴더내 Count. 예.확장자가 class인 하위폴더 포함 개수
    ls -lR | grep ^-.*\.class$ | wc -l
    
  • 탐색기 에서 root 권한주기. Alt + F2
    gksudo nautilus 
    
  • 권한변경 chmod
      # bin 폴더 하위 모든 파일, 디렉토리 속성을 777바꿈.
      chmod -R 777 bin
    

Install

쉽게 설치 하는 법. ISO로 USB 부팅설치

코분투

Reference