Category: Linux

Linux Check Disk Space Command Guide

Checking disk space is very convenient under Windows. But when it comes to Linux, you might feel a bit lost. Don’t worry, I’m about to solve this problem for you. The Df command is how Linux checks disk space, viewing the file system by disk partition. You can add …

VSFTP Error Codes

FTP Error Codes
1xx – Positive Preliminary Reply
These status codes indicate that an operation has successfully started, but the client expects another reply before continuing with a new command.
110 Restart marker reply.
120 Service ready in nnn minutes.

How to Repair and Recover NTFS Partitions in Linux

From time to time, we need to help our friends, family, acquaintances, business partners, or various other people get out of predicaments they encounter while using Windows. Although we don’t run into problems on a daily basis like they do, we are often the ones they turn to when trouble strikes. What’s more, even we ourselves …

Linux Seeks More Diverse Programmers

Sarah Sharp (the woman in the photo) and Linus Torvalds (second from right) at LinuxCon. Photo credit: The Linux Foundation Last Wednesday, Linus Torvalds and Sarah Sharp, a developer from Intel, finally sat down face to face. This was their first meeting since the email controversy…

Installing DRBD + Heartbeat + NFS on CentOS 5.6 x86_64

This article is actually a supplement to the section “Production-Ready High-Availability NFS File Server” in Chapter 5 of “Building High-Availability Linux Servers (2nd Edition)”. In fact, software like DRBD and Heartbeat can all be installed automatically via yum, for example, installing DRBD …

Shell Script to Prevent SSH and vsftpd Brute-Force Attacks (v2)

On a recently deployed FTP backup server, a routine check of the /var/log/secure log revealed numerous failed authentication attempts for sshd and vsftpd. It’s clear someone is using brute-force cracking tools to steal passwords, so a security script needs to be written to prevent this. The script requirements are as follows: This SHELL script is placed in cront …

How to Limit Speed in vsFTP

This article focuses on techniques for rate limiting in vsftpd, and the configuration file also describes other common configuration strategy tips, such as anonymous user restrictions, logging, directory restrictions, user type restrictions, server IP restrictions, and more. Please check the code in the file below. As …

Various Archive/Compression Methods for zip, tar, gz, bz2 and More Under Linux

.tar
Extract: tar xvf FileName.tar
Create: tar cvf FileName.tar DirName
(Note: tar packages files, it does not compress!)
——————————————-
.gz
Extract 1: gunzip FileName.gz
Extract 2: gzip -d FileName.gz
Compress: gzip FileName
.tar.gz and .tgz
Extract: tar zxvf FileName.tar.gz
Compress: tar zcvf FileName.tar.gz DirName
——————————————-