What is Bash Scripting?
Ғылым және технология
This video explains what is Bash scripting and teaches you how to write your first shell script file.
A Bash script is a text file that contains raw Bash commands, that the Linux system can understand. Instead of typing the commands manually one by one in your Linux terminal, you add all the commands in a text file and asks your OS shell to execute them all at once.
Bash script is also a full-featured programming language, where you can write conditionals (if-else) statements, while-loops, for-loops, declare and use variables, and several other high-level elements that can really help you as a system administrator or developer.
You will learn how to create a shell file, add Linux shell commands to it, and ask Bash to execute and interpret the contents of your code.
Finally, we quickly review where and why Bash scripting is used and how it can help UNIX and Linux administrators and programmers.
Bash scripts work on Linux, UNIX, and also macOS operating systems.
For a complete and comprehensive course on the Linux command-line and Bash scripting, visit: courses.pikuma.com/courses/li...
SUBSCRIBE @pikuma to learn more about computer science topics.
Follow me on Twitter:
/ pikumalondon
Пікірлер: 51
see? this is not a difficult topic, yet I've watched 5 different videos before this one, and all of them just made me more confused thanks for the help this was super clear
@ayoolafakoya9841
3 жыл бұрын
same here, I just kept seeing long-form videos that complicated it for beginners like me.
@clayjohnathan6734
2 жыл бұрын
i guess Im asking the wrong place but does anyone know a trick to log back into an Instagram account..? I stupidly forgot the password. I would love any help you can offer me.
My word this was the clearest explanation of bash
As an OpenBSD user, it's refreshing to see you mention the portability use of /bin/sh.
This is perfectly explained; helped me understand the whole concept quite succinctly.
@pikuma
4 жыл бұрын
Thank you
@Dan_0993
Жыл бұрын
I agree, it was succulent 😩
Was very helpful, thankyou
Very clear. Thank you
Excellent, clear Explanation to what BASH is. Thank you. Keep making these great videos.
this is just awesome!!!!
What a beautiful and organized way of explaining. Helped me understand very clearly. Definitely saving it.
@pikuma
4 жыл бұрын
Thank you
@farhanisane3052
2 жыл бұрын
Ikr .....same .... just an amazing video
THANK YOU SO MUCH!
Awesome!
Thank you a lot man, very clear.
Awesome ❤️
Thanks!! 👏👏
It's the first video that made me understand something on this topic so far. It's an excellent explanation for newbies like me to follow. Thank you so much for this opportunity.
Perfect !
Great!!
Thank you for explaining 👍
super helpful, thanks!
Thanks
greatt intro, thanx
This is an excellent basic intro to Bash Scripting. Great job! I only wish the audio quality was better though. :)
@pikuma
4 жыл бұрын
Thank you, Pralak.
@sKprmAN
3 жыл бұрын
the audio is perfect here
To easy to understand and well explained
@pikuma
4 жыл бұрын
Thank you
Very good explanation. Thanks
I am learning linux in class 7 and it is easy but i was unable to understand bash i also looked for some other video as well but didn't understood bash and then i got this and its pretty easy
if you run $ bash $ bash $ bash is there a way to see the stack order? I currently run ps -f and look at parent relationships, but wondering if there is another way?
Loops in bash! 🤯
@selehadinhabesi3855
3 жыл бұрын
mind blown
Can i write scripts to automate web searches?
brooooooooooooooooooooooooooooooooooooooooooooooooooo
Bash
@FredrickTheDog
3 жыл бұрын
What?
@andrew8300
2 жыл бұрын
@@FredrickTheDog Bash
@artoholic5340
2 жыл бұрын
@@FredrickTheDog bash
@FredrickTheDog
2 жыл бұрын
@@artoholic5340 what does that mean?
@artoholic5340
2 жыл бұрын
@@FredrickTheDog lol idk... was just continuing the chain
^^
Bash$$$ user
And DON'T use extensions on executables; imagine if you had to type "ls.exe" every time? The UNIX-like operating systems abstract this on purpose: it is the executable bit (x) which tells the OS whether a file is executable or not; there is purposely no distinction between a binary and interpreted executables. A user should never need to know or care about which format the executable is in, and in the rare case where they care, there is a file command for this purpose: man file. A shell script executable should behave exactly the same as all the executables in /usr/bin/. That means: no postfix extensions, of any kind.
@pikuma
Жыл бұрын
I remember the first time I saw the "[" file in the bin folder and it blew my mind! 🙂
@AnnatarTheMaia
Жыл бұрын
@@pikuma there are no folders on UNIX or UNIX-like systems; even on Windows, a folder is a marketing term only used inside of the EXPLORER.EXE application; Even the CMD.EXE's DIR command shows directories. As for [, it's just a symbolic link to the test(1) application; traditionally, there were always UNIX applications which would change their personality / behavior based on with which name they were called; sendmail(1) is another such application, where mailq is a symbolic link and then sendmail displays the queue instead of acting like a mail transfer agent. Welcome to UNIX!