현재 디렉토리에서 3단계까지 1기가 이상인 디렉토리 찾기
du -h --max-depth=3 | grep [0-9]G
디렉토리를 용량별로 정렬하기
du -S | sort -n
공간나눔
현재 디렉토리에서 3단계까지 1기가 이상인 디렉토리 찾기
du -h --max-depth=3 | grep [0-9]G
디렉토리를 용량별로 정렬하기
du -S | sort -n
리눅스 쉘에서 이미지를 조작하는 프로그램 몽타지 montage 설명서
cui 명령어로 이미지를 조작해 보자
https://legacy.imagemagick.org/Usage/montage/
https://ubunlog.com/ko/montage-herramienta-crear-collage-fotos-desde-terminal/
/search_text\c
%
.
u
Ctrl+r
<?php
$mysql = new mysqli("localhost","username","password","use_db");
if($mysql->connect_errno)
{
echo "MySQL 접속 실패 : ".$mysql->connect_error;
exit();
}
// 업데이트 처리
$mysql->query("UPDATE usertable SET name = 'myName' where id = 100");
echo "적용된 row 수: ".$mysql->affected_rows;
$mysqli->close();
?>
SELECT 일때도 동일하게 사용할 수 있습니다.
다만, query() 의 리턴 변수에서 체크하는 것이 아니라 mysqli 인스턴스로 체크합니다.