Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Chrony
- vrrp
- GLBP
- Inter VLAN
- ipv6
- rip
- ospfv3
- CKA
- DHCP
- 스위치
- NAT
- ripng
- 헤더
- ACL
- eigrp
- crontab
- stp
- Vlan
- eigrpv2
- 명령어
- 라우터
- 장비
- Etherchannel
- OSPF
- Redistribute
- tunneling
- OSI 7 layer
Archives
- Today
- Total
Net Eng
Linux 기본 명령어 본문
■ Power OFF
# poweroff
# halt
# init 0 /* 0: Runlevel 0 = Power Off */**
# shutdown -h now /* -h: halt */
■ Reboot
# reboot
# init 6 /* 6: Runlevel 6 = reboot */
# shutdown -r now /* -r: reboot */
■ UI Setting
TUI(Text User Interface)
CLI(Command Line Interface)
→ Runlevel 3
→ multi-user.target
==============================
GUI(Graphic User Interface)
→ Runlvel 5
→ graphical.target
■ 전환 방법
현재 적용
# systemctl isolate multi-user.target|graphical.target
부팅 적용
# systemctl set-default multi-user.target|graphical.target
■ 상태 확인
현재 상태
# who -r
부팅 상태
# systemctl get-default
■ 언어 변경
(임시)
# export LANG=ko_KR.UTF-8
# gnome-tweaks
# export LANG=en_US.UTF-8
# gnome-tweaks
(영구)
# localectl (# echo $LANG, # locale)
# localectl set-locale LANG=en_US.UTF-8|ko_KR.UTF-8
■ PS1 변수 설정
- PS1 변수: "쉘 프롬프트"를 정의할 때 사용하는 변수
# echo $PS1
[\u@\h \W]\$ -> [root@linux249 ~]#
# man bash
/PROMPTING
------------------------
\u : username
\h : hostname
\W : working directory
\$ : if uid == 0 : #
else uid !=0 : $
------------------------
# PS1='a '
# PS1='[\u@\h \w]\$ ' /* 쉘프롬프트에 $PWD 변수 넣음 */
# gedit ~/.bashrc
--------------------------------------------------------------
..... (중략) .....
#
# Sfecific Configuration
#
export PS1='[\u@\h \w]\$ '
---------------------------------------------------------------
# . ~/.bashrc (# source ~/.bashrc)
# echo $PS1
■ PS1 색깔 설정
프롬프트 색깔 표
31 : 빨간색
32 : 초록색
33 : 갈색
34 : 파랑색
35 : 보라색
36 : 청록색
PS1 프롬프트 설정 예제
export PS1=**'**\[\e[**32**;1m\]**[\u@\h**\[\e[**33**;1m\] **\w]\$** \[\e[m\] **'**
■ ~/.bashrc 설정
#
# Sfecific configuration
#
export PS1='\[\e[32;1m\][\u@\h\[\e[33;1m\] \w]\$ \[\e[m\]'
■ 언어 변경
언어 지정 변수
- ko_KR.UTF-8 : 한국어
- en_US.UTF-8 : 영어
(임시)
# export LANG=ko_KR.UTF-8
# gnome-tweaks
# export LANG=en_US.UTF-8
# gnome-tweaks
(영구) !!! (주의) 스펠링 주의 !!!
# localectl (# echo $LANG, # locale)
# localectl set-locale LANG=en_US.UTF-8|ko_KR.UTF-8
'Linux' 카테고리의 다른 글
Chrony 명령어 (0) | 2024.06.18 |
---|---|
GPT 검색 명령어 정리 (0) | 2024.06.05 |
Graylog 서버 구축 (0) | 2024.06.05 |
RPM 패키징 (0) | 2024.06.05 |
RAID 구축과 장애 조치 (0) | 2024.06.05 |