분류 전체보기 썸네일형 리스트형 [GIT] 깃 브랜치(git branch) 생성, 삭제 git branch 생성, 삭제 로컬 branch 생성(Deployment environment) git branch [] (-c | -C) [] git checkout -b "testing" $ git checkout -b "testing" Switched to a new branch 'testing' $ git checkout -b "staging" Switched to a new branch 'staging' branch 확인(현재 branch) git branch --list git branch $ git branch -- dev master testing * staging --- 로컬 branch 이름 변경(dev -> development) git branch [] (-m | -M) [] gi.. 더보기 CentOS 8에서 CentOS Stream으로 마이그레이션하는 방법 CentOS 8에서 CentOS Stream으로 마이그레이션하는 방법 CentOS Stream은 CentOS 8의 후속 버전이므로 변경 사항을 이해하고 유의해야 합니다. 참고: CentOS Stream은 CentOS 8의 릴리스와 다르며, 특정 사용 사례에 대해 더 많은 업데이트와 변화를 가져옵니다. 이 마이그레이션은 필요에 따라 주의깊게 고려해야 합니다. 테스트 환경 운영 체제 버전 정보 $ cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core) 커널 버전 $ uname -r 4.18.0-147.el8.x86_64 gcc 버전 $ gcc --version gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5) Copyright .. 더보기 CentOS 8 Stream 설치(CentOS 8 스트림 설치) CentOS 8 Stream 설치(CentOS 8 스트림 설치) iso 다운로드 download URL : https://www.centos.org/download ISO Download URL http://mirror.kakao.com/centos/8-stream/isos/x86_64/CentOS-Stream-8-x86_64-20210120-dvd1.iso Oracle VirtualBox에 VM 생성 download URL : https://www.virtualbox.org CentOS Stream 설치 - Keyboard : 한국어 - 언어 지원 : 한국어, English - 시간 및 날짜 : 아시아/서울 - 소프트웨어 선택 : 최소 설치(표준, 레거시 UNIX 호환성, 개발용 툴) - 설치 대상 :.. 더보기 compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask 에러 compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask 에러 $ source .zshrc compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask 무슨 에러일까요? /usr/local/share/zsh/site-functions/_brew_cask 디렉토리가 있는데... $ ls -l /usr/local/share/zsh/site-functions/_brew_cask lrwxr-xr-x 1 user1 admin 44 8 15 2018 /usr/local/share/zsh/site-functions/_bre.. 더보기 CentOS 7에서 Terraform을 설치하는 방법 CentOS 7에서 Terraform을 설치하는 방법 yum install -y yum-utils yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo yum install -y terraform terraform -version $ terraform -version Terraform v0.14.5 terraform 사용 방법 $ terraform -help Usage: terraform [global options] [args] The available commands for execution are listed below. The primary workflow commands are given first.. 더보기 tput 명령어 tput 명령어 tput 명령어는 터미널과 화면의 속성을 제어하는 유틸리티입니다. 이 명령어를 사용하면 터미널 환경을 제어하고 터미널에서 출력되는 텍스트의 색상, 스타일, 위치 등을 변경할 수 있습니다. 주로 스크립트나 환경 설정 파일에서 사용되며, 터미널 환경을 사용자 지정하거나 스크립트에서 시각적인 요소를 변경할 때 유용합니다. 설치 tput은 일반적으로 대부분의 Unix 및 Linux 시스템에 기본적으로 설치되어 있습니다. 기본 구문 tput [옵션] [인수] 주요 옵션 및 사용 예시 1. tput clear 현재 터미널 화면을 지웁니다. tput clear 2. tput sgr0 모든 속성을 초기화하고 텍스트를 일반 스타일로 돌립니다. tput sgr0 3. tput setaf 텍스트의 전경(글자.. 더보기 [shell] bash colors bash colors 스크립트 편집 vim z.sh $ vim z.sh #!/bin/bash color_reset=$(tput sgr0) color_red=$(tput setaf 1) color_blue=$(tput setaf 4) echo "${color_red}sangchul.kr${color_reset}" echo "${color_blue}sangchul.kr${color_reset}" 스크립트 실행 결과 sh z.sh tput 명령어 사용 echo "블로거 `tput setaf 1`sangchul.kr`tput sgr0`." bash 프로파일에 등록하여 컬러 사용하기 vim .bashrc $ vim .bashrc RED="\033[0;31m" PINK="\033[1;31m" YELLOW="\033.. 더보기 리눅스에서 패스워드를 변경하는 스크립트 리눅스에서 패스워드를 변경하는 스크립트 pwch.sh 스크립트 생성 vim pwch.sh #!/bin/bash # 색상 정의 CYAN='\033[0;36m' RED='\033[0;31m' GREEN='\033[0;32m' NC='\033[0m' # 현재 시스템의 공인 IP 주소 가져오기 MyIP=$(dig @resolver1.opendns.com myip.opendns.com +short) # IP 주소를 네트워크 ID와 호스트 ID로 분리 NetworkID=$(echo $MyIP | cut -d . -f1-3) HostID=$(echo $MyIP | cut -d . -f4) # 패스워드를 설정할 사용자 목록 userlist=$@ # 사용자별 초기 패스워드 설정 함수 function set_passwor.. 더보기 이전 1 ··· 200 201 202 203 204 205 206 ··· 311 다음