<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>모든 LFCS 자격 준비 - lee's blog</title><link>https://ken-0913.github.io/myblog/posts/lfcs/</link><description>모든 LFCS 자격 준비 | lee's blog</description><generator>Hugo -- gohugo.io</generator><language>ko-kr</language><managingEditor>hyeonjae0913@gmail.com (ken-0913)</managingEditor><webMaster>hyeonjae0913@gmail.com (ken-0913)</webMaster><lastBuildDate>Wed, 22 Jul 2026 13:00:00 +0900</lastBuildDate><atom:link href="https://ken-0913.github.io/myblog/posts/lfcs/" rel="self" type="application/rss+xml"/><item><title>LFCS 자격 준비 (6) Users and Groups 실전 문제 + 연습 터미널</title><link>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-06-users-and-groups/</link><pubDate>Wed, 22 Jul 2026 13:00:00 +0900</pubDate><author><name>ken-0913</name></author><guid>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-06-users-and-groups/</guid><description><![CDATA[<div class="featured-image">
                <img src="images/banners/lfcs-06-users-and-groups-f848dd4f.png" referrerpolicy="no-referrer">
            </div><p>LFCS 시리즈 마지막 편으로 <strong>Users and Groups (10%)</strong> 도메인을 다룬다.
환경 변수, 사용자·그룹·sudo, 리소스 한도(limits)가 핵심 주제이다.
정리 후 <strong>인터랙티브 연습 터미널</strong>에서 명령을 직접 입력해 본다.</p>
<h2 id="1-환경-변수" class="headerLink">
    <a href="#1-%ed%99%98%ea%b2%bd-%eb%b3%80%ec%88%98" class="header-mark"></a>1. 환경 변수</h2><p><code>export</code> 없이 정의한 변수는 현재 셸에만, <code>export</code>한 변수는 자식 프로세스에도 전달된다.
<code>.bashrc</code> 등 프로필 파일로 로그인 시 자동 설정할 수 있다.</p>
<ul>
<li><strong>값 확인</strong>: <code>echo $VARIABLE1</code>, <code>env | grep VARIABLE</code></li>
<li><strong>자식까지 전달</strong>: <code>export VARIABLE3=&quot;${VARIABLE1}-extended&quot;</code></li>
</ul>
<h2 id="2-사용자그룹sudo" class="headerLink">
    <a href="#2-%ec%82%ac%ec%9a%a9%ec%9e%90%ea%b7%b8%eb%a3%b9sudo" class="header-mark"></a>2. 사용자·그룹·sudo</h2><p><code>usermod</code>로 홈 디렉터리(<code>-d</code>)와 기본 그룹(<code>-g</code>)을 바꾼다.
<code>useradd</code>로 셸(<code>-s</code>)·홈(<code>-d -m</code>)·보조 그룹(<code>-G</code>)을 지정해 만든다.
sudo 권한은 <code>visudo</code>로 안전하게 편집한다.</p>]]></description></item><item><title>LFCS 자격 준비 (5) Essential Commands 실전 문제 + 연습 터미널</title><link>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-05-essential-commands/</link><pubDate>Wed, 22 Jul 2026 12:00:00 +0900</pubDate><author><name>ken-0913</name></author><guid>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-05-essential-commands/</guid><description><![CDATA[<div class="featured-image">
                <img src="images/banners/lfcs-05-essential-commands-8d8aa420.png" referrerpolicy="no-referrer">
            </div><p>LFCS 시리즈 다섯 번째 편으로 <strong>Essential Commands (20%)</strong> 도메인을 다룬다.
아카이브·압축, <code>find</code>, Git, 출력 리다이렉션, 정규식이 핵심 주제이다.
정리 후 <strong>인터랙티브 연습 터미널</strong>에서 명령을 직접 입력해 본다.</p>
<h2 id="1-아카이브압축" class="headerLink">
    <a href="#1-%ec%95%84%ec%b9%b4%ec%9d%b4%eb%b8%8c%ec%95%95%ec%b6%95" class="header-mark"></a>1. 아카이브·압축</h2><p>tar 아카이브는 압축 계층(bzip2·gzip 등)을 바꿀 수 있다.
<code>bunzip2 -k</code>로 원본을 유지한 채 해제하고, <code>gzip --best</code>로 최고 압축한다.</p>
<ul>
<li><strong>bzip2 해제(원본 유지)</strong>: <code>bunzip2 -k import001.tar.bz2</code></li>
<li><strong>gzip 최고 압축</strong>: <code>gzip --best import001.tar</code></li>
<li><strong>목록 정렬 출력</strong>: <code>tar tf import001.tar.gz | sort</code></li>
</ul>
<h2 id="2-find로-찾고-실행" class="headerLink">
    <a href="#2-find%eb%a1%9c-%ec%b0%be%ea%b3%a0-%ec%8b%a4%ed%96%89" class="header-mark"></a>2. find로 찾고 실행</h2><p><code>find</code>는 조건으로 파일을 찾고 <code>-exec</code>로 명령을 실행한다.
크기는 <code>-size</code>, 권한은 <code>-perm</code>, 날짜는 <code>-newermt</code>로 비교한다.</p>]]></description></item><item><title>LFCS 자격 준비 (4) Storage 생성·수정 실전 문제 + 연습 터미널</title><link>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-04-storage-operations/</link><pubDate>Wed, 22 Jul 2026 11:00:00 +0900</pubDate><author><name>ken-0913</name></author><guid>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-04-storage-operations/</guid><description><![CDATA[<div class="featured-image">
                <img src="images/banners/lfcs-04-storage-operations-b86f7963.png" referrerpolicy="no-referrer">
            </div><p>LFCS 시리즈 네 번째 편으로 <strong>Storage (20%)</strong> 도메인의 <strong>생성·수정 작업</strong>을 다룬다.
1편이 <code>lsblk</code>·<code>df</code>·<code>pvs</code> 같은 <strong>조회</strong> 위주였다면, 이번 편은 포맷·마운트·LVM 변경 같은 <strong>실제 작업</strong>이 중심이다.
정리 후 <strong>인터랙티브 연습 터미널</strong>에서 명령을 직접 입력해 본다.</p>
<h2 id="0-실습-환경-준비-loop-device" class="headerLink">
    <a href="#0-%ec%8b%a4%ec%8a%b5-%ed%99%98%ea%b2%bd-%ec%a4%80%eb%b9%84-loop-device" class="header-mark"></a>0. 실습 환경 준비 (loop device)</h2><p><code>/dev/vdb</code> 같은 <strong>여분 디스크</strong>가 있다고 가정한다.
하지만 일반 리눅스에는 이런 디스크가 없으므로, <strong>이미지 파일을 블록 장치처럼 연결</strong>하는 loop device로 실습 환경을 만든다.
<code>fallocate</code>로 빈 이미지를 만들고 <code>losetup</code>으로 <code>/dev/loopN</code>에 붙인다. </p>
<div class="term">
    <div class="term__bar">
        <span class="term__dot term__dot--red"></span>
        <span class="term__dot term__dot--yellow"></span>
        <span class="term__dot term__dot--green"></span>
        <span class="term__title">bash</span>
    </div>
    <div class="term__body"><span class="term__comment"># 1GB짜리 이미지 파일 생성</span>
fallocate -l 1G ~/disk.img

<span class="term__comment"># 블록 장치로 연결 → /dev/loop0 같은 이름이 출력됨</span>
sudo losetup -fP --show ~/disk.img

sudo mkfs -t ext4 /dev/loop0
sudo mkdir -p /mnt/backup-black
sudo mount /dev/loop0 /mnt/backup-black
sudo touch /mnt/backup-black/completed
df -h /mnt/backup-black
lsblk -f</div>
</div>
<ul>
<li><strong><code>fallocate -l 1G</code></strong>: 실제 1GB를 즉시 할당해 이미지 파일을 만든다.</li>
<li><strong><code>losetup -f</code></strong>: 비어 있는 첫 loop 장치를 자동 선택한다. <code>-P</code>는 파티션 인식, <code>--show</code>는 할당된 장치명을 출력한다.</li>
</ul>
<p>이렇게 만든 <code>/dev/loop0</code>는 아래 문제들의 <code>/dev/vdb</code> 자리에 그대로 대입하면 된다.</p>]]></description></item><item><title>LFCS 자격 준비 (3) Networking 실전 문제 + 연습 터미널</title><link>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-03-networking/</link><pubDate>Wed, 22 Jul 2026 10:00:00 +0900</pubDate><author><name>ken-0913</name></author><guid>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-03-networking/</guid><description><![CDATA[<div class="featured-image">
                <img src="images/banners/lfcs-03-networking-e856c7d0.png" referrerpolicy="no-referrer">
            </div><p>LFCS 시리즈 세 번째 편으로 <strong>Networking (25%)</strong> 도메인을 다룬다.
시간 동기화, 패킷 필터링(iptables), 원격 파일시스템, 로드밸런서, OpenSSH가 핵심 주제이다.
정리 후 마지막의 <strong>인터랙티브 연습 터미널</strong>에서 명령을 직접 입력해 본다.</p>
<h2 id="1-시간-동기화" class="headerLink">
    <a href="#1-%ec%8b%9c%ea%b0%84-%eb%8f%99%ea%b8%b0%ed%99%94" class="header-mark"></a>1. 시간 동기화</h2><p>현재 시간·타임존·동기화 상태는 <code>timedatectl</code>로 한 번에 확인한다.
NTP 서버는 <code>/etc/systemd/timesyncd.conf</code>의 <code>NTP</code>(주 서버)와 <code>FallbackNTP</code>(대체)로 설정한다.
설정 후 <code>systemctl restart systemd-timesyncd</code>로 서비스를 재시작한다.</p>
<ul>
<li><strong>상태 확인</strong>: <code>timedatectl</code></li>
<li><strong>설정 파일</strong>: <code>/etc/systemd/timesyncd.conf</code> — <code>NTP=</code>, <code>FallbackNTP=</code>, <code>PollIntervalMaxSec=</code>, <code>ConnectionRetrySec=</code></li>
</ul>
<h2 id="2-패킷-필터링-iptables" class="headerLink">
    <a href="#2-%ed%8c%a8%ed%82%b7-%ed%95%84%ed%84%b0%eb%a7%81-iptables" class="header-mark"></a>2. 패킷 필터링 (iptables)</h2><p>필터 규칙은 <code>INPUT</code>/<code>OUTPUT</code>/<code>FORWARD</code> 체인에, NAT는 <code>-t nat</code>의 <code>PREROUTING</code> 등에 넣는다.
포트 차단은 <code>-j DROP</code>, 리다이렉트는 <code>REDIRECT --to-port</code>, 특정 IP 허용은 <code>-s</code>이다.</p>]]></description></item><item><title>LFCS 자격 준비 (2) Operations Deployment 실전 문제 + 연습 터미널</title><link>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-02-operations-deployment/</link><pubDate>Wed, 22 Jul 2026 09:00:00 +0900</pubDate><author><name>ken-0913</name></author><guid>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-02-operations-deployment/</guid><description><![CDATA[<div class="featured-image">
                <img src="images/banners/lfcs-02-operations-deployment-e4a033fd.png" referrerpolicy="no-referrer">
            </div><p>LFCS 시리즈의 두 번째 편으로, 비중이 가장 큰 <strong>Operations Deployment (25%)</strong> 도메인을 다룬다.
커널 정보, CronJob, 컨테이너, 프로세스 진단, 소스 빌드가 핵심 주제이다.
각 주제를 정리한 뒤, 마지막에 <strong>인터랙티브 연습 터미널</strong>로 명령을 직접 입력해 본다.</p>
<h2 id="1-kernel시스템-정보" class="headerLink">
    <a href="#1-kernel%ec%8b%9c%ec%8a%a4%ed%85%9c-%ec%a0%95%eb%b3%b4" class="header-mark"></a>1. Kernel·시스템 정보</h2><p>커널 릴리스는 <code>uname -r</code>로 확인한다.
커널 파라미터는 <code>/proc/sys/</code> 아래 파일이나 <code>sysctl</code>로 읽으며, 영구 설정은 <code>/etc/sysctl.d/*.conf</code>에 둔다.
타임존은 <code>timedatectl</code>, <code>date +%Z</code>, <code>/etc/timezone</code>으로 확인한다.</p>
<ul>
<li><strong>커널 릴리스</strong>: <code>uname -r</code></li>
<li><strong>커널 파라미터 조회</strong>: <code>cat /proc/sys/net/ipv4/ip_forward</code> 또는 <code>sysctl net.ipv4.ip_forward</code></li>
<li><strong>타임존</strong>: <code>date +%Z</code>, <code>cat /etc/timezone</code></li>
</ul>
<h2 id="2-cronjob" class="headerLink">
    <a href="#2-cronjob" class="header-mark"></a>2. CronJob</h2><p>시스템 전역 cron은 <code>/etc/crontab</code>에 있으며 <strong>user 필드</strong>를 포함한다.
사용자 cron은 <code>crontab -e</code>로 편집하고 <code>crontab -l</code>로 확인하며, user 필드가 없다.
시간 필드는 <strong>분 시 일 월 요일</strong> 순서이다.</p>]]></description></item><item><title>LFCS 자격 준비 (1) 시험 개요와 도메인 정리 + Storage 연습 터미널</title><link>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-01-overview/</link><pubDate>Tue, 21 Jul 2026 09:00:00 +0900</pubDate><author><name>ken-0913</name></author><guid>https://ken-0913.github.io/myblog/posts/lfcs/lfcs-01-overview/</guid><description><![CDATA[<div class="featured-image">
                <img src="images/banners/lfcs-01-overview-792ebc6b.png" referrerpolicy="no-referrer">
            </div><p><strong>LFCS(Linux Foundation Certified System Administrator)</strong> 는 실제 터미널에서 작업을 수행하는 <strong>실기(hands-on)</strong> 시험이다.
객관식이 아니라 주어진 과제를 명령으로 직접 해결하는 방식이므로, 명령어를 손에 익히는 연습이 중요하다.
이 글은 시험 도메인 전체를 정리하고, 마지막에 <strong>Storage 도메인 연습 터미널</strong>을 제공한다.</p>
<h2 id="시험-개요" class="headerLink">
    <a href="#%ec%8b%9c%ed%97%98-%ea%b0%9c%ec%9a%94" class="header-mark"></a>시험 개요</h2><p>LFCS는 5개 도메인으로 구성되며, 비중은 다음과 같다.</p>
<table>
	<thead>
			<tr>
					<th>도메인</th>
					<th>비중</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>Operations Deployment</td>
					<td>25%</td>
			</tr>
			<tr>
					<td>Networking</td>
					<td>25%</td>
			</tr>
			<tr>
					<td>Storage</td>
					<td>20%</td>
			</tr>
			<tr>
					<td>Essential Commands</td>
					<td>20%</td>
			</tr>
			<tr>
					<td>Users and Groups</td>
					<td>10%</td>
			</tr>
	</tbody>
</table>
<p>각 도메인의 세부 역량과 핵심 명령을 아래에 정리한다.</p>
<h2 id="operations-deployment-25" class="headerLink">
    <a href="#operations-deployment-25" class="header-mark"></a>Operations Deployment (25%)</h2><p>시스템 배포·운영 전반을 다루며 비중이 가장 크다.
kernel 파라미터, 프로세스·서비스, 패키지, 컨테이너, SELinux가 핵심이다.</p>]]></description></item></channel></rss>