본문 바로가기

반응형

리눅스

우분투에서 기본 텍스트 편집기를 변경하는 방법(ubuntu editor) 우분투에서 기본 텍스트 편집기를 변경하는 방법(ubuntu editor)update-alternatives 명령어는 Debian 계열의 Linux 시스템에서 여러 프로그램 간에 대안을 선택하거나 설정하는데 사용됩니다. 주로 여러 버전의 소프트웨어를 시스템에 설치할 때 유용하게 활용됩니다.기본 텍스트 편집기 변경(vim.basic)update-alternatives --config editor$ sudo update-alternatives --config editor대체 항목 editor에 대해 (/usr/bin/editor 제공) 4개 선택이 있습니다. 선택 경로 우선순위 상태----------------------------------------------------.. 더보기
리눅스 history 명령어 history 명령어 Bash History 설정 cat /etc/profile ## history export HISTSIZE=10000 export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S ' #export HISTCONTROL=erasedups EOF Print ‘n’ Lines history 2 $ history 2 919 2021-01-28 21:20:43 echo "history command" 920 2021-01-28 21:20:59 history 2 Repeat Specific Command !번호 $ !917 echo "history command" history command Repeat Most Recent Command !! $ !! echo "history c.. 더보기
[GIT] 깃 태그(git tag) 생성, 삭제 깃 태그(git tag) 생성, 삭제 태그 생성 방법 - Lightweight 태그 git tag v1.1.1 $ git tag v1.1.1 $ git show v1.1.1 commit e178f0c017bfba73cdc35c08b532d3cbf608c494 (HEAD -> development, tag: v1.1.1, origin/testing, origin/development) Author: sangchul Date: Wed Jan 27 10:42:15 2021 +0900 branch 추가 diff --git a/README.md b/README.md index e69de29..38f8e88 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +dev di.. 더보기
[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 호환성, 개발용 툴) - 설치 대상 :.. 더보기
tput 명령어 tput 명령어 tput 명령어는 터미널과 화면의 속성을 제어하는 유틸리티입니다. 이 명령어를 사용하면 터미널 환경을 제어하고 터미널에서 출력되는 텍스트의 색상, 스타일, 위치 등을 변경할 수 있습니다. 주로 스크립트나 환경 설정 파일에서 사용되며, 터미널 환경을 사용자 지정하거나 스크립트에서 시각적인 요소를 변경할 때 유용합니다. 설치 tput은 일반적으로 대부분의 Unix 및 Linux 시스템에 기본적으로 설치되어 있습니다. 기본 구문 tput [옵션] [인수] 주요 옵션 및 사용 예시 1. tput clear 현재 터미널 화면을 지웁니다. tput clear 2. tput sgr0 모든 속성을 초기화하고 텍스트를 일반 스타일로 돌립니다. tput sgr0 3. tput setaf 텍스트의 전경(글자.. 더보기
git clone 디렉토리 지정 및 변경 방법 git clone 디렉토리 지정 및 변경 방법git clone 명령어로 저장소를 복제할 때 복제된 디렉토리 경로를 지정하거나 변경할 수 있습니다.1. 디렉토리를 미리 생성하고 복제하기mkdir my_projectcd my_projectgit clone 2. 복제 시 바로 디렉토리 이름 지정하기git clone 명령어에서 목적지 디렉토리 이름을 직접 지정할 수 있습니다.git clone git cloen https://github.com/anti1346/project1.git projectCloning into 'project'...remote: Enumerating objects: 64, done.remote: Counting objects: 100% (64/64), done.remote: Compre.. 더보기

반응형