Linux (RHEL / CentOS)
This tutorial shows the installation of vsftpd (VerySecureFtpDeamon) on Linux to act as a FTP server. It supports some features as SSL and locking users to their home directories.
Continue reading
Encryption
If you want to prevent reading your password in your script at first glance, you can use encryptwed passwords.
Create encrypted password
echo “password_to_set” | base64
Decrypt password
MYPASS=’echo “your_encrypted_password” | base64 –decode’
To see some login statistics.
Shows… Continue reading |
In this article the working modes of vi , the standard text editor in Unix and Linux systems, is explained.
A file can be edited using vi by typing vi at command line and passing the file name as an… Continue reading
This article explains tail command with most common options. The linux tail command does something like its name. It displays the last few lines of a file. It is mostly used for viewing log file updates as these updates are appended to the log files.
Linux Sed command is a stream editor that can perform basic text transformation on input stream. It can be used for editing in shell scripts for non-interactive editing. Sed can be used to find and replace a pattern on the input.
This document shows some example rules to filter network traffic with the iptables firewall. Iptables uses the concept of IP addresses, protocols (tcp, udp, icmp) and ports and places rules into predefined chains (INPUT, OUTPUT and FORWARD) that are checked against any network traffic (IP packets) relevant to those chains and a decision is made about what to do with each packet based upon the outcome of those rules, i.e. accepting or dropping the packet.
This tutorial will help you to sync data between two (web) servers with “Rsync“ for example to minimize/eliminate downtime/data loss of your web servers.
Rsync (Remote Sync) is a command tool to copy and synchronize data locally across directories, across disks and remotely across systems to perform data backups and mirroring between two Linux systems.
RHEL/CentOS 7 introduces a new firewall daemon called FirewallD, a dynamically managed firewall that supports zones to define the trust level of network connections or interfaces. Because FirewallD runs as a daemon it also allows rules to be added instantly… Continue reading
Check Hostname |
|
Using Hostnamectl tool |
|
Restart the systemd-hostnamed daemon so that as to reflect the change in Static hostname. |
|
By Editing /etc/hostname Filevi /etc/hostname
The timedatectl utility is a part of the systemd system and service manager that allows you to change the current date and time of the linux system.
Display the current date and time |
|
Change the current date |
|