[How To] Find the current working shell

shell image

Share with all..Sometimes working from command line might require to know which shell you are currently using. To find out the current working shell, below steps will be helpful: Try below command first: ps -p $$ Output: PID TTY TIME CMD 2248 pts/8 00:00:00 bash Another command which also works on MAC OS and other Linux distributions: echo $0 Output: …

Read More »

[How To] Empty Trash in Ubuntu from command line

ubuntu logo

Share with all..Ubuntu is one of the widely used desktop operating system in the open source world. Like Recycle Bin in Windows, Ubuntu has Trash to store the deleted files and retrieve them anytime. Sometimes, deleting all the contents from Trash may take a longer time or it may hang up your system. In this case, deleting single file will …

Read More »

[How To] Find internal/external/public IP address on Linux

shell image

Share with all..While working from shell with no GUI, you may need to check server internal & external / public IP address. This can be achieved using simple commands as below: To check server internal IP address: /sbin/ifconfig |grep -B1 "inet addr" |awk '{ if ( $1 == "inet" ) { print $2 } else if ( $2 == "Link" …

Read More »

[How To] Fix Fedora yum update [Errno 14] HTTP Error 404

fedora logo

Share with all..If you are using Fedora 14 and trying to fetch updates for your system or install any new package, you might end up with error [Errno 14] HTTP Error 404 - Not Found Trying other mirror. This is because Fedora 14 repositories are archived which means that the links have been changed. So, its time to update your …

Read More »

[Solved] SocketException Permission denied - CakePHP

cakephp-logo

Share with all..CakePHP is a PHP development framework used in many projects. CakePHP supports sending mail via built in mail functions of PHP, smtp server. One may face following error message while sending mail: SocketException Permission denied - CakePHP The issue is related to the SELinux policy of the OS. SELinux forbid PHP/Apache to make network connections. In this case, …

Read More »