반응형
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 | 29 | 30 |
Tags
- python
- 알고리즘
- Easy
- Spark
- ELK
- programmers
- 해시
- 장고
- 파이썬
- AWS
- CentOS
- leetcode
- dump
- RecommendationSystem
- daspecialty
- 리트코드
- Django
- 깊이우선탐색
- solution
- Algorithm
- 프로그래머스
- kibana
- twosum
- Optimization
- 스파크
- 키바나
- 엘라스틱서치
- Medium
- dfs
- elasticsearch
Archives
- Today
- Total
Archive
[Linux][Solution] 터미널에서 명령어 못찾을 때 (command not found except cd) 본문
------- CS -------/OS
[Linux][Solution] 터미널에서 명령어 못찾을 때 (command not found except cd)
enent 2021. 7. 10. 12:36반응형
Enviornment : CentOS 7.8
Problem)
환경변수 설정을 잘못 입력한 후 source 명령어를 통해 적용시키면 터미널에서 명령어를 못찾는 문제가 발생한다
Solution)
아래 명령어처럼 실행관련 경로를 임시로 PATH로 설정해줌으로서 다시 접근할 수 있다.
export PATH=%PATH:/bin:/usr/local/bin:/usr/bin
이후 다시 환경변수를 설정해주면 정상작동한다
CentOS의 경우 /etc/profile 을 다시 수정하고, source /etc/profile을 통해 올바르게 재 적용 시켜준다.
https://unix.stackexchange.com/questions/302743/centos-7-all-command-not-found-except-cd
반응형
'------- CS ------- > OS' 카테고리의 다른 글
[Mac][Solution] Mac Iterm2 명령어 작동하지 않을 때 (ls: .: Operation not permitted) (0) | 2022.05.02 |
---|---|
[Mac] 맥에서 우분투(Ubuntu) 부팅usb 만들기 (0) | 2020.10.29 |
Comments