모의해킹/처음 배우는 셸 스크립트2 [처음 배우는 셸 스크립트] 셸 스크립트 기초 1. 셸 스크립트 만들기 셸 스크립트 만들기 셸 스크립트는 일반적으로 .sh 확장자를 사용한다. 셸 스크립트는 vi 에디터를 사용하여 파일을 생성한다. 셸 스크립트는 시작 시 #!/bin/bash 를 붙여 해당파일이 셸 스크립트라는 것을 알려준다. [실습] myshell.sh 생성 # vi myshell.sh #!/bin/bash echo "hello world" 셸 스크립트 실행 방법 [실습] 1. sh 명령어 사용 # sh mysell.sh 2. chmod 명령어 사용 chmod: 파일에 실행권한(+x)을 주는 명령어 # chmod +x myshell.sh # ./myshell.sh 처음에는 파일 사용권한이 -rw-r--r-- 이고, chmod로 권한을 주면 -rwxr-xr-x로 변경된다. 그러므로 .. 2021. 11. 5. [처음 배우는 셸 스크립트] VMware에서 CentOS 8(Linux) 실습환경 만들기 CentOS ISO 파일 다운로드 url: https://www.centos.org/download/ Download As you download and use CentOS Linux or CentOS Stream (What's the difference?), the CentOS Project invites you to be a part of the community as a contributor. There are many ways to contribute to the project, from documentation, QA, and testing to coding c www.centos.org 1. 홈페이지 접속 → x86_64 2. 믿을 수 있는 회사가 올린 주소로 들어간다. 이번에는 카이스트를 한.. 2021. 11. 4. 이전 1 다음