전체 글 (268) 썸네일형 리스트형 SQL Server 용량 확인 1. 데이타베이스 사용량 1.1 sp_spaceused 1.2 데이타베이스 우클릭 > 보고서 > 표준보고서 > 디스크 사용 2. 로그 용량DBCC SQLPERF(LOGSPACE) 3. 데이타베이스 크기sp_helpdb Windows WinSXS 폴더 정리(dism 명령어) 1. WinSxS 폴더 분석dism.exe /Online /Cleanup-Image /AnalyzeComponentStore2. WinSxS 폴더 정리Dism.exe /Online /Cleanup-Image /StartComponentCleanup3. 실행 중인 Windows 10 이상 버전에서 DISM.exe의 /StartComponentCleanup 매개 변수와 함께 /ResetBase 매개 변수를 사용하면 구성 요소 저장소에 있는 모든 구성 요소의 대체된 버전이 모두 제거됩니다Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase ubuntu netplan IP 설정 1. 설정 파일 샘플/etc/netplan/00-installer-config.yamlnetwork: ethernets: ens3: addresses: [192.168.0.90/24] routes: - to: default via: 192.168.0.1 nameservers: addresses: [8.8.8.8] version: 2 2. 적용# sudo netplan apply ssh single command에서 awk 사용법 증상) 아래와 같이 ssh single command 에서 awk 사용시 syntax error 발생, 로컬 상에서는 정상적으로 작동이 됨 ssh root@192.168.219.16 "df -h | grep root | awk '{print $1,$6}' " awk: cmd. line:1: {print ,} awk: cmd. line:1: ^ syntax error awk: cmd. line:1: {print ,} awk: cmd. line:1: ^ syntax error awk: cmd. line:1: {print ,} awk: cmd. line:1: ^ unexpected newline or end of string 방안 1) 커맨드를 " "(쌍따옴표) 가 아닌 ' '(홑따옴표) 로 둘러싸고, awk.. grep, sed 정확하게 일치하는 문자열 다루기 예제 파일: sample.txt 1 banana 1000 2 apple 2000 3 apple2 2000 4 strawberry 3000 5 milk 2500 6 milk2 3500 1. grep 명령어: 단어 양쪽에 \b > grep "\bapple\b" sample.txt 결과 2 apple 2000 2. sed 명령어 > sed 's/\bapple\b/APPLE/' sample.txt 결과 1 banana 1000 2 APPLE 2000 3 apple2 2000 firewall-cmd 명령어 firewalld 는 Redhat 7까지는 백엔드로 iptables, 8버전이후로는 nftables 프레임워크를 사용하여 방화벽 설정한다. 그래서 Redhat 7버전에서 iptables 명령어로 확인하면 firewall-cmd에서 설정한 정보를 확인할수 있으나 Redhat 8 이상 버전에서 iptables로 확인하면 firwall-cmd 에서 설정한 정보가 표시되지 않는다. Redhat 8 이상버전에서는 nftables(nft command) 로 firwalld 설정을 볼수가 있다. [1]. firewall-cmd 서비스 시작 > systemctl start firewalld > systemctl status firewalld [2]. firewall-cmd ZONE 관리 1. Default Zone 설.. iptables 명령어 1. iptables rule 확인 > iptables -nL --line-numbers 2. 특정 체인(INPUT,OUTPUT,FORWARD... 등)만 보기 > iptables -nL INPUT --line-numbers 3. rule 추가 > iptables -A INPUT --source 192.168.219.10 -p tcp --dport 22 -j ACCEPT 4. rule 교체 > iptables -R INPUT 3 --source 192.168.219.40 -p tcp --dport 22 -j ACCEPT 5. rule 삽입 > iptables -I INPUT 2 --source 192.168.219.40 -p tcp --dport 22 -j ACCEPT 6. rule 삭제 > iptabl.. 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 = Priori.. 이전 1 2 3 4 ··· 34 다음 목록 더보기