You are Here:
Linux Lite 4.2 Final has been released. See the Release Announcements Section.



Poll

What shell do YOU use for scripting or command-line on LL?

bash
7 (87.5%)
csh
0 (0%)
tcsh
0 (0%)
fish
1 (12.5%)
Other shell, or 2 shells for different purposes (please comment)
0 (0%)

Total Members Voted: 8

What shell do YOU use for scripting or command-line on LL?

Author (Read 1454 times)

0 Members and 1 Guest are viewing this topic.

What shell do YOU use for scripting or command-line on LL?
« on: June 13, 2018, 10:00:00 AM »
 

Vera

  • PayPal Supporter
  • Forum Regular
  • *****
  • 139
    Posts
  • Country: 00
  • Reputation: 15
  • Enjoying Linux Lite.

  • Linux Lite: 3.4 64bit

  • CPU: Intel Quad Core 1.6GHz

  • MEMORY: 8Gb

  • VIDEO CARD: AMD Radeon
Interested to see what shell people are using for their scripting and/or command-line purposes. Thanks!
Using Linux Lite for everything now. I put it on my desktop and my laptop. Woohoo!
 


Re: What shell do YOU use for scripting or command-line on LL?
« Reply #1 on: September 12, 2018, 04:38:24 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2794
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
I am learning to use bash.
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #2 on: September 13, 2018, 06:06:12 PM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Country: fi
  • Reputation: 65
  • Linux Lite Member

  • Linux Lite: 4.0 64bit

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
I am learning to use bash.

GZ man, and Vera too, of course!
Shell scripting is the most powerful tool to use. And a child can learn it (with the time they use in
all those 'social media' sites).

Ps.
To Vera: I begin the scripts with
#!/bin/bash
# explicitely, because bash is the best shell but it is not the default shell in LL
Last Edit: September 13, 2018, 06:09:36 PM by kpanic
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #3 on: September 13, 2018, 07:07:01 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2794
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
I am learning to use bash.

GZ woman, and Vera too, of course!
Shell scripting is the most powerful tool to use. And a child can learn it (with the time they use in
all those 'social media' sites).

Ps.
To Vera: I begin the scripts with
#!/bin/bash
# explicitely, because bash is the best shell but it is not the default shell in LL

 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #4 on: September 14, 2018, 07:15:46 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2794
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
There is some scripting at the end of the Linux Command Line book I use, I am not anywhere near the end yet, as I learn slowly and stop start when disrupted for long periods at a time.
I also learn from Linux Bible, need to fix virtualbox before can carry on with that. Just havent been motivated to do so yet.
After these books I have the one to start titled,  Linux Command Line and Shell Scripting Bible.
Hopefully in some future year when/if I manage to complete those I will have a basic foundation to progress from.

I use social sites such as this forum, and YouTube for music.

Is it like the shebang ?

Code: [Select]
#!/usr/bin/env python
I used in the first Python apps I made so they execute
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #5 on: September 14, 2018, 11:12:38 PM »
 

Moltke

  • I come here a lot
  • *****
  • 392
    Posts
  • Country: ve
  • Reputation: 60
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750
Quote
explicitely, because bash is the best shell but it is not the default shell in LL
 
@kpanic
To stablish bash as your default shell you can use the cat and chsh commands. First, in your terminal type
Code: [Select]
$ cat /etc/shells

This will list all available/installed shells in your system, then use chsh to change to a different shell, say bash.
Code: [Select]
$ chsh -s /usr/bash

it will ask for your password, type it in, logout/login, open a terminal, type
Code: [Select]
$ echo $Shell and you should see the new shell's name displayed.






@bitsnpcs  there's a very good book you might find quite helpful; The Linux Shell Scripting Cookbook. You can grab it here: https://gutl.jovenclub.cu/wp-content/uploads/2013/10/Linux.Shell_.Scripting.Cookbook.pdf

Without each others help there ain't no hope for us :)
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #6 on: September 15, 2018, 03:15:17 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2794
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
@bitsnpcs  there's a very good book you might find quite helpful; The Linux Shell Scripting Cookbook. You can grab it here: https://gutl.jovenclub.cu/wp-content/uploads/2013/10/Linux.Shell_.Scripting.Cookbook.pdf

@Moltke Thank You, I've grabbed it and will work through it :)
I have done the first example in book




I like it 8) do you want to make a thread for this book @Moltke ?
I had a play with the options at end of the section, and some trial/error spacing, I wasn't able to get Name  and Mark in to the centre of their color blocks yet, also had to copy/paste the name character as wasn't sure how to do it in terminal -

Last Edit: September 15, 2018, 07:45:08 AM by bitsnpcs
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #7 on: September 15, 2018, 09:51:19 AM »
 

Moltke

  • I come here a lot
  • *****
  • 392
    Posts
  • Country: ve
  • Reputation: 60
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750
Quote
I like it 8) do you want to make a thread for this book @Moltke?

@bitsnpcs  I'd love to! :) I've been reading it and trying some of the examples in the book, and it'll be really helpful to share ideas, doubts, experience, thoughts with someone else and thus improving the learning experience, so sure, let's make it happen! There's only one thing you should know; I might not be able to post an answer/reply as soon as I wish. I'm dealing with some problems with my wired connection and as a matter of fact I'm currently using a usb dongle and it's bandwith limited so the pc isn't online 24/7 but only when I want/need it to. Other than that I'd be more than happy to be patr of it!  ;D 

BTW, I just noticed there's a revisited third edition of the book published last year, the one you and I have is the second one. I don't know what the differences might be, if any though, but you can grab it here: https://coderprog.com/linux-shell-scripting-cookbook-3rd/

Also, I found this other one and it lloks quite interesting https://www.pdfdrive.com/pro-bash-programming-scripting-the-gnulinux-shell-e18888064.html
Last Edit: September 15, 2018, 10:13:13 AM by Moltke
Without each others help there ain't no hope for us :)
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #8 on: September 15, 2018, 10:37:38 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2794
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
@Moltke that will be great 8) , I understand about your connection at the moment.

Thank you for the links. :)
It appears the third version has lots of empty space, maybe missing images. Example in Second edition I am on page 32, this is spread out and up to page 106 in the third edition.

I'll work through the pro bash book too, it does look interesting as well.
Last Edit: September 15, 2018, 10:43:08 AM by bitsnpcs
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #9 on: September 16, 2018, 10:47:16 AM »
 

Moltke

  • I come here a lot
  • *****
  • 392
    Posts
  • Country: ve
  • Reputation: 60
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750
Quote
It appears the third version has lots of empty space, maybe missing images

@bitsnpcs  yes, you're right. I noticed that too. Anyway, it doesn't seem to be too many changes from the second edition, so I guess we're good using that one.  ;D
I just found this https://bash.cyberciti.biz/guide/Main_Page it has several examples and explanatios are quite clear. I think it's a good resource for learning scripting and bash. Hope you like it. :)

cheers!
Without each others help there ain't no hope for us :)
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #10 on: September 16, 2018, 01:50:20 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2794
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
Quote
It appears the third version has lots of empty space, maybe missing images

@bitsnpcs  yes, you're right. I noticed that too. Anyway, it doesn't seem to be too many changes from the second edition, so I guess we're good using that one.  ;D
I just found this https://bash.cyberciti.biz/guide/Main_Page it has several examples and explanatios are quite clear. I think it's a good resource for learning scripting and bash. Hope you like it. :)

cheers!

@Moltke  yes it will be good using the second edition.
Thank You for the link, I've saved it, I'll work through the current 2 books (second edition and pro bash) first it will be useful for the examples and explanations as you wrote :)
Last Edit: September 16, 2018, 01:52:42 PM by bitsnpcs
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #11 on: September 16, 2018, 05:00:25 PM »
 

Vera

  • PayPal Supporter
  • Forum Regular
  • *****
  • 139
    Posts
  • Country: 00
  • Reputation: 15
  • Enjoying Linux Lite.

  • Linux Lite: 3.4 64bit

  • CPU: Intel Quad Core 1.6GHz

  • MEMORY: 8Gb

  • VIDEO CARD: AMD Radeon
Thanks for the helpful links about scripting, @Moltke .

I use the fish shell https://fishshell.com/ for most of my stuff (I installed it via Synaptic). It's very user-friendly, and has good use of color.

On the command-line, if I type in something that looks syntactically wrong to the shell, it'll highlight it in red, which is helpful to me. It also displays autosuggest on command line without me needing to hit tab or whatever (just hit right arrow to accept autosuggestion, or carry on typing whatever I was typing if I don't want to accept autosuggestion).

I still have bash as my login user shell, but I switch to the fish shell for 99% of whatever I'm doing, including shell scripting. The fish shell just seems more intuitive to me, and the autosuggest feature on command line has definitely resulted in me getting things done a lot faster.
Using Linux Lite for everything now. I put it on my desktop and my laptop. Woohoo!
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #12 on: September 16, 2018, 10:22:07 PM »
 

Moltke

  • I come here a lot
  • *****
  • 392
    Posts
  • Country: ve
  • Reputation: 60
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750
You're welcome @Vera

Quote
The fish shell just seems more intuitive to me, and the autosuggest feature on command line has definitely resulted in me getting things done a lot faster.

I also use fish for repetitive tasks since as you stated its auto-completion feature is most useful in those cases, so I don't have to type over and over the same commands. But I use bash as the default one. Truth is I don't do/know much scripting, I'm learning how to. :)

You're very welcome @bitsnpcs glad you found it useful.
Without each others help there ain't no hope for us :)
 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #13 on: September 16, 2018, 10:24:56 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 2794
    Posts
  • Country: ie
  • Reputation: 280
    • Linux RootsnRelaxation

  • Linux Lite: 3.2 64bit
@Moltke can you add the links in to the threads for the 2 books please ? :)

 

Re: What shell do YOU use for scripting or command-line on LL?
« Reply #14 on: September 16, 2018, 10:33:25 PM »
 

Moltke

  • I come here a lot
  • *****
  • 392
    Posts
  • Country: ve
  • Reputation: 60
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750
Quote
@Moltke can you add the links in to the threads for the 2 books please ? :)

Sure, I will. :)
Without each others help there ain't no hope for us :)
 


Tags:
 


Linux Lite 4.2 Final has been released. See the Release Announcements Section.