글
IT/OS 2006/09/22 02:14COMMAND
리모트화면 제어
ctrl-l ☞ 화면 clear
ctrl-t ☞ 두개의 문자가 서로 뒤바뀜
ctrl-u, ctrl-w ☞ 커서 왼쪽의 문자들 삭제
cd - ☞ 바로 전 디렉토리로 이동
프로그램이 설치된 위치알기
which mysql
디렉토리내 모든내용 그대로 복사하기
[code bash]
find . -depth -print | cpio -pmdvl /home/user/copy
[/code]
특정 용량 알기
[code bash]
du -s /home/* | awk '$1 > 10000'
du -sh /home/*
du -sk ~
# 현재 로그인한 계정의 총 사용량 확인
du -sk /home1
# home1의 총 사용량 확인
du -sk /home1 *
#상위디렉토리별로 사용량을 알고 싶을때(홈페이지 계정별 사용량을 알고싶을때)
[/code]
Set UID 파일 찾기
[code bash]
find / -type f -perm -04000 -ls
[/code]
파일생성 날짜 수정
[code bash]
touch 파일명
[/code]
심볼릭 링크
[code bash]
ln -s filename linkname
[/code]
퍼미션 (Permission)
[code bash]
chmod +w index.html
# user(owner), group, others 모두에 쓰기 퍼미션이 추가
chmod u+w index.html
# user만 쓰기추가 u - user / g - group / o - other
chmod o-wx index.html
# other 쓰기,실행 권한삭제
chown index.html linuxer
# 소유자 수정
chgrp index.html mygroup
# 그룹 수정
[/code]
[code bash]
tail -f -n50 /var/log/mysql/mysqld.log
[/code]
init → /etc/inittab → /etc/init.d → etc/rc.d/rc0.d 폴더선택 실행 (run level 0번일 경우) → K숫자 작은 것 -> K숫자 큰 것 순서로 실행한 다음, S숫자 작은 것 -> S숫자 큰 것의 순서대로 실행
[code bash]
ln -s /usr/local/apache/bin/apachectl S57apache
# (run level 지정 폴더에서 실행)
[/code]
# other 쓰기,실행 권한삭제
chown index.html linuxer
# 소유자 수정
chgrp index.html mygroup
# 그룹 수정
[/code]
파일 끝부분을 보기
[code bash]
tail -f -n50 /var/log/mysql/mysqld.log
[/code]
부팅시 자동실행
init → /etc/inittab → /etc/init.d → etc/rc.d/rc0.d 폴더선택 실행 (run level 0번일 경우) → K숫자 작은 것 -> K숫자 큰 것 순서로 실행한 다음, S숫자 작은 것 -> S숫자 큰 것의 순서대로 실행
자동실행 등록
[code bash]
ln -s /usr/local/apache/bin/apachectl S57apache
# (run level 지정 폴더에서 실행)
[/code]
'IT > OS' 카테고리의 다른 글
| VI (0) | 2006/09/22 |
|---|---|
| 타임서버로부터 로컬서버의 시간설정 (0) | 2006/09/22 |
| Linux Mounting (0) | 2006/09/22 |
| 리눅스 압축 (0) | 2006/09/22 |
| RPM (0) | 2006/09/22 |
| COMMAND (0) | 2006/09/22 |
RECENT COMMENT