Install and Use the Linux Bash Shell on Windows 10

Microsoft worked with Canonical to offer a full Ubuntu-based Bash shell environment that runs atop this subsystem. Technically, this isn’t Linux at all. Linux is the underlying operating system kernel, and that isn’t available here. Instead, this allows you to run the Bash shell and the exact same binaries you’d normally run on Ubuntu Linux. Free software purists often argue the average Linux operating system should be called “GNU/Linux” because it’s really a lot of GNU software running on the Linux kernel. The Bash shell you’ll get is really just all those GNU utilities and other software.

While this feature was originally called “Bash on Ubuntu on Windows,” it also allows you to run Zsh and other command-line shells. It now supports other Linux distributions, too. You can choose openSUSE Leap or SUSE Enterprise Server instead of Ubuntu, and Fedora is also on its way.

There are some limitations here. This doesn’t yet support background server software, and it won’t officially work with graphical Linux desktop applications. Not every command-line application works, either, as the feature isn’t perfect.

How to Install Bash on Windows 10

This feature doesn’t work on the 32-bit version of Windows 10, so ensure you’re using the 64-bit version of Windows. It’s time to switch to the 64-bit version of Windows 10 if you’re still using the 32-bit version, anyway. Continue reading

Advertisements

9 HR Lessons from the BAHUBALI

1. Identify the ‘x factor’ of motivation

Bahubali and Bhallal Dev both trusted Katappa and he betrayed both of them. His loyalty was always with the Throne which motivated him to perform his actions.

Lesson: As Maslow’s hierarchy of needs rightly stated, every individual had different factors of motivation. A good HR professional should identify those ‘x factors’ and address effectively.

2. Promote objectively, not emotionally

Bahubali was the righteous candidate for throne and Shivagami knew it. However, she took emotional decision to promote Bhallal Dev. Her decision made her team suffered and eventually destroyed the empire.

Lesson: A good Manager should never mix his/her emotions while promoting his team members. Decision should be taken only on the basis of competencies and proven facts.

Continue reading

Create a database table and insert data with HTML forms – Using WordPress

Here, We are gonna creating a MySQL database table, and inserting content using the WordPress class wpdb:

In this tutorial, we will learn:

How to create a new database table in WordPress
How to insert data into this newly created database table
You could use this process to record information about your audience or even use it for a plugin, etc.

First, and with PHP, the following code performs a MySQL query and creates a new database table if it does not exist already, and from this tutorial, the name of the table is my_table which of course you can change to something else:

global $wpdb;
// creates my_table in database if not exists
$table = $wpdb->prefix . "my_table"; 
$charset_collate = $wpdb->get_charset_collate();
$sql = "CREATE TABLE IF NOT EXISTS $table (
 `id` mediumint(9) NOT NULL AUTO_INCREMENT,
 `name` text NOT NULL,
UNIQUE (`id`)
) $charset_collate;";
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
dbDelta( $sql );

Continue reading

Show Hidden Files (USB) Using Command Prompt in Windows OS

In this wiki I will assume the drive containing the hidden files is your F: drive because this often happens on a flash drive. When you plug your flash drive into the USB port of your computer, it is mounted as the first open drive. Typically your hard drive is C: and your CD/DVD drive is D:. So often the USB will be mounted as E: or in my case F:.

step 1:

Go to Start>>All Programs>>Accessories>>Click Command Prompt.
On newer versions of Windows right mouse click and choose RUN AS ADMINISTRATOR.

step 2:

Click Start>>Computer/My Computer.
Look for a Removable (F:)(Example only)

step 3:

Type F:
then enter. You will notice that the blinking line will go down and display F:\>

step 4:

Now type in attrib -s -h -r /s /d then enter, the blinking line will go down again.

like —– F:\>attrib -s -h -r /s /d

step 5:

Go to your drive, and see if you can now see all of the hidden files now.