Show enabled settings from the vsftpd configuration
Build a paste-ready command, then review its compatibility and effects before running it.
grep -Ev '^[[:space:]]*(#|$)' /etc/vsftpd.confread-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementsgrepgrep must be installed and available on PATH.
Version supportgrep Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalslisten=NORepresentative successful output; values vary with the selected target and system state.
Known errorsgrep: command not foundgrep is missing or is not available on PATH.
Verifygrep -Ev '^[[:space:]]*(#|$)' {{configFile}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01grepCommandRuns the grep stage of this one-liner.
02-EvOptionUses extended regular expressions and prints only non-matching lines.
03'^[[:space:]]*(#|$)'ArgumentPasses '^[[:space:]]*(#|$)' to grep.
04<configuration-file>ParameterA value supplied in the Fill parameters section.
Example input
grep -Ev '^[[:space:]]*(#|$)' /etc/vsftpd.conf
Example output
listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
xferlog_enable=YES
ssl_enable=YES
Illustrative output — exact values vary by system and data.
Official sources
Related commands