Linux 8

[Tig] CentOS 7에 Tig 설치하기

※ Git 설치 yum install git Tig란? - Git을 위한 ncurs 기반 텍스트 모드 인터페이스 - 주로 Git 저장소 브라우저로 기능 - 청크 수준에서 커밋을 위한 변경 스테이징을 지원 - 다양한 Git 명령의 출력을 위한 호출기 역할 가능 마우스 우클릭으로 주소를 복사 wget https://github.com/jonas/tig/releases/download/tig-2.3.3/tig-2.3.3.tar.gz tar -xvzf tig-2.3.3.tar.gz centos server에서 wget으로 다운받은 후, gzip 파일을 압축 해제! $ ls tig-2.3.3 tig-2.3.3.tar.gz $ cd tig-2.3.3/ $ ls COPYING Makefile README.adoc a..

Linux 2020.09.17

[chmod] 폴더 또는 파일만 권한 변경

현재 디렉토리의 모든 파일을 755로 권한 변경 find ./ -type f -exec chmod -v 755 {} \; 현재 디렉토리의 모든 폴더를 755로 권한 변경 find ./ -type d -exec chmod -v 755 {} \; 현재 디렉토리의 모든 폴더, 파일을 755로 권한 변경 chmod 755 ./* 특정 파일을 755로 권한 변경 chmod 755 a.txt 특정 폴더와 그 안에 모든 파일, 폴더들 755로 권한 변경 chmod -R 755 ./test_folder

Linux 2020.09.17

linux CPU 정보 및 사용량 확인 명령어

CPU 정보 확인 $ cat /proc/cpuinfo 물리 CPU 개수 확인 $ grep "physical id" /proc/cpuinfo | sort -u | wc -l 논리 코어 개수 확인 $ grep -c processor /proc/cpuinfo CPU 당 코어 개수 확인 $ grep "cpu cores" /proc/cpuinfo | tail -1 process 별 CPU 사용량 확인 $ top CPU 코어별 사용량 확인 $ top 1 thread별 CPU 사용량 확인 $ top -H 출처 http://sarghis.com/blog/1136/ http://blog.naver.com/PostView.nhn?blogId=anbv3&logNo=130116624489

Linux 2019.09.27
반응형