Category Archives: Linux

Open BitLocker drive with Linux

Using Dislocker on Kali Linux install: apt install dislocker Step 1: Copy the BitLocker encrypted volume.% dd if=/dev/sda2 of = encrypted.bitlockerThis will copy the entire volume located into /dev/sda2 to encrypted.bitlocker Step 2: Unlock Bitlocker encrypted drive.% dislocker-file -V encrypted.bitlocker … Continue reading

Posted in Linux Tutorial | Tagged ,

Đề 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

Counting decimal number in Linux

Command line calculator, bc Bash – Floating Point Math at the Shell

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

Linux command: Sort

From man page: -f, –ignore-case fold lower case to upper case characters It means ‘-f’ will sort case insensitively. But when we do ‘sort’ without any option, it sorts case insensitively already: [root@centos ~]# sort d h D H a … Continue reading

Posted in Linux | Tagged | Leave a comment