Day 2 | Linux Shell Scripting Beginner To Expert Course | Basic Script Building 🔥🔥🔥

  Рет қаралды 6,352

Engr. Abhishek Roshan

Engr. Abhishek Roshan

Күн бұрын

Пікірлер: 25
@jayabalan4541
@jayabalan4541 2 ай бұрын
Super sir, I am working more then 12 years in IT industry, I am interested to move on Linux, your videos are very good.
@EngrAbhishekRoshan
@EngrAbhishekRoshan Ай бұрын
All the best for your future and go with 100 Days IT Corporate Bootcamp and unlock the secret of success. www.abhishekroshan.com/courses/100-Days-IT-Corporate-Bootcamp--Linux-Shell-Scripting-AWS-Cloud-Devops--Automation--Monitoring----Realtime-Project-668c2c25924bab7ed1d83a78
@jamespoda5621
@jamespoda5621 2 ай бұрын
your teaching ways are amazing
@EngrAbhishekRoshan
@EngrAbhishekRoshan 2 ай бұрын
Thank you and Keep watching
@debiprasadsahoo9726
@debiprasadsahoo9726 5 ай бұрын
Crystall Clear .....👣
@EngrAbhishekRoshan
@EngrAbhishekRoshan 5 ай бұрын
Thanks
@f.z5493
@f.z5493 2 ай бұрын
sir please ETL tool Informatica or monitoring tool Nagios per bhi real time scenarios issues ke liye video bnao please.
@VinothKumarVinothan
@VinothKumarVinothan 7 ай бұрын
Linux admin must know the full concept of shell or basic knowledge needed bcoz its like coding like c++
@EngrAbhishekRoshan
@EngrAbhishekRoshan 7 ай бұрын
It’s true
@VinothKumarVinothan
@VinothKumarVinothan 7 ай бұрын
​@@EngrAbhishekRoshaninterview person ask you know any script language python,shell,but I said I know basic knowledge only they r not consider
@EngrAbhishekRoshan
@EngrAbhishekRoshan 7 ай бұрын
Yes, it’s because of the role might be where they need someone expert in shell script.Just check check the JD what they are looking for
@rutikabudar359
@rutikabudar359 3 ай бұрын
In linux For-loop and user variable shell scripting same or different ?
@EngrAbhishekRoshan
@EngrAbhishekRoshan 3 ай бұрын
In Linux shell scripting, a for-loop and a user-defined variable are different concepts, although they can be used together within a script. Here's an explanation of each and how they can be related: For-loop A for-loop is a control flow statement for specifying iteration, which allows code to be executed repeatedly. Example of a For-loop #!/bin/bash for i in {1..5} do echo "Iteration $i" done This script will output: Iteration 1 Iteration 2 Iteration 3 Iteration 4 Iteration 5 User-defined Variable A user-defined variable is a variable that you create and assign a value to within your script. Example of a User-defined Variable #!/bin/bash name="Alice" echo "Hello, $name" This script will output: Hello, Alice Using For-loop with User-defined Variables You can use user-defined variables within a for-loop to perform operations on them or to control the loop's behavior. #!/bin/bash names=("Alice" "Bob" "Charlie") for name in "${names[@]}" do echo "Hello, $name" done This script will output: Hello, Alice Hello, Bob Hello, Charlie In summary, for-loops and user-defined variables are distinct but can be used together effectively in shell scripting. For-loops manage repetition, while variables store and manage data.
@rahulnair6550
@rahulnair6550 5 күн бұрын
hello sir...is the pdf available of the above video?
@EngrAbhishekRoshan
@EngrAbhishekRoshan Күн бұрын
Yes soon it will be available in my blogging website freshertube.com/
@prabhakaryadav1268
@prabhakaryadav1268 3 ай бұрын
Good Evening sir What is the purpose of -n
@EngrAbhishekRoshan
@EngrAbhishekRoshan 3 ай бұрын
This Comes Under Topic test String Comparisons. -n str1 Checks if str1 has a length greater than zero Check My Playlist Linux Shell Scripting Beginner to Expert Level Course. kzbin.info/www/bejne/eZaphWCsitqee7c kzbin.info/www/bejne/gmmroHR4ocl1fac
@user-sm8im3no6p
@user-sm8im3no6p 2 ай бұрын
Sir $UID variable is working in terminal but not in script file.
@EngrAbhishekRoshan
@EngrAbhishekRoshan 2 ай бұрын
1.Check Variable Scope: Ensure that the $UID variable is correctly defined and accessible in the script. Sometimes, variables available in the terminal might not be available in the script environment. 2.Echo the Variable: Add a line to your script to print the value of $UID to ensure it is being read correctly. echo "UID: $UID" 3.Define the Variable in the Script: UID=$(id -u) echo "UID: $UID" 4.Debugging the Script: Use set -x at the beginning of the script to enable debugging, which prints each command before executing it: #!/bin/bash set -x echo "UID: $UID"
@Revanth3018
@Revanth3018 7 ай бұрын
What terminal using
@EngrAbhishekRoshan
@EngrAbhishekRoshan 7 ай бұрын
I am using mobaxterm to connect to VM's .check my previous videos where i have explained how download mobaxtern and connect to VM's.
@abhilashrathod3341
@abhilashrathod3341 3 ай бұрын
Sir, where do I find notes PDF?
@EngrAbhishekRoshan
@EngrAbhishekRoshan 3 ай бұрын
check my blogging website..freshertube.com/ but work in progress
@pavangurav3609
@pavangurav3609 2 ай бұрын
Im not able to go in scripts dir Using below command cd / scripts/ What could be the issue
@EngrAbhishekRoshan
@EngrAbhishekRoshan Ай бұрын
use this script to go inside /scripts dir #!/bin/bash # Navigate to /script directory cd /scripts # Check if the cd command was successful if [ $? -eq 0 ]; then echo "Successfully navigated to /scripts directory." else echo "Failed to navigate to /scripts directory." exit 1 fi Give execute permission to script. #chmod 755 navigate_to_script.sh Execute the script #./navigate_to_script.sh
МАИНКРАФТ В РЕАЛЬНОЙ ЖИЗНИ!🌍 @Mikecrab
00:31
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 37 МЛН
Write Your Own Bash Scripts for Automation [Tutorial]
16:35
Null Byte
Рет қаралды 764 М.
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 248 М.
you need to learn BASH Scripting RIGHT NOW!! // EP 1
12:14
NetworkChuck
Рет қаралды 1 МЛН
Understanding Variables on the Linux Command-Line
18:01
Learn Linux TV
Рет қаралды 16 М.
Kubernetes Course - Full Beginners Tutorial (Containerize Your Apps!)
2:58:01
BASH scripting will change your life
14:18
NetworkChuck
Рет қаралды 1 МЛН