일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- JavaScript
- import
- DB 도메인
- Eclipse
- web.xml
- 단축키
- 네트워크
- Source
- tomcat
- grep
- profile
- bash
- netsh
- xargs
- resource
- context
- VirtualBox
- Windows
- ssh
- port
- maVen
- GIT
- find
- 공통표준용어
- Quartz
- IntelliJ
- copy-dependencies
- Mac
- lsof
- Windows 10
- Today
- Total
목록OS & Shell/Linux (83)
develog
test.sh #/bin/bash dirPath=$1 echo $dirPath if [ -z $1 ]; then echo please input directory name exit fi ssh dev01@127.0.0.1 '[ ! -d baseDir/'$dirPath' ] && mkdir -p baseDir/'$dirPath echo result=$? echo end 실행 (aa 디렉토리가 없으면 생성함) aa result=0 end 실행 (aa 디렉토리가 있으면 생성안함) aa result=1 end
:set nohlsearchor:set hlsearch!
ctrl + v, 블록선택shift + i, 내용입력, esc
#/bin/bash a=10 b=20 if [ $a -eq 10 ] && [ $b -eq 20 ]; then echo okelse echo not okfi a=11b=20 if [ $a -eq 10 ] || [ $b -eq 20 ]; then echo okelse echo not okfi
#/bin/bash a=10b=20c=$(($a+$b))echo $c
개요 A서버에서 B서버로 ssh 로 접속하려는 경우 A서버에서 private/public rsa key 를 생성하고 생성된 public key 를 B서버에 등록한다 순서 1. A서버에서 rsa key를 생성한다 $ cd ~/.ssh ## ssh-keygen 으로 키를 생성 ~/.ssh $ ssh-keygen -t rsa -b 4096 ## 파일 2개가 생성된다 ( id_rsa, id_rsa.pub ) ~/.ssh $ ls -al -rw------- 1 user1 staff 1843 Feb 15 09:28 id_rsa -rw-r--r-- 1 user1 staff 410 Feb 15 09:28 id_rsa.pub 2. A서버의 public 키를 B서버에 등록한다 A서버의 ~/.ssh/id_rsa.pub 파일..