Skip to content

Instantly share code, notes, and snippets.

@armanhakimsagar
Created August 15, 2020 12:20
Show Gist options
  • Save armanhakimsagar/b74ce2e11800c94acb84b8f3cbfd24a6 to your computer and use it in GitHub Desktop.
Save armanhakimsagar/b74ce2e11800c94acb84b8f3cbfd24a6 to your computer and use it in GitHub Desktop.
lastb - failed login list
lastlog - show all logged history
pwd - current directory
curl -s -w %{time_total}\\n -o /dev/null http://airposted.com - response time
curl -I -s https://opensource.com - server related info
ps -ef - show all running application
ps -ef | grep tomcat - show running specific application
top - show cpu status
netstat - all networking related work
df - show free spaces
iptables -A INPUT -s 65.55.44.100 -j DROP - block any ip
iptables - iptables blocks or allows traffic on a Linux host, similar to a network firewall.
nmap - use this for server security status.
nmap -F 192.168.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment