lvreduce ext4 example lvreduce ext4 example An lvreduce ext4 example to show you how to shrink an ext4 filesystem? The example below is a quick guide with a basic safe approach to reducing the size of an logical volume. Hopefully the raw disk was used with pvcreate and not a partition. Doing so would defeat the purpose of having LVM, which is to use the “logical” portion of the volume manager. Growing and shrinking. .. Operating System/LINUX 6년 전
쉘스크립트 쉘스크립트 * Shell script * for문 - for문은 조건문이 참이면 for문내의 명령을 반복한다. 1. 기본 문법 --------------------------------------------------------------------------- #!/bin/bashrow="첫째 둘째"for mon in $row;do for ((i=0;i Operating System/LINUX 6년 전
Custom Kernel on Fedora 20 Custom Kernel on Fedora 20 The last time I built a Linux kernel for my machine was quite a time ago. In my Linux hacking times when I did my private researches on how Linux works and how the software can be built for it, I used Gentoo and there it was normal to build every package from source code, including the kernel. The portage system was a copy of the well known ports package system from Fr.. Operating System/LINUX 6년 전
Linux command Linux command 1. shell script를 읽어오는 명령 (subshell 실행이 아님)a) source ~/module.shb) . ~/module.sh source만 쓰고 있고. 점(dot)을 모르고 있다면 마음은 이미 아재 리눅서입니다. 2. vim에서 문서 저장하고 종료하는 명령a) :wqb) :xc) ZZ :wq만 사용하는 분보다 더 아재인 분들은 습관적으로 :wq! 까지 붙여서 사용합니다.이제 좀 더 최근 명령어인 ZZ를 사용합시다. 3. 네트워크 인터페이스 및 라우팅, 설정 관련 명령어a) ifconfig, routeb) ipc) nmcli 몇 년 전부터 nmcli를 사용하여 네트워크를 설정 합니다. /etc 밑에 있는 설정파일을 직접 에디터로 수정하는 것은 호랑이 담배피던 시절.. Operating System/LINUX 6년 전
Ubuntu Hostname 변경 hostname 확인 # 명령어로 확인하기 다음과 같이 명령하면 hostname을 출력합니다. $ hostname # 설정 파일 열어서 확인하기 텍스트 에디터로 /etc/hostname 파일을 열면 hostname이 적혀있습니다. # hostname 변경 # 명령어로 변경하기 다음과 같이 명령하면 hostname이 abc로 바뀝니다. $ hostnamectl set-hostname abc # 설정 파일 열어서 변경하기 텍스트 에디터로 /etc/hostname 파일을 열어서 내용을 abc로 바꾸면 hostname이 abc로 바뀝니다. # /etc/hosts 수정 hostname을 바꾸었으면 /etc/hosts 파일도 수정합니다.변경 전 hostname을 xyz라 했을 때, 텍스트 에디터로 열면 다음과 같은.. Operating System/LINUX 6년 전