본문 바로가기

2018/03

[Linux] 파일 관리 - rm 파일/디렉토리 삭제 파일 삭제rm [option] [삭제할 파일 위치/이름] remove : 파일을 삭제한다.option :-r 디렉토리와 그 하부 파일까지 삭제 (하부파일이 있는 디렉토리는 한번에 삭제불가)-f 삭제 여부를 묻지 않고 바로 삭제-rf 삭제 여부를 묻지 않으며 하부 파일이 있는 디렉토리까지 삭제rm 명령어파일 및 디렉토리 삭제한다. rm은 remove의 약자이다.사용법rm (옵션) [삭제할 파일 명 및 디렉토리 명] option :-r : 일반 파일은 그냥 지우고 디렉토리면 디렉토리를 포함한 하위 경로와 파일 모두를 지운다.-i : 지울 것인지 확인을 한다 (y,n)-f : 물어보지 않고 지운다.-rf : 삭제 여부를 묻지 않으며 하부 파일이 있는 디렉토리까지 삭제NOTE주로 rm -rf 옵션을 쓴다.rm .. 더보기
[Ubuntu] 리눅스 프로세스 확인하기 (검색하기) 1. ps -ef | grep 프로세스 이름 사진상에서 프로세스 목록을 보면 ts3server가 존재하는것을 알 수 있다. BASHps -ef | grep 프로세스이름즉,BASH ps -ef | grep ts3 명령어를 실행하면 아래와 같이 프로세스가 표시가 된다. 만약 존재하지 않는 프로세스라면 아래와같이 표시가 되지 않는다. 2. pgrep 프로세스 이름 다른방법으로는 프로세스의 pid를 찾아주는 pgrep를 이용할 수 있겠다. 사진과 같이 pid가 뜬다면 존재하는 것이다. 3. pidof 프로세스 이름 다음으로는 pidof이다. pidof는 아쉽게도 프로세스의 이름을 모두 입력하여야 한다. 4. htoptop과 다른 htop으로 확인하는 방법이다. htop은 PageDown/Up 버튼이 유효하다.먼.. 더보기
Hyperledger 설치 사전 준비사항 Prerequisiteshttp://hyperledger-fabric.readthedocs.io/en/release-1.1/prereqs.html useradd -m -s /bin/bash hyperledgerecho "hyperledger ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/90-cloud-init-users sudo apt updatesudo apt dist-upgradeDocker install sudo apt install -y apt-transport-https ca-certificates software-properties-common curl python unzip curl -fsSL https://download.docker.com/linux/ubun.. 더보기
Hyperledger Fabric Tutorial(2) - Writing Your First Application Writing Your First Applicationhttp://hyperledger-fabric.readthedocs.io/en/latest/writefirstapp.htmlSetting up your Dev Environmentcd ~/workspace/fabric-samples cd fabcar ls docker rm -f $(docker ps -aq) docker network prune Install the clients & launch the networkunset HTTP_PROXY HTTPS_PROXY npm install ./startFabric.sh docker ps Start by installing required packages run 'npm install' Then run '.. 더보기
Hyperledger Fabric Tutorial(1) - Hyperledger Fabric sample download Hyperledger Fabric sample downloadhttp://hyperledger-fabric.readthedocs.io/en/latest/samples.htmlcd ~/workspace git clone https://github.com/hyperledger/fabric-samples.git cd fabric-samples ls hyperledger@vm001:~$ hyperledger@vm001:~$ hyperledger@vm001:~$ cd hyperledger@vm001:~$ ls bin readme.md workspace hyperledger@vm001:~$ cd ~/workspace hyperledger@vm001:~/workspace$ git clone https://github.. 더보기