grep command

Explains how to use netstat command to display current connections and find out if your server is under DoS attack or not.

{ 22 comments }

For security reason you may need to find out current working directory of a process. You can obtained this information by visiting /proc/pid/cwd directory or using the pwdx command. The pwdx command reports the current working directory of a process or processes.

{ 3 comments }

OpenSSL is a cryptography toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) network protocols and related cryptography standards required by them. It also includes the openssl command, which provides a rich variety of commands You can use the same command to debug problems with SSL certificates. To test the […]

{ 1 comment }

Generally you use ps command to find out all running process. You may also pipe out ps command output via grep command to pickup desired output. Basically you don’t want display grep command as the process. Let us run combination of ps and grep command to find out all perl processes: $ ps aux | […]

{ 20 comments }

grep command is the de facto tool for searching text files. However when there are too many matches, it can be difficult to find the requested text in the search results. grep comes with –color=’auto’ option. It surrounds the matching string with the colour, thus resulting enhanced output. Finding string with color highlighting Pass –color […]

{ 6 comments }

So how do you find an alert or warning words in a log file over text based session? Simply use old good grep command. Usually I recommend searching following words => fail => denied => segfault => segmentation => rejected => oops => warn Find an alert or warning words from log files You need […]

{ 4 comments }

This is a reader contributed article. These days almost all server / laptop / desktop system has a gigabit Ethernet card (NIC) pre installed. Most servers are directly connected to internet using 100Mbps connections. You can save real power on your Linux server or desktop by operating at 100Mbps Ethernet speed. For example 1 gigabit […]

{ 10 comments }