Tagged: Linux

delete expired files Linux

How to delete regularly expired files in Linux

When managing files under Linux, we usually have the need to periodically delete expired files. For example, periodically delete log files that exceed a specified time. Otherwise, the longer it takes, the more space...

secure SSH

How to configure secure SSH in Linux

This article will explain how to modify the default settings of sshd to ensure that sshd is secure and restricted to protect your server from hackers. You need to restart sshd every time you...

deleting Linux directories

[Linux basic] Creating and deleting Linux directories

mkdir command The mkdir used to create one or more directories Example: Create directory: mkdir ddos The above command will create the directory ‘ddos’. Create a directory and set access permissions: mkdir -m 777...

use vi editor Linux

How to use the vi editor in Linux

The vi editor is a standard editor for all Unix and Linux systems. Its power is not inferior to any latest text editor. Here is a brief introduction to its usage and a small...

list directory contents Linux

How to list directory contents in Linux

ls – list directory contents. List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor –sort is specified. How to list directory contents in Linux Use...

ps command

View Linux process with ps command

ps – report a snapshot of the current processes ps displays information about a selection of the active processes. If you want a repetitive update of the selection and the displayed information, use top(1)...

network status Linux ss utility

How to view network status in Linux with ss utility

ss – another utility to investigate sockets. ss is used to dump socket statistics. It allows showing information similar to netstat. It can display more TCP and state informations than other tools. Use Example...

create mysql database

How to create mysql database in Linux

MySQL is an open-source relational database management system. Its name is a combination of “My”, the name of co-founder Michael Widenius’s daughter, and “SQL”, the abbreviation for Structured Query Language. In this post, I’m...

install OpenVPN Server Linux

Easy way to install OpenVPN Server in Linux

VPN (Virtual Private Network), between the client and the host to establish an encrypted tunnel, the client’s request to encrypt all the way to send to the VPN server. The mainstream VPN is divided...

remove SWAP partitions

How to create or remove SWAP partitions in Linux

As you all know, when the Linux system is consuming physical memory, the inactive pages are moved from physical memory to the SWAP space, and the SWAP space can exist as a dedicated SWAP...

Flush DNS Cache Linux

How to Flush DNS Cache on Linux

Everyone knows that the DNS server is one of the core components of the Internet. Without the DNS server, users have to use IP addresses to access websites. This is almost an impossible task,...

change time zone Linux

[Linux Basics] How to change time zone

If your Linux system time zone is not configured correctly, you must manually adjust to the correct local time zone. NTP synchronizes time processing only calculates the offset between local time and UTC time....