linuxnewb00
Technical User
How can I start/stop FTP on a Linux server?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/bin/sh
ftpid=`lsof -i -n | grep ftp | awk ' {print $2}'`
if [ ! -z "$ftpid" ] ; then
kill -kill $ftpid
echo "Killed process: $ftpid"
exit
fi
echo "FTPD is not running"