LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2018, 12:53 AM   #1
oscarlilam
LQ Newbie
 
Registered: May 2018
Posts: 2

Rep: Reputation: 0
Useful resource to learn Linux shell commands


Hi everyone,

I'm looking for resources to learn Linux shell commands and writing custom shell in Linux. Please guide me.
 
Old 05-10-2018, 02:02 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,106

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
first of all you have most probably an installed linux somewhere, this is the most important resource you can use.
You can go to www.tldp.org to learn. for example http://tldp.org/LDP/Bash-Beginners-Guide/html/.
I do not really understand what do you mean by "writing custom shell".
 
Old 05-10-2018, 03:41 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,379
Blog Entries: 3

Rep: Reputation: 3772Reputation: 3772Reputation: 3772Reputation: 3772Reputation: 3772Reputation: 3772Reputation: 3772Reputation: 3772Reputation: 3772Reputation: 3772Reputation: 3772
In addition to the above guidance, these three are very helpful for learning shell scripting:

https://mywiki.wooledge.org/BashPitfalls
https://mywiki.wooledge.org/BashGuide
https://mywiki.wooledge.org/BashFAQ

However, it helps not to think of programs as "commands" that you learn in advance but to recognize them as a collection of useful utilities which each do one thing well. And as such you can approach it from a programming perspective and learn them just-in-time as needed. If you do that, then it is useful to learn to navigate the system and be able to find the right tool for any given task.

You can see all the utilities that are installed on your system using apropos by searching all manual pages from sections 1, 5, and 8:

Code:
apropos -s 1,5,8 -w '*'
apropos -s 1,5,8 -w '*' | more
apropos -s 1,5,8 -w '*' | less
man apropos
man more
man less
man man
Towards the bottom of the manual pages, there is also a "See Also" section which is often quite helpful when looking for the right utility. Also, keep in mind that the manual pages are reference manuals not tutorials or guides. Look to the Web for guides or tutorials, or ask here. The manual pages do vary in quality though and while some are very, very good some are less so.
 
Old 05-10-2018, 07:26 AM   #4
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
I assume the guy asks about shell script. But these are usually limited to one shell you choose.

When you want to learn bash. You should use a distro which focus on customisation like gentoo. I would not use mint / fedora and such. When you have to do basic tasks in a shell regularly when you update your box, your knowledge will increase over the time. when you use graphical user interfaces it will not.

Last edited by _roman_; 05-10-2018 at 07:28 AM.
 
Old 05-10-2018, 10:07 AM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
"The Linux Command Line", download the pdf, or buy the book.
http://linuxcommand.org/tlcl.php
 
Old 05-10-2018, 11:01 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,155

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
Here's a student's tutorial
http://www.ee.surrey.ac.uk/Teaching/Unix/
This is also handy
http://mywiki.wooledge.org/BashGuide

Be patient with yourself and don't try to learn too fast!
 
Old 05-10-2018, 03:55 PM   #7
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 236

Rep: Reputation: 64
You can download 'The Linux Command Line' book in PDF format here.
 
Old 05-11-2018, 12:48 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,106

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
Quote:
Originally Posted by _roman_ View Post
I assume the guy asks about shell script.
No, (s)he just posted some windows related links to payware...

https://www.linuxquestions.org/quest...5/#post5852727
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Learn Linux Commands madnan Linux - Newbie 7 09-06-2015 08:14 PM
new, learn about Linux, commands poetstorm Linux - Newbie 8 12-04-2008 08:02 AM
i want to learn the linux commands bloopy901 Linux - Newbie 7 02-13-2005 10:15 AM
where can i learn basic linux commands rybing Linux - Newbie 7 12-19-2003 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration