목록Linux (5)
박민혀기
xrandr은 X Window 시스템에서 디스플레이 서버와 상호 작용하는 명령어입니다. 대부분의 리눅스 배포판에서 기본적으로 설치되어 있습니다. 터미널을 열고 다음 명령어를 실행하세요: $ xrandr
ncdu 도구: ncdu는 대화형적으로 디스크 사용량을 확인할 수 있는 도구입니다. ncdu를 설치한 후 다음 명령어를 실행하여 현재 폴더의 용량을 확인할 수 있습니다: ncdu
sudo timedatectl set-timezone Asia/Seoul sudo timedatectl set-ntp true date 시간대가 Asia/Seoul로 맞춰진걸 확인할 수 있다. 만약 맞지 않고 시간 차이가 있으면 업데이트 진행 apt-get update

Google Drivewget을 활용하여 gdown.pl 다운로드wget https://raw.github.com/circulosmeos/gdown.pl/master/gdown.plgdown.pl 실행 권한 부여chmod u+x gdown.pl다운로드 cmd 구조./gdown.pl 'https://docs.google.com/uc?export=download&id={FILEID}' {FILENAME} 다운로드 cmd 예시만약 공유 주소가 아래 일 경우https://drive.google.com/file/d/1i7wrhWA4REjP2tdXBLM2ycOQzNJQaWiO/view?usp=share_link'1i7wrhWA4REjP2tdXBLM2ycOQzNJQaWiO'가 {FILEID}이 되고 {FILENAME..
'Xlib'라이브러리를 사용하여 현재 사용 중인 모니터 해상도 값 읽기 #include int main() { Display* disp = XOpenDisplay(NULL); Screen* scrn = DefaultScreenOfDisplay(disp); int height = scrn->height; int width = scrn->width; XCloseDisplay(disp); return 0; } 컴파일 명령어 -lx11 추가 g++ -o output_file input_file1.cpp input_file2.cpp -lX11 Xlib는 X Window System의 클라이언트 라이브러리로, 다양한 운영체제에서 사용할 수 있습니다. 따라서 X Window System을 사용하는 운영체제에서는 Xl..