I want to find out how many times a word (say foo or an IP address) occurs in a text file using the
grep command on Linux or Unix-like system?
[continue reading…]
How do I parse my Linux servers IP address using a Bash shell?
[continue reading…]
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 version 5.x and 6.x server? How do I turn it on? How can I enable SELinux on CentOS / RHEL 6 IBM server?
[continue reading…]
How do I find out group membership for each user? How do I find out which users are in a group called sales?
[continue reading…]
How do I find files by date under UNIX and Linux system? How search for files that created on a specific date on Linux or Unix-like system? How to get a list all files that have been modified on a specific date on Linux or Unix?
[continue reading…]
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?
[continue reading…]
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? How can I grep for multiple patterns on Linux, OS X, FreeBSD, or Unix-like system? What is the command to search multiple words in Linux?
[continue reading…]