Linux CLI - System Administration
You want to extract all unique IP addresses from
/var/log/syslog that appear in failed login attempts. Which command is best?/var/log/syslog that appear in failed login attempts. Which command is best?grep 'Failed password' extracts lines with failed login attempts.grep -oE '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' extracts IP addresses from those lines.sort -u sorts and removes duplicates, giving unique IP addresses.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions