분류 전체보기156
GNU parallel CentOS 6.x에 설치하기(초간단 버전)
# cd /etc/yum.repos.d/ # wget http://download.opensuse.org/repositories/home:tange/CentOS_CentOS-6/home:tange.repo # yum install parallelUbuntu용 ntsysv
ubuntu에서 부팅시 시작되는 서비스를 제어하기 위해 사용하는 툴이다. $ sudo apt-get install sysv-rc-conf $ sudo sysv-rc-confLinux system stress tool
URL : http://people.seas.harvard.edu/~apw/stress/ stress stress is a deliberately simple workload generator for POSIX systems. It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system. It is written in C, and is free software licensed under the GPLv2.SYSTEMTAP
Overview SystemTap provides free software (GPL) infrastructure to simplify the gathering of information about the running Linux system. This assists diagnosis of a performance or functional problem. SystemTap eliminates the need for the developer to go through the tedious and disruptive instrument, recompile, install, and reboot sequence that may be otherwise required to collect data. SystemTap ..크롬브라우저 윈도우 단축키
마우스 없이 키보드만으로 작업이 가능하도록 트레이닝 중이다. 그래서 크롬브라우저의 유용한 단축키 정보를 퍼왔다. 퍼온사이트 URL : https://support.google.com/chrome/answer/157179?hl=ko&ref_topic=25799 1. 탭 및 창 단축키 Ctrl+N 새 창을 엽니다. Ctrl+T 새 탭을 엽니다. Ctrl+Shift+N 시크릿 모드에서 새 창을 엽니다. Ctrl+O를 누른 다음 파일을 선택합니다. 컴퓨터의 파일을 Chrome에서 엽니다. Ctrl 키를 누른 상태에서 링크를 클릭합니다. 또는 가운데 마우스 버튼(또는 마우스휠)으로 링크를 클릭합니다. 백그라운드의 새 탭에서 링크가 열립니다. Ctrl+Shift 키를 누른 상태에서 링크를 클릭합니다. 또는 Shif..nmon for Linux
이미 설치된 패키지 질의
* rpm -qa -> 시스템에 패키지가 설치되었는지 확인 * rpm -qf -> 이미 설치된 파일이 어느 패키지에 포함된 것인지 확인 * rpm -ql -> 특정 패키지에 어떤 파일들이 포함되었는지 확인 * rpm -qi -> 설치된 패키지의 상세 정보 # rpm -qa ntp ntp-4.2.6p5-1.el6.centos.x86_64 # rpm -qf /etc/ntp.conf ntp-4.2.6p5-1.el6.centos.x86_64 # rpm -ql ntp /etc/dhcp/dhclient.d /etc/dhcp/dhclient.d/ntp.sh /etc/ntp.conf /etc/ntp/crypto /etc/ntp/crypto/pw /etc/rc.d/init.d/ntpd /etc/sysconfig/ntpd..bash shortcuts (단축키)
인터넷에 공개된 내용을 정리했음. 쉘 상에서 실행중인 프로그램 제어 단축키 •Ctrl-C - 실행 중인 프로그램 중지 •Ctrl-Z - 실행 중인 프로그램 일시 정지 •% - 일시 정지된 프로그램 다시 실행 bash 상에서 emacs 입력모드일 경우(default) 단축키 •Tab - 자동 완성 •Ctrl-D - 글자 없을땐 로그 아웃 , 커서위치 다음 문자 지움 •Ctrl-R - 히스토리 찾기 •Ctrl-S - 키보드 잠그기 •Ctrl-Q - 잠긴 키보드 풀기 •Ctrl-M - Enter •Ctrl-P - 이전 명령어 (Up) •Ctrl-N - 다음 명령어 (Down) •Ctrl-I - 화면 지우기 (clear) •Ctrl-Y - 버퍼의 내용 붙여넣기 •Ctrl-A - 입력 라인의 처음으로 이동 (Ho..NTP Server, Client 구축
[FreeBSD] 프비에서 쉘(SHELL) 변경하기
chsh -- add or change user data-base information # chsh --help chsh: illegal option -- - usage: chpass [-d domain] [-h host] [-a list] [-p encpass] [-s shell] [-e mmm dd yy] [user] # # chsh -s /usr/local/bin/bash root chsh: user information updated #ext3와 ext4 파일 시스템에서 삭제한 파일을 복구하는 방법
원문 : https://code.google.com/p/ext3grep/ ext3grep A tool to investigate an ext3 file system for deleted content and possibly recover it.맨페이지 출력
# man [명령어] | col -b | cat * col - filter reverse line feeds from input * -b - Do not output any backspaces, printing only the last character written to each column position.현재 쉘(SHELL)의 PID 확인 방법
# echo $SHELL /bin/bash # ps $$ PID TTY STAT TIME COMMAND 12633 pts/1 S 0:00 -bash # echo $$ 12633 "$" 변수는 현재 쉘의 프로세스 아이디(PID)를 가지는 변수이다.whereis, which 명령어 차이
# whereis bash bash: /bin/bash /usr/share/man/man1/bash.1.gz # which bash /bin/bash whereis 명령은 명령의 실행파일, 소스, 맨페이지의 위치를 검색하는 명령이고, which 명령은 환경 변수에 지정된 PATH 변수의 경로 내에서 실행 파일의 이름을 검색할때 사용.du, sort 명령어 조합
# du -h * | sort -nr > $HOME/script.txt * du - estimate file space usage * -h, --human-readable * sort - sort lines of text files * -n, --numeric-sort (compare according to string numerical value) * -r, --reverse (reverse the result of comparisons, 내림차순)리눅스 머신 초기 설정 정리
---------------------------------------------------------------1. vi 에디터 설정 # vi /etc/vircset tabstop=4 (탭의 공백 문자 개수를 4개로 지정)set shiftwidth=4 (shift 이동시 사용할 공백 문자의 개수를 4개로 지정)set smartindent (엔터를 입력하여 다음 라인 이동시 들여쓰기)set cindent (C언어 코드 작성 시 C문법 스타일 맞추기) # source /etc/virc ---------------------------------------------------------------2. ls명령시 날짜 포맷 변경 # vi /etc/bashrcalias ls='ls --color=auto --..반응형