Tuesday, April 7, 2015

Day 4: Linux As a Problem Solving Tool

Most users (at least non-tech people I know), use computer for very few things. They play games (mostly), browse the Internet, and ocassionaly write some stuff in a text editor.

Linux is a superior environment to solve all kinds of problems. You can write a letter or a business report, play game, organize your movie collection with an easy search, or try to calculate the effects of collision of two black holes.

The approach to the solution using Linux will depend on the user's knowledge of the system and nature of the problem to be solved. I have noticed that most powerful users will use four ways to tackle a problem:

  1. Find the right Linux command that can solve the problem.
  2. Connect multiple commands together (using piping) to solve the problem. These are referred to as 'compound commands'.
  3. Develop a shell script which is a file with instructions for Linux using structures such as branching, loops, etc.
  4. If shell script is too slow or cannot solve the problem, we can also write a program in languages such as C, C++, Java, Python etc.

Starting with item number 1 on my list "Find the right Linux command that can solve the problem", how on earth can I do that?

If this is supposed to be something real, there is no shortcuts or cutting corners. 

Challenge 1
This evening/night, read the following of "The Linux Command Line" by William Shotts.:

Part 1 - Learning the Shell
chapters 1-3.

That much!?
Yes, that much. Now, stop complaining and start reading!