filmov
tv
Shell Scripting | Disk Usage Monitor 1 day auto | #automation | #devops | #python | #linux | #reels

Показать описание
Shell Scripting | These are random shell scripting videos created to learn and understand the ways of various scripting can done.
We are displaying how to automate disk usage monitoring using shell script which is useful in cases where excessively large number of leftover files may occupy disk space and may lead to data loss. So to prevent data loss we have introduced disk usage monitoring automation to keep your filesystem health checkups regularly.
------------------------------------------------------------------------------------------
Basic concepts:
We have used basic file system command - df, which is used display total space and available space usage on the file system.
We have used /(root filesystem) - It is the top-level filesystem directory, where it must include every file needed to boot the Linux system before another filesystem is mounted. Therefore it is critical to monitor.
#!/bin/bash is known as Shebang used at the start of the script to use bash as a default shell.
grep command - global expression, used to search for lines matching a specific pattern and print the output of the lines matched.
We included grep -vE, where -v is used to exclude pattern mentioned and include lines not matching. -E used to used to specify multiple search patterns.
AWK command - used for pattern scanning and print particular column. In our case it's printing 5th column.
Sed command - Stream editor, used to perform multiple functions such as searching, find and replace, etc. In our case to get integer value as threshold - DISK_USAGE_CHECK=50 and not as 50% which we get from df command to exclude percentage with integer.
Color Output - used to produce text in color format.
YELLOW color code - \033[0;33m
GREEN color code - \033[0;32m
RESET code - \033[0m
if-else statement used to make decisions and run different blocks of code based on particular condition the script needs to operate.
-gt - greater than
------------------------------------------------------------------------------------------
#shellscripting #scripting #automation #python #reels #youtubeshorts #linux #randomscripting #random #programming #devops #regularexpressions #devopsengineer #computerscience #datascience #cloudcomputing #sysadmin #unix #pythonprogramming #coding #docker #kubernetes #sitereliabilityengineering #softwaredeveloper #azure #aws #software #softwareengineer #shell #ruby #youtuber #youtube #solitare #games #gaming #pc #ansible #monitoring #disk #awk #grep #sed #shorts #popular #trending #like #ai #shortvideo #happyrepublicday #indian #indianarmy #jaihind #26thjanuary #2024
--------------------------------------------------------------------------------------------
Other Links:
#chef #food #foodie
#gameplay #gaming
#roblox link --
-------------------------------------------------------------------------------------------------------------------
We are displaying how to automate disk usage monitoring using shell script which is useful in cases where excessively large number of leftover files may occupy disk space and may lead to data loss. So to prevent data loss we have introduced disk usage monitoring automation to keep your filesystem health checkups regularly.
------------------------------------------------------------------------------------------
Basic concepts:
We have used basic file system command - df, which is used display total space and available space usage on the file system.
We have used /(root filesystem) - It is the top-level filesystem directory, where it must include every file needed to boot the Linux system before another filesystem is mounted. Therefore it is critical to monitor.
#!/bin/bash is known as Shebang used at the start of the script to use bash as a default shell.
grep command - global expression, used to search for lines matching a specific pattern and print the output of the lines matched.
We included grep -vE, where -v is used to exclude pattern mentioned and include lines not matching. -E used to used to specify multiple search patterns.
AWK command - used for pattern scanning and print particular column. In our case it's printing 5th column.
Sed command - Stream editor, used to perform multiple functions such as searching, find and replace, etc. In our case to get integer value as threshold - DISK_USAGE_CHECK=50 and not as 50% which we get from df command to exclude percentage with integer.
Color Output - used to produce text in color format.
YELLOW color code - \033[0;33m
GREEN color code - \033[0;32m
RESET code - \033[0m
if-else statement used to make decisions and run different blocks of code based on particular condition the script needs to operate.
-gt - greater than
------------------------------------------------------------------------------------------
#shellscripting #scripting #automation #python #reels #youtubeshorts #linux #randomscripting #random #programming #devops #regularexpressions #devopsengineer #computerscience #datascience #cloudcomputing #sysadmin #unix #pythonprogramming #coding #docker #kubernetes #sitereliabilityengineering #softwaredeveloper #azure #aws #software #softwareengineer #shell #ruby #youtuber #youtube #solitare #games #gaming #pc #ansible #monitoring #disk #awk #grep #sed #shorts #popular #trending #like #ai #shortvideo #happyrepublicday #indian #indianarmy #jaihind #26thjanuary #2024
--------------------------------------------------------------------------------------------
Other Links:
#chef #food #foodie
#gameplay #gaming
#roblox link --
-------------------------------------------------------------------------------------------------------------------