Linux

Linux

[linux] Ubuntu 18.04 directory 만들 때 권한 옵션 주기

# 1. create directory # 2. create directory with permission # 1. create directory mkdir /path/directoryname # 2. create directory with permission mkdir -m 777 path/directoryname 2. 관련 ref : https://stackoverflow.com/questions/5786326/how-to-create-a-directory-and-give-permission-in-single-command How to create a directory and give permission in single command How to create a directory and give p..

Linux

[linux] Ubuntu 18.04 Port, 특정 포트 죽이기

# 1. port 확인 # 2. 포트번호로 죽이기 - fuser # 3. 프로세스 아이디로 죽이기 - fill # 1. port 확인 $ netstat -tnlp 8501 -> 포트번호 46009 -> PID(프로세스 아이디) # 2. 포트번호로 죽이기 - fuser $ fuser -k 8501/tcp # 3. PID(프로세스 아이디)로 죽이기 - fill $ kill -9 46009

Linux

[linux] Ubuntu 18.04 방화벽(firewall) 설정

빠른 설정 1. UFW 상태 확인 $ sudo ufw status verbose 2. 원하는 포트(8050) 모두(tcp, udp) 허용 $ sudo ufw allow 8050 3. 원하는 포트(8050) tcp 허용 $ sudo ufw allow 8050/tcp 4. 원하는 포트(8050) 모두(tcp, udp) 거부 $ sudo ufw deny 8050 자세한 세부 설정 및 참고 https://webdir.tistory.com/206 [Ubuntu] 우분투 방화벽(UFW) 설정 우분투의 기본적인 방화벽은 UFW입니다. 이는 iptables를 좀 더 쉽게 설정할 수 있도록 한 것인데 간단한 방화벽 구성에는 문제가 없지만 수준 높은 방화벽 구성에는 iptables 룰을 직접 사용해야 합 webdir.ti..

Linux

[linux] CMake 최신버전 설치하기

#1. apt version 3.10.2만 가능 / apt $ sudo apt install cmake #2. source download 1) 파일 다운로드 / wget / 3.19.2 version $ wget https://cmake.org/files/v3.19/cmake-3.19.2.tar.gz 2) 압축풀기 및 설치 $ tar -xvzf cmake-3.19.2.tar.gz $ cd cmake-3.19.2 $ ./bootstrap --prefix=/usr/local $ make $ make install 3) 설치확인 $ cmake --version

Linux

[linux] 아나콘다 리눅스 서버에 설치하기 install anaconda3 in linux

아나콘다 리눅스 서버에 설치하는 방법 간단함 step1 : 리눅스에 맞는 최신버전 확인 step2 : .sh 파일 다운 step3 : verify the data integrity of the install step4 : run conda3.sh step5 : 설치 되었는지 확인 step1 : 리눅스에 맞는 최신버전 확인 www.anaconda.com/products/individual#linux Anaconda | Individual Edition Anaconda's open-source Individual Edition is the easiest way to perform Python/R data science and machine learning on a single machine. www.anac..

Linux

[linux](ubuntu 18.04) multiple files copy in linux using a list file of names

여러 파일들을 한번에 다른 디렉토리로 옮기고 싶을 때 이렇게 해보세유 filenamelist 를 하나 만들고 아래의 코드로 돌리면 몇십만장의 사진들 중에 내가 원하는 몇백장만 들어가 있는 directory를 만들 수 있어유 rsync -av /path/from/source/ --files-from=/full/path/list.filename /path/to/destination/

Linux

[linux] (ubuntu 18.04) create soft link / symbolic link

create soft link / symbolic link $ ln -s file1 link1 $ ln -s file1 link1 ex) input output

Linux

[linux] (ubuntu 18.04) Getting the size of a directory

sudo du -sh /path1/path2 sudo du -sh /path1/path2

Chandler.j
'Linux' 카테고리의 글 목록 (2 Page)