English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux ftpshut command

Linux Command Manual

The Linux ftpshut command closes the FTP server at the specified time.

This command provides system administrators with the ability to shut down the FTP server at the specified time and can issue a warning message to notify users before the shutdown. If the shutdown time is set to "none", the server will be closed immediately. If using the+30" method to set the server to shut down at30 minutes after1130" format represents that the server will be shut down at11hour30 minute closed, the time format is24hourly. After the FTP server is closed, in/etc directory will generate a file named shutmsg, delete it to restart the FTP server function.

Syntax

ftpshut [-d<minute>][-l<minute>][Close Time]["Warning Message"]

Parameter:

  • -d<minute> Time to disconnect all FTP connections.
  • -l<minute> Stop accepting FTP login time.

Online Examples

in the evening11:00 Close FTP server and give a warning before5 Minute reject new FTP login, before3 Minute close all ftp links and give a warning message, you can use the following command:

ftpshut-d 3 -1 5 1100 "Server will be shutdown at 23:00:00" 

Linux Command Manual