grep

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

{ 0 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?

{ 5 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 }

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

{ 3 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?

{ 12 comments }

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?

{ 85 comments }

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

{ 1 comment }