Bonus Topic – How to enable Bash on Ubuntu on Windows application in a windows 10 device and check which version is it running.

Hi Readers,

I am happy to post another blog post on how to enable bash on ubuntu on windows application in a windows 10 device and check which version is it running.

If you have done this step (link) then proceed the below steps.

Open Settings –> Update & Security –> For Developers

Enable Developer Mode and restart the system.

bash-on-windows-10-josepraveen

After restarting your system just search for bash on ubuntu for windows 10. A command prompt opens.

To check which Ubuntu release has been installed. Type

cat /etc/lsb-release

josept@LENOVO-PC:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"

My system is running Ubuntu 14.04.4 LTS.

Happy Learning !!

JSON format in GNU/linux- Bash for Windows 10

Hi Readers,

I am happy to post another blog post on how to format a JSON string in GNU/Linux.

If a string is large then JSON looks very cryptic and it becomes difficult to search/edit it.

We can format easily using the Python interpreter. Python provides JSON modules that will do the needful.

#echo ‘content’ | python -m json.tool

josepraveenjsoninbash

Hope this post helps you. Please subscribe and comment if you have any doubts.

Happy Learning !!

Uninstall packages in bash for Windows 10

Hi Readers,

I am happy to post another blog post on how uninstall packages in bash for Windows 10.

I just updated my system to Windows 10 Anniversary update. Hurray!! I found bash (beta) feature in my Windows 10.

So, this post is about uninstall packages in bash.

How to get list of packages installed in your system?

just type dpkg --list

josepraveenwindowsbash

You will see the list of packages installed.

Do you like to uninstall a particular package?

just type sudo apt-get --purge remove nmap

josepraveenwindowsbashpurge

Now, the nmap package gets deleted.

Just read this post How to get bash on Windows 10?

Hope, this helps you to delete the unwanted packages in Windows 10 Bash.

Find the total number of directories and files present- Bash for Windows 10

Hi Readers,

I am happy to post another blog post on how to find the total number of directories and files present.

#sudo apt-get install tree

#tree name-of-the-directory/ | tail -1

josepraveentree

Hope this post helps. Please subscribe for future updates.