본문 바로가기

반응형

Linux

C276x260 리눅스 mkpasswd 명령어 mkpasswd 명령어 mkpasswd 명령은 사용자의 암호를 해시로 변환하는 데 사용되는 유틸리티입니다. 일반적으로 Linux 시스템에서 사용자의 비밀번호를 생성 또는 변경할 때 사용됩니다. mkpasswd 명령은 다양한 해시 알고리즘을 지원하며, 각 알고리즘에 따라 다른 형식의 해시를 생성할 수 있습니다. $ mkpasswd -bash: mkpasswd: command not found whois 패키지 설치(mkpasswd 명령) yum install -y whois $ which mkpasswd /usr/bin/mkpasswd mkpasswd 명령어 구문 $ mkpasswd --help Usage: mkpasswd [OPTIONS]... [PASSWORD [SALT]] Crypts the PASS.. 더보기
C276x260 bind cache(rndc dumpdb) Cache 확인하기rndc dumpdb [-all|-cache|-zones]rndc dumpdb –all : cache에 있는 모든 내용를 dump파일로 저장.rndc dumpdb –cache : cache에 있는 recursive 쿼리 정보 dump 파일로 저장rndc dumpdb –zones : cache에 있는 보유 도메인 정보 dump파일로 저장cache에 있는 내용 확인하기rndc dumpdbrndc dumpdb 명령어를 입력하면 /etc/named.conf >> dump-file 경로에 cache_dump.db파일이 생성된다. 이 파일를 edit로 파일 내용을 확인하면 됩니다.cache 내용 삭제하기rndc flush* DNS Cache 란 DNS 서버에 대한 반복적인 DNS 쿼리를 수행하지 .. 더보기
C276x260 [리눅스] OpenSSL을 사용하여 RSA 키를 생성하는 방법 OpenSSL을 사용하여 RSA 키를 생성하는 방법 1) 개인키 생성 openssl genrsa -out openssl_rsa_1024.key -rand /dev/urandom 1024 $ openssl genrsa -out openssl_rsa_1024.key -rand /dev/urandom 1024 2048 semi-random bytes loaded Generating RSA private key, 1024 bit long modulus ..........++++++ ...........++++++ e is 65537 (0x10001) 2) 공개키 생성 openssl rsa -inform PEM -outform PEM -in openssl_rsa_1024.key -out openssl rsa -i.. 더보기
C276x260 [리눅스] 우분투에서 sudo를 비밀번호 없이 사용하는 방법 우분투에서 sudo를 비밀번호 없이 사용하는 방법 Ubuntu에서 sudo를 비밀번호 없이 사용하려면 다음과 같은 절차를 따르십시오. 이러한 변경은 시스템의 보안에 영향을 미치므로 주의해야 합니다. 비밀번호 없이 sudo를 사용하는 것은 권장되지 않습니다. 가능한 경우에는 사용자에게 sudo 권한을 부여하고 비밀번호를 요구하는 것이 보안상 좋습니다. 그러나 특정 상황에서 임시로 사용할 수 있습니다. 1. 터미널을 엽니다. 2. sudo visudo 명령을 입력하여 sudo 설정 파일(/etc/sudoers)을 엽니다. 이 명령은 root 권한으로 실행되어야 합니다. visudo $ visudo # # This file MUST be edited with the 'visudo' command as root.. 더보기
C276x260 How to Install Webalizer on CentOS 8 How to Install Webalizer on CentOS 8To install Webalizer on CentOS 8, you can follow these steps1. Update the systemsudo dnf update2. Install the EPEL repositoryWebalizer is available in the EPEL repository. Install the EPEL repository by running the following command:sudo dnf install epel-release3. Install WebalizerOnce the EPEL repository is installed, you can install Webalizer using the follo.. 더보기
C276x260 vixie-cron 패키지 vixie-cron 패키지 vixie-cron은 Unix와 Unix-like 운영 체제에서 사용되는 cron(크론) 데몬의 한 구현체로, Paul Vixie가 개발한 것으로 유명합니다. 크론(cron)은 주기적으로 반복되거나 특정 시간에 특정 작업을 자동으로 실행할 수 있도록 하는 시간 기반 작업 스케줄러입니다. 사용 방법 1. 크론 데몬 설치 확인 Vixie-cron은 대부분의 Unix 기반 시스템에서 기본으로 설치되어 있으며, 대부분의 경우 별도로 설치할 필요가 없습니다. 그러나 데몬이 설치되지 않은 경우 패키지 관리자를 사용하여 설치해야 합니다. 2. 크론 데몬 시작 또는 재시작 일반적으로 크론 데몬은 시스템 부팅 시 자동으로 시작됩니다. 하지만 수동으로 크론 데몬을 시작하거나 재시작해야 하는 경우.. 더보기
C276x260 How to install and use stress How to install and use stressStress is a command-line tool that can be used to stress test a system by generating a workload on the CPU, memory, and I/O. It is a useful tool for testing the performance of a system under load, and can also be used to troubleshoot performance problems. To install stress, you can use the following command:sudo apt install stressOnce stress is installed, you can use.. 더보기
C276x260 ifconfig 명령어 ifconfig 명령어 ifconfig 명령어는 네트워크 인터페이스의 정보를 확인하고 구성하는 데 사용되는 유닉스 및 Linux 명령어입니다. 네트워크 인터페이스의 IP 주소, 넷마스크, 브로드캐스트 주소, MAC 주소 등을 표시할 수 있습니다. net-tools 패키지 설치 sudo yum install -y net-tools 기본 구문 ifconfig [옵션] [인터페이스] -a 또는 --all: 모든 인터페이스 정보를 표시합니다. 인터페이스: 지정된 네트워크 인터페이스에 대한 정보를 표시합니다. 예를 들어, eth0, wlan0과 같은 인터페이스명을 사용할 수 있습니다. 인터페이스명을 지정하지 않으면 모든 인터페이스의 정보가 표시됩니다. 주요 옵션 up: 지정된 네트워크 인터페이스를 활성화합니다. .. 더보기

728x90
반응형