Category Archives: Linux

Đề thi thực hành Linux

Đề thi thực hành Linux, thời lượng: 60 phút. Bài thi được làm trên hệ điều hành CentoS 5, chạy trên máy ảo VMWare. Câu 1: Đề chung – 4 điểm – Thêm 4 ổ cứng vào hệ thống, mỗi … Continue reading

Posted in Linux | Tagged , | 3 Comments

Linux IP Forwarding

In this lab, we will use Linux IP Forwarding to connect 02 different subnets together. We need 03 Linux VMWare machines with the model as below: 1. Linux 1: 01 NIC eth0, connect to VMNet2: 192.168.2.0/24 2. Linux 2: 02 … Continue reading

Posted in Linux, Linux Tutorial | Tagged , , | 1 Comment

Common backup Linux backup tools – 2

3. Dump Dump is a nice tool to backup an entire filesystem (not for a specific subdirectory). It supports full and incremental backup in nature. Create full backup [root@centos ~]# mount /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm … Continue reading

Posted in Linux, Linux Tutorial | Tagged , , , , | Leave a comment

Common backup Linux backup tools – 1

1. CPIO Full backup: [root@localhost /]# find /home/ -print | cpio -oF /root/backup/cpiofull 11 blocks Incremental backup 1: [root@localhost /]# touch /home/newfile1 /home/newfile2 [root@localhost /]# find /home/ -cnewer /root/backup/cpiofull -print /home/newfile1 /home/newfile2 [root@localhost /]# find /home/ -cnewer /root/backup/cpiofull -print | … Continue reading

Posted in Linux, Linux Servers, Linux Tutorial | Tagged , , , , | Leave a comment

Quota Lab

We have a new hard disk to share data for all users in our company. We need to set quota on that share so that everyone has an equal part. 1. Add HDD: /dev/sdb 2. Create partition    fdisk /dev/sdb … Continue reading

Posted in Linux | Tagged , , | Leave a comment

Resize LVM

1. Resize LV: – Add more space to a LV lvextend -L +250 /dev/fileserver/share lvextend -L 25000 /dev/fileserver/share – Reduce space from a LV lvreduce -L -250 /dev/fileserver/share lvreduce -L 15000 /dev/fileserver/share 2. Resize VG: – Add a PV to … Continue reading

Posted in Linux, Linux Tutorial | Tagged , | Leave a comment

Run X with SSH

Chạy các ứng dụng đồ họa của Linux trên Windows thông qua SSH là một ví dụ rất hay để tìm hiểu về hệ thống X Window của Linux. Để làm được điều này ta cần có: – PuTTY: Chương … Continue reading

Posted in Linux | Tagged , , , | Leave a comment