11월, 2021의 게시물 표시

vim setup (vimrc)

- 기본 설정 set ts=4 set tabstop=4 set shiftwidth=4 set expandtab set autoindent set hlsearch syntax on colors ron

linux command

1) 방화벽 disable  systemctl stop firewalld 2) 방화벽 부팅시 실행 disable systemctl disable firewalld 3) 방화벽 등록된 리스트 출력 firewall-cmd --list-ports 4) online copy (scp: secure copy) : local -> remote scp file1 root@192.168.0.1:/root/data scp -r folder1 root@192.168.0.1:/root/data : remote -> local scp root@192.168.0.1:/root/data /root

git command

1) git 데이터 받기 (일반) git clone [URL]  2) git 데이터 받기 (branch) git clone -b [branch name] --single-branch [URL]  3) git 데이터 올리기 (branch) ; 새로 생성된 파일 올리기 git add .  ; 현재 상태 확인 git status ; local 에 commit 하기 git commit -a -m "description" ; git repository 에 연결하기 git remote add [link name] [url] ; git repository 로 실제 올리기 git push [link name] [branch name] 4) git 데이터 지우기 (branch) ; 파일 지우기  git rm -r [folder name]  ; local 에 commit 하기 git commit -a -m "description" ; git repository 로 실제 올리기 git push [link name] [branch name]