일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- bash
- import
- DB 도메인
- web.xml
- GIT
- Quartz
- Windows
- xargs
- Windows 10
- copy-dependencies
- find
- ssh
- 공통표준용어
- VirtualBox
- Eclipse
- port
- Source
- context
- Mac
- 네트워크
- tomcat
- resource
- 단축키
- lsof
- profile
- JavaScript
- grep
- netsh
- maVen
- IntelliJ
- Today
- Total
목록OS & Shell/bash (14)
develog
zaiste.net/posts/few-ways-to-execute-commands-remotely-ssh/ A few ways to execute commands remotely using SSH · zaiste.net A few ways to execute commands remotely using SSH zaiste.net
hashcode.co.kr/questions/1893/%EB%A6%AC%EB%88%85%EC%8A%A4-%ED%99%98%EA%B2%BD%EB%B3%80%EC%88%98-%EC%84%A4%EC%A0%95%ED%95%A0-%EB%95%8C-env-set-export-declare [리눅스] 환경변수 설정할 때 env, set, export, declare 환경변수를 등록하는 명령어가 생각보다 많더군요. env, set, export, declare를 사용할 수 있는 것 같은데 명령어가 이렇게나 많은 이유는 무엇인가요?그리고 이 명령어들 사이에 차이점이 있나요? hashcode.co.kr
tmux 설치, 실행, 종료 # tmux 설치 $ sudo yum install -y tmux # tmux 실행 $ tmux # tmux 종료 ctrl + d pane 조작 # prefix 단축키 ctrl + b # pane 좌,우 분할 (prefix 누른 다음에) % # pane 상,하 분할 (prefix 누른 다음에) " # double quotation" # pane 창 이동 (prefix 누른 다음에) 방향키 (상,하,좌,우) # pane 창 크기 조절 (prefix 누른 다음에) ctrl + 방향키 # pane 창 zoom in, out (prefix 누른 다음에) z # pane 종료 (prefix 누른 다음에) x
stackoverflow.com/questions/4510640/what-is-the-purpose-of-in-a-shell-command What is the purpose of "&&" in a shell command? As far as I know, using & after the command is for running it in the background. Example of & usage: tar -czf file.tar.gz dirname & But how about &&? (look at this example: ht... stackoverflow.com
bash 명령어를 원격 서버에서 실행하기 $ ssh user01@ubuntu01 hostname sh -s 로컬 서버의 shell script 파일을 원격 서버에서 실행하기 $ ssh user01@ubuntu01 'bash -s' curr_dir.txt'
existStr existStr() { if [[ $1 == *"$2"* ]]; then echo true else echo false fi} ret1=$(existStr "Server start up in" "start")ret2=$(existStr "Server start up in" "Start") if $ret1; then echo "ret1 is true"else echo "ret1 is false"fi if $ret2; then echo "ret2 is true"else echo "ret2 is false"fi # outputret1 is trueret2 is false