The Upcoming Version of Linux Shell Scripting Tutorial v2.0

I’ve been working on the Linux Shell Scripting Tutorial v.2.0 for some time and now the updated version licensed under “Creative Commons Attribution Noncommercial Share Alike 3.0 Unported” of the same available in wiki format. It will contain a few significant changes from the previous versions of the tutorial, which includes a new topics, grammar & typo fixing and new sys admin related scripts.

The first eight updated chapters are available online at the following URL:

I’m planning to add few more chapters:

  • Shell Functions and Libraries.
  • Shell Array.
  • Writing interactive scripts.
  • Quick tour of filters such as cut, awk, sed, grep, cut, paste and sort commands.
  • Date and strings manipulation.
  • Common sys admin tasks automation such as file backup, database backup, user management, ftp, ssh, remote login, server monitoring, security, firewall, BIND dns management, web server management scripts etc

Hope you will enjoy new tutorial in wiki format! What you like, do not like or anything you feel I should improve on. If you see my mistake, typos or know of a better way to accomplish same task, please let me know. Add your feedback in the comments below.

🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
26 comments… add one
  • pasty! Dec 2, 2009 @ 12:47

    Fantastic tutorial so far – especially like the dialog chapters…..
    makes any bash script very professional.
    Especially when trying to get non unix users doing admin tasks.

    Good work.

  • Pravin Bari Oct 6, 2009 @ 6:56

    Very very useful guide specially form beginners. Such guides really help people like me. Thanks very much Vivek.

    Keep writing….

  • mekjs2001 Sep 28, 2009 @ 20:49

    For the …/Getting_User_Input_Via_Keyboard, I’d point out what the last variable looks like when more than 3 values are entered. You also might want to introduce the IFS concept here.

  • marc Sep 26, 2009 @ 0:31

    lots of thanks.

    English it’s not my mother thong, but if i find a tipo i’report it to you.


  • Philippe Sep 25, 2009 @ 23:06

    See, I think there are already a bunch of good sites,
    I think energies should merge on Wikipedia,
    there are quite a lot of pages on the subject: (Advanced Bash-Scripting Guide)

    And here a list of all sources:
    The Comprehensive List of bash Reference Documentation and Examples:

    and the reference to me [again]

    — Philippe

    • 🐧 nixCraft Sep 25, 2009 @ 23:29


      I really don’t have answers to all your questions. But, this tutorial was created way back in 1999. It was featured twice on Slashdot. This is just an updated version to 1.05. Yes, those are very good sites. The Internet is good place for sharing, gaining knowledge, and increasing competition. Competition (multiple sites sharing info) is good for consumers.


Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.