Wednesday, February 24, 2010

Another app is currently holding the yum lock

Hit Ctrl-C; that's the key combination to kill any currently running process in a bash shell or terminal.

To find out what's locking up yum, try running:

# ps aux | grep yum

Note the PID number of the process and run this to kill the process:

# kill

Check to see if the process has been killed by rerunning:

# ps aux | grep yum

If not, rinse and repeat until the process is killed; some processes can be very stubborn

Wednesday, December 23, 2009

To view cpu utilization




# Top



Solaris package install





pkg install xxx

To View Version and Release





cat /etc/release
uname -r



Yum install for fedora



yum -y install xxx
yum groupinstall xxx
yum list
yum group list


Chmod calculation



execute = 001 in binary = 1 in octal
write = 010 in binary = 2 in octal
read = 100 in binary = 4 in octal

So where does the 7 come from?

7 in binary = 111 in decimal = read, write, execute

So you get:

read write execute = 111 = 1 + 2 + 4 = 7
read write no execute = 110 = 4 + 2 = 6
read no write execute = 101 = 4 + 1 = 5
read no write no execute = 100 = 4
no read write execute = 011 = 2 + 1 = 3
no read write no execute = 010 = 2
no read no write execute = 001 = 1
no read no write no execute = 000 = 0

Start SSH Service on Fedora



service sshd status service sshd start