본문 바로가기

IT875

부트스트랩(Bootstrap)이란? 부트스트랩(Bootstrap)은 Twitter에서 개발된 오픈소스 프론트엔드 프레임워크입니다. 웹사이트 및 웹 애플리케이션 개발을 빠르고 쉽게 할 수 있도록 도와줍니다. 부트스트랩은 HTML, CSS 및 JavaScript를 사용하여 웹사이트 및 웹 애플리케이션을 개발하는데 필요한 다양한 구성요소와 도구를 제공합니다. 이를테면, 버튼, 폼, 타이포그래피, 네비게이션, 모달, 알림 등을 간단한 클래스를 이용해 빠르게 구현할 수 있습니다. 또한, 반응형 웹 디자인을 지원하여 모바일 기기에서도 적합한 레이아웃으로 웹사이트를 표시할 수 있습니다. 부트스트랩은 다양한 테마와 플러그인도 제공하므로, 개발자는 웹사이트의 디자인과 기능을 확장하거나 변경하기 쉽습니다. 또한, 부트스트랩은 대부분의 최신 브라우저와 호환되.. 2023. 3. 30.
리눅스 tr 명령어 사용 방법 리눅스 tr 명령어는 입력받은 내용을 변경하거나 삭제할 수 있습니다. 입력한 원본 파일의 내용은 변경되지 않습니다. 사용법 user@user-virtual-machine:~$ cat greeting.txt hello 123 HELLO 123 user@user-virtual-machine:~$ cat greeting.txt | tr e a hallo 123 HELLO 123 원하는 문자로 변환할 수 있습니다. user@user-virtual-machine:~$ cat greeting.txt | tr a-z A-Z HELLO 123 HELLO 123 user@user-virtual-machine:~$ cat greeting.txt | tr A-Z a-z hello 123 hello 123 소문자(a-z)를 .. 2023. 3. 29.
리눅스 파이프(pipe) 명령어 리눅스 파이프 명령어는 명령어들을 연결 시켜주는 용도로 사용 됩니다. 앞의 명령어의 출력이 뒤의 명령어의 입력으로 전달이 됩니다. 사용법 user@user-virtual-machine:~$ date 2023. 03. 29. (수) 17:00:12 KST user@user-virtual-machine:~$ date | rev TSK 81:00:71 )수( .92 .30 .3202 rev는 거꾸로 출력하는 명령어 입니다. date 명령어의 출력을 파이프(|)로 입력을 받아서 화면에 출력 됩니다. 2023. 3. 29.
리눅스 표준 출력과 표준 에러를 한 파일에 리다이렉션 하기 리눅스에서 표준 출력과 표준 에러를 한 파일에 리다이렉션 할 수 있습니다. 명령어에 이상이 없다면 표준 출력이 작동해서 결과가 파일에 출력 될 것이고 명령어에 이상이 있다면 표준 에러가 작동해서 에러 메시지가 파일에 출력 될 것입니다. 첫 번째 방법 user@user-virtual-machine:~$ ls -l > output.txt 2> output.txt user@user-virtual-machine:~$ cat output.txt total 36 drwxr-xr-x 2 user user 4096 2월 8 21:04 Desktop drwxr-xr-x 2 user user 4096 2월 8 21:04 Documents drwxr-xr-x 2 user user 4096 2월 8 21:04 Download.. 2023. 3. 28.
리눅스 표준 에러의 리다이렉션 리눅스에서 명령어가 제대로 작동될 때는 어떠한 메시지도 나오지 않고 에러가 발생했을 때는 에러 메시지가 화면에 출력이 되는데 리다이렉션 기능으로 에러 메시지를 파일에 출력할 수 있습니다. 사용법 ser@user-virtual-machine:~$ cat test.txt cat: test.txt: No such file or directory user@user-virtual-machine:~$ cat test.txt 2> error.txt user@user-virtual-machine:~$ cat error.txt cat: test.txt: No such file or directory user@user-virtual-machine:~$ cat test.txt 2>> error.txt user@user-vi.. 2023. 3. 28.
리눅스 표준 입력과 출력을 동시에 리다이렉션 하기 리눅스에서 표준 입력은 키보드로 입력하는 것을 의미하며, 표준 출력은 모니터로 출력 되는 것을 의미합니다. 리다이렉션 기능은 입력과 출력의 대상을 파일로 변경하는 것을 의미하며, 입력과 출력을 동시에 리다이렉션 할 수 있습니다. 사용법 user@user-virtual-machine:~$ cat greeting.txt hello hi user@user-virtual-machine:~$ cat result.txt user@user-virtual-machine:~$ cat result.txt hello hi user@user-virtual-machine:~$ cat > result.txt user@user-virtual-machine:~$ cat re.. 2023. 3. 28.
리눅스 표준 입력의 리다이렉션(redirection) 리눅스 리다이렉션 기능을 사용하면 키보드로 입력받아야 하는 내용을 파일의 내용으로 입력받을 수 있습니다. 사용법 user@user-virtual-machine:~$ cat hello world user@user-virtual-machine:~$ cat greeting.txt hello hi user@user-virtual-machine:~$ cat < greeting.txt hello hi cat 명령어를 사용할 때 파일명을 사용하지 않으면 키보드로 입력을 받을 수 있습니다. 2023. 3. 27.
리눅스 표준 출력의 리다이렉션(redirection) 리다이렉션 기능은 화면에 출력 되는 내용을 파일에 출력을 할 수 있습니다. 파일에 출력을 하면 명령어의 출력 결과가 파일에 저장이 되면서 생성이 됩니다. 사용법 user@user-virtual-machine:~$ echo "hello" > greeting.txt user@user-virtual-machine:~$ cat greeting.txt hello user@user-virtual-machine:~$ echo "hi" > greeting.txt user@user-virtual-machine:~$ cat greeting.txt hi >를 사용하면 파일이 없을 때 생성되면서 내용이 저장되지만 파일이 있을 때는 내용을 덮어쓰게 됩니다. user@user-virtual-machine:~$ echo "hell.. 2023. 3. 27.