[리눅스] ubuntu 사용하기
1. oracle VM VirtyalBox 다운로드
2. ubuntu (iso) 다운로드
**터미널 에뮬레이터와 셸은 완전히 다른 소프트웨어이니 혼동하면 안 됨
<리눅스 명령어>
$ su
$ sudo apt install bsdmainutils
: whoami = 로그인 유저 네임확인
: cal = 날짜
-: cal 03 2024 = cal 원하는 month 원하는 year
: echo = print
-: echo > *ex)hello.txt 빈 문서 만들기
: ls(LS), dir = 현재 위치한 디렉토리 파일 확인
-: ls -a or -l = -a, -l, -d *, ls h*: 'h'로 시작되는 모든 것(*) 보기
-: ls -al | more // spacebar 누르면 1page씩 넘어감
: pwd = 현재 위치한 디렉토리의 절대경로 표시
일반사용자 : $ <>
슈퍼사용자 : # <>
bash -> sh -> bash :
로그인 셸 -> 별도의 셸(레거시) -> 로그인 셸 변경
[포트 PORT] 보통 SSH : 22 포트 / HTTP : 80 포트 / HTTPS : 443 포트 - 인터넷에 검색하면 해당 포트 번호 서치가능
ipconfig (cmd에서 검색하면 해당 컴퓨터 ip 확인가능)
ip addr (리눅스 cmd에서 검색하면 게스트 ip 확인가능)
sudo apt install openssh-server : 최신 버전으로 업데이트
sudo ufw status : (방화벽 상태 확인가능 = '비활성' 일 시 방화벽 없음)
ssh user@127.0.0.1 -p 22
PuTTY 다운로드 https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Download PuTTY: latest release (0.81)
This page contains download links for the latest released version of PuTTY. Currently this is 0.81, released on 2024-04-15. When new releases come out, this page will update to contain the latest, so this is a good page to bookmark or link to. Alternativel
www.chiark.greenend.org.uk
자동완성기능 : e로 시작하는 명령어 확인 : e하고 TAB 키 / 그외 a~z 가능
명령 이력 확인 : 전 명령 : ctrl + p / ↑