
- vargant 설치vargant 에서 boxs 는 이미지를 의미vargant 설치 후 vagrant versionvagrant box listhttps://portal.cloud.hashicorp.com/vagrant/discover/generic/ubuntu2204vagrant box add generic/ubuntu2204virtualbox 선택 How to use this box with VagrantStep 1Option 1: Create a Vagrantfile and initiate the boxvagrant init generic/ubuntu2204 --box-version 4.3.12vagrantfile 수정 config.vm.network "private_network", ip..
sed 사용 # sed -i 's/$dc/$sc/g' $t1 $t2 $dc = 바꿀 대상 문자열 $sc = 바꿀 문자열 $t1 = 바꿀 대상 파일(위치까지) $t2 = 바꿀 대상 파일(위치까지) ex) /etc/group, ssh_config 에서 특정 사용자 계정 변경 시 # sed -i 's/,atthis/tistory/g' /etc/group /etc/ssh/ssh_config /etc/group, ssh_config 에서 특정 사용자 계정 제거 시 # sed -i 's/,atthis//g' /etc/group /etc/ssh/ssh_config 주의 : 원본 파일 그대로 수정 되므로 확인 후 실행 (-i 옵션으로 인해)
check_disk v2.3.3.git (nagios-plugins 2.3.3) Copyright (c) 1999 Ethan Galstad Copyright (c) 1999-2014 Nagios Plugin Development Team This plugin checks the amount of used disk space on a mounted file system and generates an alert if free space is less than one of the threshold values Usage: check_disk -w limit -c limit [-W limit] [-K limit] {-p path | -x device} [-C] [-E] [-e] [-f] [-g group ] [..