리눅스 썸네일형 리스트형 gzip 명령어, gunzip 명령어 gzip 명령어, gunzip 명령어gzip과 gunzip은 유닉스(리눅스) 시스템에서 사용되는 명령어로 파일들을 압축하거나 해제하는데 사용됩니다. gzip은 파일을 압축하고 gunzip은 압축된 파일을 해제합니다.gzip 명령어의 기본 구문gzip [옵션] [파일]gunzip 명령어의 기본 구문gunzip [파일.gz]주요 옵션(gzip)-c: 압축한 파일을 표준 출력으로 출력 (stdout)-d 또는 --decompress: 압축 해제-r 또는 --recursive: 디렉토리를 재귀적으로 압축 또는 해제-v 또는 --verbose: 상세 정보 출력사용 예시파일 file.txt를 압축하여 file.txt.gz로 저장gzip file.txtfile.txt: 압축할 파일file.txt.gz: 압축된 파일압.. 더보기 ssh 접속 시 no matching key exchange method found 에러 ssh 접속 시 no matching key exchange method found 에러 테스트 환경 $ cat /etc/redhat-release CentOS release 5.6 (Final) $ getconf LONG_BIT 32 $ openssl version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 $ ssh -V OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 [에러] Unable to negotiate with 192.168.0.101 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-h.. 더보기 nmap 명령어 nmap 명령어Nmap은 네트워크 스캐닝 및 서비스 탐지 도구로서, 시스템 및 네트워크 보안 테스트 및 관리에 매우 유용한 도구 중 하나입니다. Nmap은 다양한 운영 체제에서 작동하며, 네트워크에서 호스트 및 서비스 정보를 수집할 수 있습니다.nmap 설치centosyum install -y nmapubuntuapt install -y nmapnmap 버전$ nmap -VNmap version 6.40 ( http://nmap.org )Platform: x86_64-redhat-linux-gnuCompiled with: nmap-liblua-5.2.2 openssl-1.0.2k libpcre-8.32 libpcap-1.5.3 nmap-libdnet-1.12 ipv6Compiled without:Avai.. 더보기 curl 명령어로 웹사이트 로딩 속도를 테스트하는 방법 curl 명령어로 웹사이트 로딩 속도를 테스트하는 방법 curl 버전 정보 $ curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets http code 출력 curl -s -o /dev/nul.. 더보기 mkdir 명령어 mkdir 명령어 mkdir 명령어는 Linux 및 UNIX 기반 시스템에서 디렉토리(Directory)를 생성하는 데 사용되는 명령어입니다. mkdir은 Make Directory의 줄임말입니다. 디렉토리는 파일을 그룹화하고 구조화하는 데 사용되며, 파일 시스템 내에서 계층적인 구조를 형성합니다. mkdir 명령어의 기본적인 구문은 다음과 같습니다. mkdir [옵션] 디렉토리명 일반적으로 사용되는 주요 옵션은 다음과 같습니다. -p: 지정된 경로에 디렉토리가 없는 경우, 중간 경로에 존재하지 않는 디렉토리도 함께 생성합니다. 이 옵션을 사용하여 중첩된 디렉토리를 한 번에 생성할 수 있습니다. 예를 들어, docs라는 디렉토리를 생성하려면 다음과 같이 사용합니다. mkdir docs docs 디렉토리가.. 더보기 CentOS 7에서 Supervisor(supervisord 데몬)를 설치하는 방법 CentOS 7에서 Supervisor(supervisord 데몬)를 설치하는 방법 UNIX에서 프로세스 상태 제어를 허용하는 시스템 EPEL 저장소 설치 yum install epel-release Supervisor 설치 supervisor 패키지 설치 yum install -y supervisor supervisor 버전 정보 확인 supervisord --version $ supervisord --version 3.4.0 Supervisor 서비스 시작 및 활성화 systemctl --now enable supervisord $ systemctl status supervisord ● supervisord.service - Process Monitoring and Control Daemon Load.. 더보기 쿠버네티스 실습 환경(플레이그라운드) 쿠버네티스 실습 환경(플레이그라운드)O'Reilly Katacoda homehttps://katacoda.com로그인 필요없음운영체제 : Ubuntu"20.04.2 LTS (Focal Fossa)Play with Kuberneteshttps://labs.play-with-k8s.comdocker 또는 github 로그인 필요운영체제 : CentOS Linux 7 (Core)세션 및 모든 해당 인스턴스는 04:00:00 시간 후에 삭제됩니다. 더보기 도커 컨테이너 터미널 프롬프트(PS1) 색상 변경 도커 컨테이너 터미널 프롬프트(PS1) 색상 변경Dockerfile에서 컨테이너 내에서 사용할 터미널 프롬프트(PS1)를 설정하려면 Dockerfile 내에서 ENV 지시문을 사용하여 PS1 환경 변수를 설정할 수 있습니다. Dockerfile 파일 생성vim DockerfileFROM centos:7LABEL website="sangchul.kr"ENV PS1="\[\e[33m\]\u\[\e[m\]\[\e[37m\]@\[\e[m\]\[\e[34m\]\h\[\e[m\]:\[\033[01;31m\]\W\[\e[m\]$ "RUN echo 'PS1=$PS1' >> ~/.bashrcDocker 이미지 빌드docker build --tag centos-ps1:0.1 .컨테이너 실행docker run -it --r.. 더보기 이전 1 ··· 11 12 13 14 15 16 17 ··· 43 다음