Results 1 to 6 of 6

Thread: Linux Shell Question

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Linux Shell Question

    Hi,

    My plan for this year is taking my switch to open source further by learning Linux well, then move on to C and C++ programming. Maybe either or both Java and Phyton. (already played with writing some C program, and really cannot see where is the "oh, that's too hard" come from)

    Anyhow, working my way through this book (Linux, 6th Edition) and doing good.

    But the book explain a new topic, then how to do it in Bash shell, and then the differences in the TCSH, Korn, C shells (scuse stupid talking, I'm still a noob)
    Thing is when u learn, you don't remember it all, especially same thing in different shells.

    So I"m just curious. Which shell should I focus on, make sure I remember the syntax and rules (say for control structures) if my future plan is not linux admin or something, but programming on Linux (in C, C++, php, phyton, java, etc)

    Reading back it sounds stupid. No need really care the shell. But I just like to be able to do everything in the shell. Feels cool.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  2. #2
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: Linux Shell Question

    I would say that Bash is the best option to learn, because it is used in so many places. It is an extension of Bourne shell (sh), which is used for almost all system scripts (eg. init scripts) throughout the various linux distros. It does also help to learn the differences between Bash and sh incase you are in a situation where you only have a sh-compatible shell (ash/dash). Zsh is another shell based on the bourne shell.

    If you're just looking for a shell to use and not bother with programming, you might want to consider fish, the Friendly Interactive SHell (http://www.fishshell.org/).
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Linux Shell Question

    Definitely Bash. It is by far the most commonly used Linux shell in use today. Once you have learned that to a high level you may want to consider learning the differences that Korn shell (Ksh) has to offer. But to be honest many of the features in Ksh are already incorporated into Bash anyway.

    Quote Originally Posted by StrangerInBeijing
    But I just like to be able to do everything in the shell. Feels cool.
    Damn right it does! It's the only way to live.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Linux Shell Question

    Fish is pretty neat. I'm trying it now. The autocompletion feature is very handy.

    I agree that bash (sh) is the most useful to learn initially.

  5. #5
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Linux Shell Question

    The other major consideration (IMHO) is being able to use any system you find yourself using... Bash will let you do this, because it is essentially universal.

    Getting too dependent on a non-standard set of tools (Fish, Joe, eclipse etc...) may make your life easier in the short term but could ultimately limit your flexibility when other systems appear on the horizon.

    $0.02
    I don't live here any more.

  6. #6
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: Linux Shell Question

    Quote Originally Posted by wossname
    The other major consideration (IMHO) is being able to use any system you find yourself using... Bash will let you do this, because it is essentially universal.

    Getting too dependent on a non-standard set of tools (Fish, Joe, eclipse etc...) may make your life easier in the short term but could ultimately limit your flexibility when other systems appear on the horizon.

    $0.02
    On the subject of learning universal tools, you should start learning a few of the basic VI commands, since it is the only editor that is really guaranteed to exist on any unix/linux system. The "vimtutor" program that comes with the Vim text editor is a great intro, but make sure not to just learn any Vim extensions as they are not compatible with the original VI.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width