Search This Blog

Tuesday, August 19, 2014

1000 Views!!!

I'm happy that this blog now has over 1000 page views! It's come a long way in the past 2+ years!!!
Keep Reading!

Saturday, August 2, 2014

Linux Shell Scripts for Dummies

Linux is easy!(not really...) But you can make it even easier by utilizing shell scripts! A shell script is simple. Basically it is a program that, when executed, acts like it were a human typing into the command line. So if I executed a shell script that has contents:
echo hi

it will output:
hi

This method is great for entering long strings of commands that you might forget or take a lot of typing. For example to open Processing in Ubuntu, at least for me, is a laborious process. It involves entering these commands into the command line:
cd
cd Downloads/processing-1.5.1.1
sh Processing.sh

Whereas you could just make a script in your home directory with the contents:
cd
cd Downloads/processing-1.5.1.1
sh Processing.sh

and just execute the script when you wanted to open it by typing(if the script is named fileName)

sh fileName.sh


I hope this helps you all to use linux better!!!