GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - techarkit/shell-scripting-tutorial: A complete begineers guide to learn shell scripting from scratch which includes Videos, Practice scenarios and project idea.

BranchesTags
Open more actions menu

Latest commit

 

History

99 Commits
99 Commits

Folders and files

NameName
Last commit message
Last commit date
AWS
AWS
 
 
Arthemetic-Operators.sh
Arthemetic-Operators.sh
 
 
AutomateLoginSSH.sh
AutomateLoginSSH.sh
 
 
CpuMemDisk.sh
CpuMemDisk.sh
 
 
Even_or_Odd_Number.sh
Even_or_Odd_Number.sh
 
 
ExamResults.sh
ExamResults.sh
 
 
Logical-operators.sh
Logical-operators.sh
 
 
README.md
README.md
 
 
add.sh
add.sh
 
 
agtb.sh
agtb.sh
 
 
answers.sh
answers.sh
 
 
arithmetic.sh
arithmetic.sh
 
 
array.sh
array.sh
 
 
casestatement.sh
casestatement.sh
 
 
collectroothistory.sh
collectroothistory.sh
 
 
continue.sh
continue.sh
 
 
convert_and_update_mysql.sh
convert_and_update_mysql.sh
 
 
countargs.sh
countargs.sh
 
 
cpualert.sh
cpualert.sh
 
 
details.sh
details.sh
 
 
diskover-2.1.1.zip
diskover-2.1.1.zip
 
 
diskspace.sh
diskspace.sh
 
 
echo.sh
echo.sh
 
 
eval.sh
eval.sh
 
 
extract.sh
extract.sh
 
 
for-loop.sh
for-loop.sh
 
 
forloop.sh
forloop.sh
 
 
function.sh
function.sh
 
 
functions.sh
functions.sh
 
 
generate_win_host_config.sh
generate_win_host_config.sh
 
 
getopts.sh
getopts.sh
 
 
helloworld.sh
helloworld.sh
 
 
heredoc.sh
heredoc.sh
 
 
hi.sh
hi.sh
 
 
if-elif-if.sh
if-elif-if.sh
 
 
if-else-statement.sh
if-else-statement.sh
 
 
if-statement.sh
if-statement.sh
 
 
ifs.sh
ifs.sh
 
 
info.sh
info.sh
 
 
memusage.sh
memusage.sh
 
 
morethanxdays.sh
morethanxdays.sh
 
 
multiplication.sh
multiplication.sh
 
 
myfirstscript.sh
myfirstscript.sh
 
 
nestedif.sh
nestedif.sh
 
 
or-operator.sh
or-operator.sh
 
 
oroper.sh
oroper.sh
 
 
questions.sh
questions.sh
 
 
quotes.sh
quotes.sh
 
 
regex.sh
regex.sh
 
 
relationaloper.sh
relationaloper.sh
 
 
remoteload.sh
remoteload.sh
 
 
serverinformation.sh
serverinformation.sh
 
 
setbashfeature.sh
setbashfeature.sh
 
 
shiftparameters.sh
shiftparameters.sh
 
 
spacialvariables.sh
spacialvariables.sh
 
 
systemload.sh
systemload.sh
 
 
uadd.sh
uadd.sh
 
 
ud.sh
ud.sh
 
 
untiloop.sh
untiloop.sh
 
 
useradd.sh
useradd.sh
 
 
useradd_improved.sh
useradd_improved.sh
 
 
userexists.sh
userexists.sh
 
 
variables.sh
variables.sh
 
 
webserver_ubuntu.sh
webserver_ubuntu.sh
 
 
while-loop.sh
while-loop.sh
 
 

Repository files navigation

Shell Scripting Tutorial

Keep in touch with for any kind of technical questions

Shell Scripting for Amazon Web Services to Manage it's resources

https://techtutorials.github.io/shell-scripting-tutorial/

  • Facebook
  • Email List
  • Linkedin
  • Twitter
  • Youtube
  • Email Address
  • WhatsApp Group
  • Linux Telegram Group
  • Reddit TechTutorials
  • Tumblr

A complete begineers guide to learn shell scripting from scratch which includes Videos, Practice scenarios and project idea. I will create one file for one topic with code.

Before jumping into the Shell scripting below are commands you have to practice for better understanding and familiar with Linux command line interface.

If you do not learn below commands also fine but i personally recommend you to learn commands first.

103 Linux Commands Video Tutorial

alias and unalias, arch, arp, at, awk, bc, blkid, cal, cat, cd, chage, chattr, chgrp, chmod, chown, cp, cpio, crontab, curl, cut, date, dd, df, diff, dig, dnf, du, expr, fdisk, file, find, firewall-cmd, free, ftp, grep, head, history, hostname, id, ifconfig, iostat, ip, kill, last, lessandmore, ln, locate, lpstatandlpadmin, ls, lsof, lspci, mail, man, mdadm, mkdirandrmdir, mkisofs, mount, mutt, mv, nano, netstat, nice, renice, nslookup, passwd, pam_tally2, paste, ping, perloneliner, pkill, ps, pwd, reboot, poweroff, rm, rpm, rsync, scp, screen, sed, sort, ss, ssh, sysctl, tail, tar, tcpdump, top, touch, tr, traceroute, umask, uname, uniq, uptime, useradd, vi, vmstat, w, who, watch, wc, wget, ypcat, yppasswd, yum, zip, sar

After that start learning shell scripting using below topics

  • Shell Scripting Video Tutorial
  • Shell Scripting course Overview
  • Linux Basics
  • Linux Directory Structure
  • Linux Basic Commands
  • Copy, Remove, Move and Time Commands
  • Dif and Grep Commands
  • Head, tail, sort and more commands
  • tr and wc commands
  • Disk utilities like fdisk, df and du commands
  • Getting Help From Command Line user Interface
  • w, who, hostnamem hostnamectl and uname commands
  • Search for files and directories using find and locate commands
  • top command its output explanation
  • vi & vim text editor
  • sed, awk, vmstat and nestat commands
  • vnstat command
  • Introduction to Graphical user interface
  • cut command
  • Merge multiple files using paste command
  • Connect and Manage remote machine using SSH
  • Changing files and directory permissions
  • tar and zip commands
  • Scheduling future jobs using crontab
  • difference between scripting and programming
  • what is shell scripting and it's advantages
  • PATH environment variable
  • Symbols used shell scripting
  • Make Shell Script Template
  • Quotes single, double and reverse - Know difference between each
  • Bash colors
  • Script exit status
  • Variables and it's rules
  • Special Variables
  • Environment Variables, system variables and user defined variables
  • Constant variables, Local & Global variables and Special variables
  • Positional Parameters
  • Count number command line arguments $#
  • Arithmetic Operators
  • Relational Operators
  • LogicalOperators
  • Boolean Operators
  • Maths using expr command
  • Real maths using bc command
  • if statement
  • if-else statement
  • if-else-if statement
  • Nested if statement
  • Case statement
  • For Loop
  • While Loop
  • Until Loop
  • Functions
  • Arrays
  • Eval command
  • Shifting parameters using shift command
  • IFS - Input Field Separator
  • Writing CPU Usage script
  • Writing Disk Utilization script
  • Trouble shooting debugging shell scripts
  • Checking shell script errors and improvements using shellcheck.net site
  • Here Document to write paragraphs of text
  • Getopts Function
  • Executing Multiple scripts from single script
  • logger logging messages to log file

Resource to Download

  • Shell Scripting Book
  • Shell Scripting Book
  • Shell Scripting Book
  • Shell Scripting Book

Write Your Own Method of Script for below Scenario

  • Scenario: Everyday from Monday to Friday one directory will be created under /fullbackup/dailybackup/YYYY-MM-DD and it will move backup to its parent directory everyday midnight /fullbackup/archive/, However Saturday, Sunday and Monday directories will move to /fullbackup/archive path every monday evening.

  • Directory Names Example: 2018-12-24 2018-12-25 2018-12-26 2018-12-27 2018-12-28

  • Question: I would like to delete directories older than two days from /fullbackup/archive path. How do you do it using any scripting methods.

  • Problem Statement: I was trying to use find /path/ -type d -mtime +2 -print0 | xargs -r0 rm --. This command does not work as expected due to directory modified date for SAT, SUN and MON moved directories same for all as Monday date.

  • How Do you solve it.?? Write Shell Script to accomplish this task. Should run through crontab and clear directories older than two days.

About

A complete begineers guide to learn shell scripting from scratch which includes Videos, Practice scenarios and project idea.

Topics

bashlinuxlinux-commandloopprogrammingscriptingscripting-tutorial

Resources

Readme
Activity

Stars

697 stars

Watchers

20 watching

Forks

646 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.