grep

Linux: Parse an IP Address

by Vivek Gite on January 28, 2010 · 0 comments

How do I parse my Linux servers IP address using a Bash shell?

{ 0 comments }

CentOS / Redhat: Turn On SELinux Protection

by Vivek Gite on January 5, 2010 · 3 comments

SELinux enforces the idea that programs should be limited in what files they can access and what actions they can take. However, by default it is turned off under RHEL / CentOS 5.x server? How do I turn it on?

{ 3 comments }

Linux: Find Out The Groups A User Is In

by Vivek Gite on July 7, 2009 · 0 comments

How do I find out group membership for each user? How do I find out which users are in a group called sales?

{ 0 comments }

Linux: Find Files By Date

by Vivek Gite on July 3, 2009 · 2 comments

How do I find file by date under UNIX and Linux?

{ 2 comments }

I‘m running the command yum update -y and getting the following error:

Loaded plugins: fastestmirror, priorities
Existing lock /var/run/yum.pid: another copy is running as pid 523.
Another app is currently holding the yum lock; waiting for it to exit…

The other application is: yum-updatesd-he
Memory : 14 M RSS ( 26 MB VSZ)
Started: Tue Feb 9 08:19:02 2010 – 14 day(s) 11:47:39 ago
State : Sleeping, pid: 523
Another app is currently holding the yum lock; waiting for it to exit…
The other application is: yum-updatesd-he
Memory : 14 M RSS ( 26 MB VSZ)
Started: Tue Feb 9 08:19:02 2010 – 14 day(s) 11:47:41 ago
State : Sleeping, pid: 523

How do I fix this problem?

{ 8 comments }

How do I search multiple string using grep command? For example I’d like to search word1, word2, word3 and so on within /path/to/file. How do I force grep to search multiple words?

{ 40 comments }

List the contents of a tar.bz2

by Vivek Gite on February 4, 2008 · 1 comment

Q. How do I list the contents of a tar.bz2 file under Linux or UNIX operating systems using a shell prompt?

{ 1 comment }