Bash Scripting 5   Arguments @tutoriaLinux
Bash Scripting 5   Arguments  @tutoriaLinux
Uploaded February 2016 | Updated September 2026, 2 weeks ago
How do arguments work in Bash scripting? How can my bash script accept input? Here's a quick video covering the basics of arguments in Bash scripting. Arguments are the data that you pass in when you call a script, like "scriptname argument1 argument 2".

In real life, this is something like 'tar zcf filename.tar.gz directory' ('zcf', 'filename.tar.gz', and 'directory' are the arguments in this example).

$# -- number of args that our script was run with
$0 -- the filename of our script
$1..$n -- script arguments

Full Bash Scripting Basics Playlist: youtube.com/playlist?list=PLtK75qxsQaMIlFCcFZpTBLnaCJ0I0uiaY


The only non-video Bash scripting resource you need: tldp.org/LDP/abs/html

Step-by-step project-based Linux course for beginners: udemy.com/course/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?referralCode=19C0A7DEE2FD53C9C09D

Free Linux Sysadmin Course Playlist: youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK

DigitalOcean referral link: https://m.do.co/c/0380a1db56a6

Patreon: patreon.com/tutorialinux
Official Site & e-mail list: tutorialinux.com
Twitter: twitter.com/tutorialinux
Facebook: facebook.com/tutorialinux
Podcast: kernelpanicpodcast.com
Bash Scripting 5   ArgumentsSurvey: Choose the next TutoriaLinux Course TopicProgramming Ruby 10   Functions and AbstractionTutorialinux Is BackProgramming Ruby 09   Loops and IterationWhat Every Sysadmin Needs to Know about Tech DebtMoving from Dev to DevOpsDavid and Matthew Rage At TechAmazon AWS Tutorial #1: Cloud Sysadmin - Your First EC2 InstanceSysadmin Links 2 (Feb. 2015)FreeBSD Web Server 01 - Nginx Config Explained, PHP and MySQL SetupWeb Server Project   01 Setting up Nginx
tutoriaLinux |

Bash Scripting 5 -- Arguments

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER