If you know SCP, do you know SMV command

Hi Readers,

Greetings!! I hope you are doing great.

Today, I am going to tell you about the command which will work like mv but over the different servers/machines where Linux is installed.

If you want to copy any files from one machine to another machine then you should use scp command, that you must be known. If not, read about it. It’s very useful and easy.

Now, if you have the question like- We can copy files from any machines to another machine using scp command but what if we want to move files from machine to machine.

Here is the answer dear, you can use ‘rsync’ command.

If you don’t have a package then you can install on Linux.

Hint: you can use subcommand like ‘delete’, you can see so many options as per your requirement.

# rsync –help | grep delete
–del an alias for –delete-during
–delete delete extraneous files from destination dirs
–delete-before receiver deletes before transfer, not during
–delete-during receiver deletes during the transfer
–delete-delay find deletions during, delete after
–delete-after receiver deletes after transfer, not during
–delete-excluded also delete excluded files from destination dirs
–delete-missing-args delete missing source args from destination
–ignore-errors delete even if there are I/O errors
–max-delete=NUM don’t delete more than NUM files

You can also use subcommand – ‘remove’, here are the options for remove subcommand for rsync-

# rsync –help | grep –remove
grep: unrecognized option ‘–remove’
Usage: grep [OPTION]… PATTERN [FILE]…
Try ‘grep –help’ for more information.
[root@undercloud-0 openstack_cert]# rsync –help | grep remove
–remove-source-files sender removes synchronized files (non-dirs)

Thanks all for reading. There is no command like smv 🙂

I hope, this will add new things in your knowledge.

Stay tuned for more knowledgable blogs like this.



asyncio – the best way to write single-threaded concurrent code

Hi Readers,


Today I am going to tell you about ‘asyncio’ which is library in python and mainly use to write  single-threaded concurrent code.

asyncio is used as a foundation for multiple Python asynchronous frameworks that provide high-performance network and web-servers, database connection libraries, distributed task queues, etc

Main thing here is why should we go for asyncio instead of threading –

answer is – When you use asyncio, you decide when a piece of code take back control using await. On the other hand, by using threads, Python scheduler is responsible to handle this and a piece of code may lose control anytime. Hence, you have to use some locking mecanism to prevent anything bad to occur to shared memory.

Hope you will read more about it. 🙂

Keep reading for more knowledge like – coroutines and use of asyncio in coroutines.

Quick example –

Monitoring tool – ‘New Relic’

Hi Readers,


Hope you are doing good.

Today I am going to write about the famous and very useful monitoring tool in the IT industry which is ‘New Relic’.

So, before that let me tell you short description and need of monitoring tool and what exactly monitoring tool is, if you are new in ‘devops’ field.

Monitoring tools are the tools/programs/software to monitor performance of any system.

It mainly use for the constantly/ continuously monitor the performance of computer systems/ servers/ servers over data centers/ on cloud to analyse whether systems are working as we are expecting. We can measure/monitor performance of networking, working/failing components is system is distributed and integrated, successful deployment, data copy speed, API request response speed, availability, reliability etc.

New Relic is a performance management tool and eventually solution which helps  developers, devops people, qa people, support people, system engineers to measure/diagnose and fix application performance problems in real time.

Like many other monitoring tools it provides an interface where we can see graphical representation of the things which we are monitoring.

Whats the difference between new relic and other monitoring tools?

To know the answer of this question, stay tuned to this blog, will come back to you soon. 🙂

Congratulations readers, today you earned some good knowledge about monitoring tool – new relic.



Always think about the improvement

Hi Readers,

You might have read my blogs till now related to technical things or musical things.

Today I am going to write about some philosophical things, which not only help you in your career but also throughout your life.

All of us want to improve, grow now a days(if you are not thinking like this, please start thinking like this)

The following is the statement which you should always keep in mind.

Statement is ‘There is always a scope of improvement, first you need to accept it, you should have self belief and good planning ‘

Let me explain the statement for you.

We should always think like there are some things in which I am lagging, so that you have to first accept it.

Once you accept the things, you should self belief so that you can convince yourself that you can do these things better.

Last but important thing here is you know your weaknesses, you accepted that, you have self belief and confidence to make change as per you desire, now you should have good plans ready including backup plans like plans A, B, C because many times we are not aware that the plan which we are following may fail in future.

So, always think about your improvement, don’t think in legacy way, don’t go with flow.

Keep focused, have proper plans, have backup plans ready, always be confident. Try to think out out the box in good way.

Thanks readers, all the very best.






My musical shows and lectures about philosophy and litrature

Hi Reader,

You might have read my blogs about the technical things in computer science. Thanks for it. I hope they were, they are helpful for you.

Today I am going to tell you about the shows I have been doing related to music and the lectures/talks I have been presenting.

I learned the Indian classical music and I performs classical singing performances with Harmonium and Tabla

I have been doing these show/presenting talks since my childhood.

I will explain you what exactly I does perform in singing shows and talks.

I does perform a show including Indian classical vocal, where I does  perform different ‘raags’ of Indian classical music. Also I does include bhavgeet, natyageet, bhaktigeet, abhang, thumari in my musical performances.

The does this kind of shows for 1 hour or it may vary from 30 minutes to 1 hour.

I also does separate shows for Indian old movie songs. It contains the song on which the great Indian legend worked like Mohmad Rafi, Kishor Kumar, Hemant Kumar, S.D Burman.

About the lecture/talks I does present:

I have been learning about Indian cultural, spiritual philosophy. literature by Indian sents likes sent Dnyaneshwatr, Namdeo, Eknath, Ramdas,Tukaram etc.

My lectures mainly contains the messages from sent literature to develope ultimate human personality.

Kindly reach out to me at

email: anandprakash44@gmail.com

contact no: +91 9921376482

020 24535120

To schedule my shows/ musical performances.



Install operating system on raspberry pi and play with LED on/off

Hi Readers,

Hope all are doing well,

I am going to talk about raspberry pi.

What is raspberry pi –

The Raspberry Pi is a series of small single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and in developing countries.

A Raspberry Pi is a credit card-sized computer originally designed for education, inspired by the 1981 BBC Micro. Creator Eben Upton’s goal was to create a low-cost device that would improve programming skills and hardware understanding at the pre-university level. But thanks to its small size and accessible price, it was quickly adopted by tinkerers, makers, and electronics enthusiasts for projects that require more than a basic microcontroller (such as Arduino devices).

The Raspberry Pi is slower than a modern laptop or desktop but is still a complete Linux computer and can provide all the expected abilities that implies, at a low-power consumption level.


Need – sd card, card reader, monitor

Insrer sd card in card reader and connect cardreader to computer/laptop

fire command df –

check where your sd card is inserted

you need fire umount command from path where it’s mounted..NOTE- to format any device we need to unmount it first

like you need to umount /dev/mmcblk0px(x is any number) and path of /dev/mmcblk0px (x ia any number ) is /run/media/anandprakashdnyaneshwartandale/SETTINGS

then you need to fire command-

umount /run/media/anandprakashdnyaneshwartandale/root  and

umount /run/media/anandprakashdnyaneshwartandale/SETTINGS

after fireing lsblk command you should be able to see –  ‘mmcblk0’ path


mmcblk0 179:0 0 29.7G 0 disk
├─mmcblk0p2 179:2 0 1K 0 part
├─mmcblk0p7 179:7 0 28.5G 0 part
├─mmcblk0p5 179:5 0 32M 0 part
├─mmcblk0p1 179:1 0 1.1G 0 part
└─mmcblk0p6 179:6 0 63M 0 part


After that you need to fire a command  sudo mkdosfs -F 32 -v /dev/mmcblk0 to install format the device(sd card here)

sudo dd bs=1M if=”path to image” of=/dev/mmcblk0 status=progress




fire command sudo mkdosfs -F 32 -v /dev/mmcblk0  – to format your file system

if you are using fedora your path of sd card will be something like /dev/x/x/

if you are using ubuntu then path would be /media/x/x

I will talk about fedora,

so after formatting,  you nned to install something onm that right?

so fire the command ‘sudo dd bs=1M if=”path/of/image/for/raspberrypi” of=/dev/mmcblk0 status=progress’

dd is use to convert and copy a file, you can see man pages of dd

then go to you sd card by cd command – in my case ‘cd /run/media/anandprakashdnyaneshwartandale/46ed1fb6-8b80-414d-b41a-e721d2b37b05’

there you can see filesytem etc,mnt,var,usr etc

go to etc of your sd card and append your internet connection in /network/interfaces fire

to make your raspberrypi system accessible by ssh, you need to make ssh enabled by adding following line in etc/rc.local (NOTE- etc is inside of raspberrypi system not your local)

IP=$(hostname -I) || true
if [ “$_IP” ]; then
printf “My IP address is %s\n” “$_IP”

if [ -e /etc/SSHFLAG ]; then

/usr/sbin/update-rc.d -f ssh defaults

/bin/rm /etc/SSHFLAG

/sbin/shutdown -r now


sudo /etc/init.d/ssh start


Then  you need to check ip address of sytem mounted on sd card – how?

ans- just remove sd card reader , insert sd card in raspberry pi connect raspberry pi to any monitor and reoot it, if network is good you can see ip address of system installed on sd card in rasberrypi

you need to copy that ip.

now you rasberry pi is on-

and steps to get gui of raspberrypi sytem using tightvnc and vncviwer

open xterm on your system, enter ‘vncviewer’ command on xterm

then you will see pop up asking for ip address and port to connect using vncviewer

enter ip address of you raspberrypi and enter port it’s listening try port 1/2 as well

then you wiil get gui of sytem install on sd inserted in raspberrypi

you can ssh using ssh pi@ipaddressfound and password is raspberrypi

after successful of ssh you need to require packages related to python on that

i just fired command ‘apt-get install python-dev’

commect LED and  to pins of raspberrypi like-


Screenshot from 2017-03-26 22-51-52


then fire command python3 on the seesion where you ssh to system installed on sd card inserted in raspberrypi

from RPi import GPIO as io


io.setup(16, io.OUT) – to get output from raspberry pi

io.output(16, io.LOW) – to turn off LED

io.output(16, io.HIGH) – to turn on LED

yeahhhhhhhhhhhhhhh, ver long blog but very interesting right?

so now you can do python programs to do ehatever you want to do with LED may be blinking design with many LEDS. so go for it, all the best.




‘Django – python web framework’ session taken by me in Python Pune Meetup Feb 2017

Hi Readers,

On 26th Feb, I took a session on ‘django – python web framework’ in Python Pune Meetup at Tixdo Pvt. Ltd. Cybercity, magarpatta Pune.

I gave a demo as well, but now, I am pasting content of my slides.

slide 1 – django

Web framework written in python
MTV – Model(data access), Template(presentation), View(bridge between M and T / logic)
Request response
Fast, secure, scalable, opensource.


slide 2 – architecture



slide 3-

The developer writes/provides the model and then template and view maps to the url

slide 4 –

Django comes with a lightweight web server for developing and testing applications. This server is pre-configured to work with Django.

slide 5-  Installation

Prerequisites – python
dnf install python-django
git clone git://github.com/django/django.git , pip install -e django/
Install pip/pip3 and then pip/pip3 install django
using virtualenv


slide 6 – Imp files in django after creation of project/app



slide 7 –  important links




Good source of knowledge and problem solver for software engineers.