(Week 2 - Day 5) - (2/2)

기본 권한

- umask

- 일반 파일의 경우 생성될 때 권한은 666

- 디렉토리의 경우 생성될 때 권한은 777

- 여기서 얼마만큼 뺄것인가를 지정해주는 것이 umask이다.

- 기본은 002 → 아무나 파일을 쓰게하는걸 막기 위해 기타사용자 권한을 빼버린다.

- 재부팅하면 원래대로 돌아온다.

- `/etc/profile` 에 설정되어 있는것을 볼 수 있다.

  - 여기서 umask설정부분을 보면 199이하의 UID는 umask 022를 할 수 있다.

etc/profile

- 환경 설정 파일

alias

alias df="df -h"

재부팅 시 없어진다.

Prompt

echo $PS1
export PS1="[\u@\h \w]\$"
# PS1변수에는 프롬프트 변수가 들어가 있다. 이걸 export로 변경할 수 있다.

`/etc/profile` 에서 HISTSIZE변수에 회근 몇개까지 저장할 수 있을지 선택할 수 있다. 
저사이즈를 늘리면 더많은 history를 저장할 수 있다. 저장하는 곳은 각 개인 디렉토리의 `.history` 

profile

시스템 전역적인(Global) 설정

1. /etc/profile

쉘과 상관 없는 설정들

2. /etc/bashrc

Bash 쉘을 사용하는 사람들의 설정파일

3. ~/.profile

사용자만의 고유한 설정

4. ~./bashrc

사용자만의 고유한 Bash 설정 파일

 

Global 설정보다 각 개인의 설정이 우선순위가 높다.

(설정 순서가 Global → 개인 설정 이라고 생각하면 같은 설정이 덮어씌워진다라고 생각하면 됨)

 

Zsh

https://ohmyz.sh/

 

Oh My Zsh - a delightful & open source framework for Zsh

Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with several helpful functions, helpers, plugins, themes, and a few things that make you shout... OH MY ZSH!

ohmyz.sh

sudo yum install zsh git

zsh와 git을 설치하고 위 사이트에서 다운 받는다.

https://github.com/zsh-users/zsh-autosuggestions

 

GitHub - zsh-users/zsh-autosuggestions: Fish-like autosuggestions for zsh

Fish-like autosuggestions for zsh. Contribute to zsh-users/zsh-autosuggestions development by creating an account on GitHub.

github.com

https://github.com/zsh-users/zsh-syntax-highlighting

 

GitHub - zsh-users/zsh-syntax-highlighting: Fish shell like syntax highlighting for Zsh.

Fish shell like syntax highlighting for Zsh. Contribute to zsh-users/zsh-syntax-highlighting development by creating an account on GitHub.

github.com

autosuggestion → 기록을 만들어주고 코드를 예쁘게 만들어준다.

 

https://github.com/romkatv/powerlevel10k

 

GitHub - romkatv/powerlevel10k: A Zsh theme

A Zsh theme. Contribute to romkatv/powerlevel10k development by creating an account on GitHub.

github.com

power level 10k를 많이 사용한다

 

https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k

 

GitHub - romkatv/powerlevel10k: A Zsh theme

A Zsh theme. Contribute to romkatv/powerlevel10k development by creating an account on GitHub.

github.com

nerd font → 여러 이모지 →mesloLGS가 가장 유명하다.

 

https://www.thewindowsclub.com/change-font-size-for-a-windows-terminal

 

How to change font size and font weight for a Windows Terminal profile in Windows 10

If you want to change font size & font weight for a Windows Terminal profile in Windows 10, then this post will show you how to do it.

www.thewindowsclub.com

윈도우에서 nerd font 적용

 

VIM

vimtutor ko

복사했습니다!