Windows Vs Linux – One more time

Tux, as originally drawn by Larry Ewing
Image via Wikipedia

One of the most written and commented articles has to be Linux vs Windows (of course there are competitors like vim vs emacs) but none has been covered so much as Linux vs Windows. So, what am I going to write here which is not covered earlier in so many other posts. Well a little different perspective 🙂

 

We will take this post in points so that we do not divert and its easier for you to comment with quotes to point number 🙂

1) These are for complete different segments of users.

Windows is for everyone and Linux is for geeks and fan-boy‘s. Well, not that I agree with this but lets face the fact. Windows is OS on which all the drivers works and you dont have to worry about which Webcam I need to buy or which scanner will work.

The reason for this is multi-fold but does that matter to everyday users.

2) Cost factor.

This is something that keeps popping up every time there is some discussion like this. I don’t think that anyone using Linux is using it because it is free. If there is someone using the FREE OS just because it is free then I for one would definitely like to understand if the same person would use Windows if it was free.

BTW, I guess in China people don’t even know that Windows license’s are paid.

3) Ease of Use

People using Windows have always this notion that Linux is difficult to use. I found it the other way round. I find myself limited in ways to work on Windows (Oh and yes, I am stuck with Windows here for last around 2 months). Its mostly a question of perception. There are still things in Linux that you might have to do in the so called bash/console/terminal/command prompt, call it what you want to. But mostly that is the case for doing things faster and otherwise you probably would not need to open a terminal ever.

But if you go to any of the forums, you will definitely get suggestions to open a terminal first. Why, because you will be getting suggestions from veterans in the field. These guys have been using Linux since the days when there was no GUI or using GUI was considered sin. Just kidding but seriously you can do things much faster in a “command window”.

4) Different Filesystems.

Windows uses FAT/vFAT/NTFS and so on whereas Linux uses some 83 other types of FS. Mostly widely used being ext2, ext3, ext4 and reiser (I guess ). Why does it matter to you? Because you can use (read as read/write) any of the windows Filesystems on the Linux box natively but not the other way round. So, be careful with this.

5) File-type and associations.

Files and folders are same on Linux and Windows. Does not make much of a difference. Both are handled in similar manner. Not the same if you look a little deeper. This is one thing that confuses most who are new to Linux.

In Windows the File type and the action of double click is based on the extension of the filename. So, if I have a file with name “a.txt” then the default text editor would be used. That is not the case in Linux (well the File Manager uses similar concept , see I told you it is confusing). The file type in linux is determined by the header in the file that is stored along with the files and not seen by us normally. Thus allowing you to store a pdf file with “.txt” extension and still be able to use pdf viewer to open the file. How cool is that 🙂 or how confusing is that 🙁

6) Applications

Some would say that the number of applications available on Windows is much more that available on Linux. Oh yeah, surely and how many of them you can use or rather how many of them are required. If not all, most of the useful ones are paid. So, you need to buy a license to use it. This is not the case with Linux, you have some couple of thousands of applications with mostly very decent GUI’s developed by Open Source advocates. And they were actually generous enough to compile it to “.exe” for the windows also.

7) Fanboys

The main reason for liking any one of the OS is probably because you met a Windows fanboy first so you also became a Windows fanboy. If you met a Linux fanboy first then you would become a Linux fan. Okay, there are chances that you met a more hardcore fanboy of the other side of the war, then he might convert you to his side and win over you.

I will leave it at abrupt end, so that it can tickle some more thoughts in both you and me 🙂

Enhanced by Zemanta

bash debug – log all executed commands

Screenshot of a Bash 3.1 session demonstrating...
Screenshot of a Bash 3.1 session demonstrating its particularities. Shows exporting a variable, alias, type, Bash’s kill, environment variables PS1, BASH_VERSION and SHELLOPTS, redirecting standard output and standard error and history expansion. A POSIX session is launched from a normal session. Finally, the POSIX session kills itself (since just “exit” would be too boring). (Photo credit: Wikipedia)

Whenever I am writing a script in perl or bash, I always wish that there
was some way to have all the commands logged or output to screen. I know
there is “set -x” option to have debugging enabled, but sometimes that
seems to be too much information and I dont really need all that. So, here
is something I found recently for bash to log all the executed commands.

trap "echo $BASH_COMMAND" DEBUG

This will echo/print all the commands on the stdout.

 

Enhanced by Zemanta

find more information on ext2/3/4 filesystem

English: Ext3 & Ext4 file systems: fsck time v...
English: Ext3 & Ext4 file systems: fsck time vs Inode Count (Photo credit: Wikipedia)

In my previous post on check filesystem regurlarly, I mentioned tune2fs. That tool give quite a lot of information. But just in case, you did not find what you are looking for in the output, then you can get much more information on these partitions with the dumpe2fs command.

dumpe2fs

You do really get a lot of information, and here are some of them:

Filesystem volume name
Last mounted on
Filesystem UUID
Filesystem magic number
Filesystem revision #
Filesystem features
Filesystem flags
Default mount options
Filesystem state
Errors behavior
Filesystem OS type
Inode count
Block count
Reserved block count
Free blocks
Free inodes
First block
Block size
Fragment size
Reserved GDT blocks
Blocks per group
Fragments per group
Inodes per group
Inode blocks per group
Flex block group size
Filesystem created
Last mount time
Last write time
Mount count
Maximum mount count
Last checked
Check interval
Next check after
Lifetime writes
Reserved blocks uid
Reserved blocks gid
First inode
Inode size
Required extra isize
Desired extra isize
Journal inode
Default directory hash
Directory Hash Seed
Journal backup
Journal features
Journal size
Journal length
Journal sequence
Journal start

and much more……

 

Enhanced by Zemanta