≡ Menu

grep

Linux: Parse an IP Address

How do I parse my Linux servers IP address using a Bash shell?
[click to continue…]

CentOS / Redhat: Turn On SELinux Protection

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? How can I enable SELinux on CentOS / RHEL 6 IBM server?
[click to continue…]

Linux: Find Out The Groups A User Is In

How do I find out group membership for each user? How do I find out which users are in a group called sales?
[click to continue…]

Linux: Find Files By Date

How do I find file by date under UNIX and Linux?
[click to continue…]

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?
[click to continue…]

How do I search multiple strings or words using the 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?
[click to continue…]

List The Contents Of a tar.bz2 Tarball File

How do I list the contents of a tar.bz2 file under Linux or UNIX-linke operating systems using a shell prompt?
[click to continue…]