CentOS

[How To] Find the current working shell

shell image

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: -bash The …

Read More »

[How To] Fix Shell Shock Bash vulnerability Linux

shell image

A vulnerability Shell Shock CVE-2014-6271) was discovered on September 24th, in the Bash shell on Linux/Unix based servers. Overview GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of environment variables, which allows remote attackers to write to files or possibly have unknown other impact via a crafted environment, as demonstrated by vectors …

Read More »

[How To] Clear bash history in Linux

shell image

Sometimes, sensitive commands are present in your server bash history. Another user logging in the server will be able to access history of your commands as Linux stores command in the .bash_history file of the user. To delete / clear the bash history of a user, execute following command: history -c && history -w The above command will clear bash …

Read More »

[How to ] Fix OpenSSL for Heartbleed Vulnerability

openssl heartbleed image

As you are all aware of the latest OpenSSL vulnerability termed as "Heartbleed", many blogs are providing information what it is and how does it affects. I am going to focus on fixing the OpenSSL Heartbleed vulnerability in this post. Which OpenSSL versions are affected? The OpenSSL version 1.0.1 is vulnerable except version 1.0.1g. Other versions like 1.0.0, 0.9.x are …

Read More »

[How To] Enable NTFS support on Ubuntu/CentOS/RHEL/Fedora

Linux logo

The Linux operating systems supports NTFS partition format. To enable NTFS partition support, there are some packages required to be installed. To enable NTFS support on Ubuntu: 1 # sudo apt-get install ntfs-3g CentOS/RHEL: 1 2 # yum install ntfs-3g # yum install ntfsprogs ntfsprogs-gnomevfs Note: Enable rmpforge or EPEL repo before proceeding with installation. The version prior to 5.4 …

Read More »

[How To] Install VirtualBox on RHEL / CentOS

Linux logo

Oracle's VirtualBox is a cross platform virtualization application. It runs on minimum hardware configuration and very easy to use. To install VirtualBox on RHEL / CentOS using YUM utility: 1) Enable VirtualBox repository: 1 vi /etc/yum.repos.d/virtualbox.repo virtualbox.repo file should contain following details: [virtualbox] name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch enabled=1 gpgcheck=1 gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc 2) Install VirtualBox …

Read More »