Category Archives: Linux

Linux Related Section

How to find ports which are in use on linux server

netstat -na | grep ‘tcp\|udp’ | awk ‘{print $4}’ | cut -d: -f2 | sort | uniq -c | awk ‘{print $2}’ Please find below the description of commands used in above string — netstat command is used to check … Continue reading

Posted in Linux | Tagged | Leave a comment

How to secure your Linux Box

1) Keep the system up to date by applying all the latest update/patches. Read news websites for bug fix and security updates. Make sure packages are signed and from the know source. 2) Delete or Disable the things you do … Continue reading

Posted in Linux | Tagged | Leave a comment

Linux command line history with timestamp

History command is a very useful command for the linux administror to list out all the executed commands. It is very useful to find out what commands was executed that broke down the server. By default the command history could … Continue reading

Posted in Linux | Leave a comment