Tagged: Linux

How to prevent SYN flood attacks in Linux

How to prevent SYN flood attacks in Linux

SYN flooding attack refers to an attack method that uses the imperfect TCP/IP three-way handshake and maliciously sends a large number of packets that contain only the SYN handshake sequence. This kind of attack...

How to delete regularly expired files in 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...

How to configure secure SSH in Linux

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...

[Linux basic] Creating and 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...

How to use the vi editor in 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...

How to list directory contents in 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...

View Linux process with 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)...