전체 글 (268) 썸네일형 리스트형 TOP 명령어 정렬 개요 top 명령어에서 cpu,memory등 사용량에 따라 정렬하는 방법 1. top 명령어에서 SHIFT+F 입력 Fields Management for window 1:Def, whose current sort field is %CPU Navigate with Up/Dn, Right selects for move then or Left commits, 'd' or toggles display, 's' sets sort. Use 'q' or to end! * PID = Process Id PGRP = Process Group OOMs = OOMEM Score c * USER = Effective Use TTY = Controlling T ENVIRON = Environment v * PR = Prior.. Openssh 서버 ACL 설정 개요 redhat 8 버전 부터는 tcp wrapper를 지원하지 않는 대신 openssh의 Match를 이용하여 특정 IP에 대해 ACL을 설정할수 있다. 1. sshd_config 파일 수정 예) 192.168.0.1 에 대해서만 접속을 허용하고 그외에는 모든 접속 차단 Match Address 192.168.0.1 MaxAuthTries 3 Match Address * MaxAuthTries 0 2. sshd 서비스 재시작 # systemctl restart sshd 3. 결과 $ ssh root@192.168.0.172 Received disconnect from 192.168.0.172 port 22:2: Too many authentication failures Disconnected from.. [Solaris] /tmp 파일시스템 크기 조정 1. 동적 조정 mount -F tmpfs -o remount,size=1024m swap /tmp 2. /etc/vfstab(영구설정) default) #swap - /tmp tmpfs - yes - 수정 swap - /tmp tmpfs - yes size=1024m - #(주석)제거 - 옵션 필드에 size=XXXm 크기 지정(메가단위로 지정) 참조 https://docs.oracle.com/cd/E36784_01/html/E36837/tmpfs-limit-1.html How to Limit the Size of the tmpfs File System - Oracle® Solaris 11 Security Guidelines How to Limit the Size of the tmpfs File Sys.. solaris 10 / 11 패키지 관리 명령어 개요 1. 파일이 속해 있는 패키지 1.1 solaris 10 syntax) pkgchk -l -p > pkgchk -l -p /usr/sbin/dtrace 1.2 solaris 11 syntax) pkg search -Hlo pkg.name > pkg search -Hlo pkg.name /usr/sbin/dtrace 2. 패키지에 포함된 파일 2.1 solaris 10 > grep SUNWdtrc /var/sadm/install/contents OR > pkgchk -l SUNWdtrc| grep Pathname 2.2 solaris 11 syntax) pkg contents > pkg contents system/dtrace 3. 패키지 정보 3.1 solaris 10 > pkginfo -l 3.2.. WinRM - HTTPS Listener 구성 1.Listener 확인 및 삭제 > winrm enumerate winrm/config/listener > winrm delete winrm/config/Listener?Address=*+Transport=HTTPS 2.인증서 생성 > New-SelfSignedCertificate -CertstoreLocation Cert:\LocalMachine\My -DnsName $env:COMPUTERNAME thumbprint 확인 3.HTTPS Listener 생성 > winrm create winrm/config/Listener?Address=*+Transport=HTTPS '@{Hostname=“"; CertificateThumbprint=“"}' 4.방화벽 정책 추가 및 Windows Remote Ma.. PowerShell을 이용하여 자동로그인 및 명령어 실행 아래는 login.txt 파일에서 사용자 정보를 읽은후 doit.ps1 스크리트에서 각 서버에 접속하여 hostname 및 volume 정보를 가져오는 예이다 1. login.txt 192.168.0.100 Administrator adminPassword 192.168.0.101 Administrator adminP@ssw0rd 2. 실행스크립트 doit.ps1 $LINECOUNT = (gc .\login.txt).count $IP = Get-Content .\login.txt | %{ $_.split(" ")[0];} $USER = Get-Content .\login.txt | %{ $_.split(" ")[1];} $PW = Get-Content .\login.txt | %{ $_.split(" ".. 윈도우 가상 메모리 계산 1. systeminfo 로 확인한 윈도우 가상 메모리 2. pagefile 크기( C:\pagefile.sys ) 3. 작업관리자 4. 가상메모리 Total Phisical Memory: 전체 물리 메모리 크기 Available Phisical Memory: 여유 물리 메모리 크기(작업 관리자의 Available) Virtual Memory: Max Size : Total Phisical Memory + pagefiles.sys 크기 Virtual Memory: Available: (Virtual Memory: Max Size) - (Virtual Memory: In Use) Virtual Memory: In Use: phiscal memory 사용량(작업관리자 In Use) + pagefile 사용량.. 윈도우 초기 설치후 핸들(handle) 수 1. Windows Server 2012 R2 2. Windows 10 (22H2) 이전 1 2 3 4 5 ··· 34 다음 목록 더보기