17 articles tagged "grep command"
- Get Detailed Information About Particular IP address Connections Using netstat Command
netstat command and shell pipe feature can be used to dig out more information about particular IP address connection. You can find out total established connections, closing connection, SYN and FIN bits and much more. You can also display summary statistics for each protocol using netstat.
This is useful to find out if your server is [...] - Security Tip: Find out current working directory of a process
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. It reports the current working directory of a process or processes.
Find out out working directory for a process
Run ps aux to find out PID of [...] - How to: Debug SSL certificate problems from the shell prompt
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 [...]
- Quick Shell Tip: Remove grep command while grepping something using ps command
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 | [...] - Quick tip: Easily find strings with grep color highlighting feature
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 [...] - Search Linux / UNIX log files smartly for an alert or warning error
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 to use grep command:
grep {search-word} /path/to/log/file
Find out all [...] - Linux tip: Save Power With Gigabit Ethernet By Using Lower Speed
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 link [...] - Linux: Find out how many file descriptors are being used
While administrating a box, you may wanted to find out what a processes is doing and find out how many file descriptors (fd) are being used. You will surprised to find out that process does open all sort of files:
=> Actual log file
=> /dev files
=> UNIX Sockets
=> Network sockets
=> Library files /lib /lib64
=> Executables and [...] - Domain Expiration Check Shell Script
I’ve already written about a shell script to check / monitor domain renew / expiration date here. Now I’ve modified matt’s domain-check script to support additional C/TLDs .in, .biz, .org and .info domains. I’ve also added 5 seconds delay to avoid whois server rejecting query. This script checks to see if a domain has [...]
- Ubuntu Linux configure Viewsonic VG1930WM 19″ widescreen LCD for 1440×900 resolution
As I said earlier you need to tweak few things to run this monitor with Intel 810 or 845 based chip-set under Ubuntu Linux.
In order to use higher resolution install updated Intel i8xx, i9xx display driver. It is provided by a package called xserver-xorg-video-intel. This package provides the driver for the Intel i8xx and [...]
Viewing 1-10 of 17 posts. ( see all popular tags )
Next Page »


Recent Comments
Today ~ 176 Comments
Today ~ 4 Comments
08/24/2006 01:56 pm ~ 11 Comments
Today ~ 4 Comments
Today ~ 5 Comments