You are Here:
Join our DISCORD Server - See the 'On Topic' section



Poll

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

bash
8 (88.9%)
csh
0 (0%)
tcsh
0 (0%)
fish
1 (11.1%)
Other shell, or 2 shells for different purposes (please comment)
0 (0%)

Total Members Voted: 9

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

Author (Read 13800 times)

0 Members and 1 Guest are viewing this topic.

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

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
@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 #8 on: September 15, 2018, 09:51:19 AM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1125
    Posts
  • Reputation: 126
  • Linux Lite Member

  • Linux Lite: 5.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
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 :)
Need a translation service? https://www.deepl.com/es/translator
 

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

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
@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 #6 on: September 14, 2018, 11:12:38 PM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1125
    Posts
  • Reputation: 126
  • Linux Lite Member

  • Linux Lite: 5.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
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 :)
Need a translation service? https://www.deepl.com/es/translator
 

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

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
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 #4 on: September 13, 2018, 07:07:01 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
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 #3 on: September 13, 2018, 06:06:12 PM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Reputation: 67
  • 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 #2 on: September 12, 2018, 04:38:24 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
I am learning to use bash.
 

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

Vera

  • PayPal Supporter
  • Forum Regular
  • *****
  • 140
    Posts
  • Reputation: 16
  • 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!
 

 

-->
X Close Ad

Join our DISCORD Server - See the 'On Topic' section