시스템 프로그래밍(5)
-
5. permission commands
-id : display user identity -chmod : change a file’s mode -umask : set the default file permissions -su : run a shell as another user -sudo : execute a command as another user -chown : change a file’s owner -chgrp : change a file’s group ownership -passwd : change a user’s password > user hierarchy : superuser→group→user 1. security level : system, dir, file 1) system security : controlled by su..
2023.03.21 -
4. directory commands
-ls (list directory contents) -file (determine file type) -cp (copy files and directories) -mv (move/rename files and directories) -mkdir (create directories) -rm (remove files and directories) -ln (create hard and symbolic links) 1. filename : 알파벳, 숫자, -, _, . 사용가능 but, /는 불가능 ex) C, .secrete ->it’s ok /test ->it’s not ok 1) wildcard (?, [], *) ? : a single char ex)c?=c3,ca [] : a sing char wit..
2023.03.21 -
3. vi mode
- 왜 vi mode 사용하는가? : powerful, lightweight, fast - 동작? : start(vi file_name) 하면 command mode로 시작된다. text mode로 들어가기 위해서 i/I, a/A, o/O로 type하면된다. esc를 눌러 다시 command mode로 들어갈 수 있다. :를 이용하여 last-line mode로 들어가 w,wq,q,q!로 vi동작을 stop할 수 있다. 1. start $ vi file_name 2. finish :q (아무작업을 하지 않았으면 그냥 종료) :q! (저장하지 않고 종료) :w (현재파일이름으로 저장) :w file_name :wq (저장하고 종료) :wq file_name 3. text comman..
2023.03.21 -
2. commands
1. computer system : hardware + software(system, application) (components : input + output + processing unit + storage) 2. unix : OS(=system software) 1) components of unix : user → shell → utilities/application program → kernel → hardware ① kernel : 컴퓨터의 모든 자원을 초기화하고 제어하는 기능 -core of os -initialize(초기화) and manage the system(resources : devices, memory, processes…) -controls the functions betwe..
2023.03.21 -
1. AWS
- 이전 : 미리 서버 컴퓨터를 구축 - 클라우드 컴퓨팅 : 서버 환경을 미리 구축해놓고, 간단한 설정으로 바로 사용할 수 있도록 만든 서비스 - instance : EC2(컴퓨터) server 1. Instance 생성 2. AMI(amazon machine image) 선택 3. Instance type 4. storage 5. key pair 생성 6. 완료 - IP주소 : 서버 컴퓨터를 접속하려면 서버 컴퓨터 주소가 필요한데, 이때 주소 -> 나만의 고정 IP (바뀌지 않는 IP)로 바꾸기 1. 메뉴: 네트워크 -> 탄력적 IP 2. 탄력적 IP 주소 할당 3. 할당 4. 현재 IP주소 체크 -> 작업: 탄력적 IP 주소 연결 : instance와 IP주소 연결시키기 5. in..
2023.03.21