Bash Scripting School
Bash Scripting School
  • 142
  • 9 920
How to Check SSH Connectivity to a Remote Server Using Bash Scripting
In this video, we'll walk you through a simple yet powerful Bash script that lets you check the SSH connectivity to a remote server. A shell script is written to automatically test whether the user can login to the server using the ssh command or not.
มุมมอง: 16

วีดีโอ

Checking Exit Codes in Linux Individual Commands and Pipelines
มุมมอง 3616 ชั่วโมงที่ผ่านมา
What exit codes are and why they matter? In this video, we'll explore how exit codes work in pipelines. It also shows how to check the exit code for individual commands.
Bash Script : Check Internet Connection Status Using nmcli Command
มุมมอง 43วันที่ผ่านมา
This Bash script checks the internet connection status on a Linux system. It utilizes the nmcli command to retrieve the current network state, extracts the relevant information using awk, and determines whether the network is connected or not. The script outputs a message indicating the connection status.
How to check Internet connection in Linux command line
มุมมอง 7714 วันที่ผ่านมา
In this video viewers will learn various methods to verify their internet connectivity using the Linux ping, curl, wget, nmcli, dhcpcd-online and nm-online commands. You can also see more videos about network management in Linux in the playlists below: Linux shell scripts with ip command: th-cam.com/play/PLEmKfOp0HCZXKS9XYXEF-1lnYTnoe0577.html Linux shell scripts using ifconfig command: th-cam....
Bash Script: List all users and their groups on Linux
มุมมอง 3621 วันที่ผ่านมา
How to display all Linux users and groups? How to display all usernames and their groups in Linux? In this video, the list of all usernames and groups is displayed using compgen and getent commands. th-cam.com/video/fZhMOBYtpR8/w-d-xo.html My Social Media Links: Medium Blog medium.com/@linuxschooltech Tumblr Blog linuxadminhacks.tumblr.com/
Find Your WiFi SSID with Different Commands
มุมมอง 5321 วันที่ผ่านมา
Discover how to effortlessly find your WiFi SSID using various Linux commands. This tutorial covers multiple methods to extract the SSID information, from the simple iwgetid command to more complex approaches using iwconfig, iwlist, and nmcli. th-cam.com/video/EeGTSyd2o_M/w-d-xo.html You can also follow me on social networks Medium Blog medium.com/@linuxschooltech Tumblr Blog linuxadminhacks.tu...
UP or DOWN Network Interfaces with ifconfig Command in Linux
มุมมอง 4628 วันที่ผ่านมา
Learn how to control network interfaces in Linux using the ifconfig command. In this tutorial, we'll show you how to set network interfaces to UP or DOWN, and cover the basics of network administration in Linux. Whether you're a beginner or an experienced Linux user, this video will help you master the ifconfig command and take your Linux skills to the next level. Watch now and learn how to con...
How to set permanent dns nameservers in Linux
มุมมอง 185หลายเดือนก่อน
How to set DNS addresses permanently in /etc/systemd/resolved.conf file? /etc/systemd/resolved.conf is a configuration file for systemd-resolved, a service that provides network name resolution to local applications. This service is part of the systemd suite of utilities used in many Linux distributions for managing system services and resources.
Creating Associative Arrays in Bash: A comprehensive guide with practical examples
มุมมอง 36หลายเดือนก่อน
Creating Associative Arrays in Bash: A comprehensive guide with practical examples
Creating arrays in Bash: A comprehensive guide with practical examples
มุมมอง 53หลายเดือนก่อน
Creating arrays in Bash: A comprehensive guide with practical examples
Creating variables in Bash: A comprehensive guide with practical examples
มุมมอง 45หลายเดือนก่อน
Creating variables in Bash: A comprehensive guide with practical examples
Find the name of the wireless interface in Linux in different ways
มุมมอง 49หลายเดือนก่อน
Find the name of the wireless interface in Linux in different ways
Bash script: extraction of major and minor numbers of device files in Linux
มุมมอง 65หลายเดือนก่อน
Bash script: extraction of major and minor numbers of device files in Linux
How to configure Linux to automatically turn on at a specified time
มุมมอง 772 หลายเดือนก่อน
How to configure Linux to automatically turn on at a specified time
Find the names of the network interfaces by their IPs by the /proc/net/fib_trie file
มุมมอง 512 หลายเดือนก่อน
Find the names of the network interfaces by their IPs by the /proc/net/fib_trie file
Install Requirements for Compiling and Running RISC-V Assembly Code on Ubuntu
มุมมอง 1072 หลายเดือนก่อน
Install Requirements for Compiling and Running RISC-V Assembly Code on Ubuntu
Find network interface names and their IPs in Linux in different ways
มุมมอง 952 หลายเดือนก่อน
Find network interface names and their IPs in Linux in different ways
Customizing the Login Screen in Linux wih /etc/issue File
มุมมอง 2662 หลายเดือนก่อน
Customizing the Login Screen in Linux wih /etc/issue File
Bash script: Find Duplicate Words in a Text File with awk Command
มุมมอง 262 หลายเดือนก่อน
Bash script: Find Duplicate Words in a Text File with awk Command
Manage Trash in KDE Desktop and bash script to display Trash contents
มุมมอง 303 หลายเดือนก่อน
Manage Trash in KDE Desktop and bash script to display Trash contents
How to find the name of the current user who is logged into Linux
มุมมอง 583 หลายเดือนก่อน
How to find the name of the current user who is logged into Linux
How to find client IP address in SSH connection in Linux
มุมมอง 3713 หลายเดือนก่อน
How to find client IP address in SSH connection in Linux
Find Words with Maximum Length in a Sentence using Bash Script and AWK
มุมมอง 363 หลายเดือนก่อน
Find Words with Maximum Length in a Sentence using Bash Script and AWK
Find the first and last word in a string with the awk command and combine with rev
มุมมอง 563 หลายเดือนก่อน
Find the first and last word in a string with the awk command and combine with rev
Finding the first and last words of a string in two ways: parameter expansion and array
มุมมอง 283 หลายเดือนก่อน
Finding the first and last words of a string in two ways: parameter expansion and array
Parameter Expansion: Hidden Tricks in Bash, Mastering Text Manipulation
มุมมอง 1003 หลายเดือนก่อน
Parameter Expansion: Hidden Tricks in Bash, Mastering Text Manipulation
Modify the bash prompt to indicate that the user is logged in with SSH
มุมมอง 704 หลายเดือนก่อน
Modify the bash prompt to indicate that the user is logged in with SSH
Send and execute a command to a script and calculate the execution time
มุมมอง 784 หลายเดือนก่อน
Send and execute a command to a script and calculate the execution time
Add last login time and elapsed time since current login to prompt in Linux
มุมมอง 484 หลายเดือนก่อน
Add last login time and elapsed time since current login to prompt in Linux
bashrc file: how to record the history of cd command execution in Linux
มุมมอง 244 หลายเดือนก่อน
bashrc file: how to record the history of cd command execution in Linux

ความคิดเห็น

  • @davidbreier84
    @davidbreier84 16 ชั่วโมงที่ผ่านมา

    soooo don't do this with root privileges I guess?

  • @linuxadminhacks
    @linuxadminhacks 2 วันที่ผ่านมา

    All SSH Shell Script Videos (Playlist) th-cam.com/play/PLEmKfOp0HCZXYsCCYTtrXXxgbI1Z-XJ9r.html How to check Internet connection in Linux command line th-cam.com/video/6h80EsmRNHQ/w-d-xo.html Bash Script : Check Internet Connection Status Using nmcli Command th-cam.com/video/64TPrSw62dg/w-d-xo.html

  • @archived_mo
    @archived_mo 10 วันที่ผ่านมา

    🔥

  • @user-hi4wv7zo5h
    @user-hi4wv7zo5h 13 วันที่ผ่านมา

    Now use ip command, can talk it

    • @linuxadminhacks
      @linuxadminhacks 13 วันที่ผ่านมา

      Print the interfaces along with their IP ip addr link Down an Interface sudo ip link set <ifname> down For example, sudo ip link set enp2s0 down In this case, unlike ifconfig, the name of the interface is not removed from the list of all interfaces, but "state DOWN" is written for the interface. Up an interface sudo ip link set <ifname> up For example, sudo ip link set enp2s0 up And "state UP" is written for the interface

  • @archived_mo
    @archived_mo 14 วันที่ผ่านมา

    thanks

    • @linuxadminhacks
      @linuxadminhacks 14 วันที่ผ่านมา

      Thank you too!

    • @user-hi4wv7zo5h
      @user-hi4wv7zo5h 13 วันที่ผ่านมา

      Can add mtr command. For routing

    • @linuxadminhacks
      @linuxadminhacks 13 วันที่ผ่านมา

      Yes, mtr is a powerful tool for diagnosing and troubleshooting network problems. This tool is actually a combination of two other commonly used commands, ping and traceroute. What does MTR do? Trace Route Latency Measurement Packet loss Although mtr is a tool consisting of ping and traceroute, its purpose is mostly for network troubleshooting, such as packet tracking, latency and packet loss measurement, and in my opinion, it is not suitable for checking the internet connection test, when in a bash script, you want Test your internet connection before doing the commands on the next lines. But the commands I showed in this video are simple to execute and you can check the exit code and take the appropriate action.

  • @linuxadminhacks
    @linuxadminhacks 15 วันที่ผ่านมา

    Find network interface names and their IPs in Linux in different ways th-cam.com/video/o00J5_zMnDQ/w-d-xo.html Find the names of the network interfaces by their IPs by the /proc/net/fib_trie file th-cam.com/video/nae2JbOYCCc/w-d-xo.html

  • @linuxadminhacks
    @linuxadminhacks 20 วันที่ผ่านมา

    Bash script to monitor multiple services and log their status using systemctl command th-cam.com/video/Vp8d4sPi0hQ/w-d-xo.html Array creation in bash - About the use of @ in the script above th-cam.com/video/0d07t79v9zQ/w-d-xo.html

  • @linuxadminhacks
    @linuxadminhacks 20 วันที่ผ่านมา

    Array creation in bash - About the use of @ in the script above th-cam.com/video/0d07t79v9zQ/w-d-xo.html

  • @archived_mo
    @archived_mo 25 วันที่ผ่านมา

    thanks

  • @archived_mo
    @archived_mo 27 วันที่ผ่านมา

    great content

  • @linuxadminhacks
    @linuxadminhacks หลายเดือนก่อน

    Extract MAC address for all network interfaces by ifconfig command th-cam.com/video/4gXyhV7qffs/w-d-xo.html Extract Interface IP, Type and Status Names Using ifconfig command th-cam.com/video/ktS5iCJ5wVg/w-d-xo.html Extract broadcast address of all network interfaces by ifconfig command th-cam.com/video/oY3iDoLhgqU/w-d-xo.html

  • @linuxadminhacks
    @linuxadminhacks หลายเดือนก่อน

    How to set permanent dns nameservers in Linux th-cam.com/video/kGYmLnsdj0c/w-d-xo.html Find the names of the network interfaces by their IPs by the /proc/net/fib_trie file th-cam.com/video/nae2JbOYCCc/w-d-xo.html Find network interface names and their IPs in Linux in different ways th-cam.com/video/o00J5_zMnDQ/w-d-xo.html

  • @linuxadminhacks
    @linuxadminhacks หลายเดือนก่อน

    Find the name of the wireless interface in Linux in different ways th-cam.com/video/EeGTSyd2o_M/w-d-xo.html How to configure Linux to automatically turn on at a specified time th-cam.com/video/ut2p7XbvfWM/w-d-xo.html

  • @Faezerastegar-pv3eq
    @Faezerastegar-pv3eq หลายเดือนก่อน

    Very good 😍👌🏻👍🏼

  • @linuxadminhacks
    @linuxadminhacks หลายเดือนก่อน

    Creating Indexed Arrays in Bash th-cam.com/video/0d07t79v9zQ/w-d-xo.html Creating Variable in Bash th-cam.com/video/RbZydFCg0eM/w-d-xo.html

  • @linuxadminhacks
    @linuxadminhacks หลายเดือนก่อน

    Creating Variable in Bash th-cam.com/video/RbZydFCg0eM/w-d-xo.html Creating Indexed Array in Bash th-cam.com/video/0d07t79v9zQ/w-d-xo.html Creating Associtive Array in Bash th-cam.com/video/76Pw_Jp0rMA/w-d-xo.html

  • @linuxadminhacks
    @linuxadminhacks หลายเดือนก่อน

    Creating Variables in Bash th-cam.com/video/RbZydFCg0eM/w-d-xo.html Creating Associtive Array in Bash th-cam.com/video/76Pw_Jp0rMA/w-d-xo.html

  • @linuxadminhacks
    @linuxadminhacks หลายเดือนก่อน

    Creating Indexed Array in Bash th-cam.com/video/0d07t79v9zQ/w-d-xo.html Creating Associtive Array in Bash th-cam.com/video/76Pw_Jp0rMA/w-d-xo.html

  • @bmbyacdmy
    @bmbyacdmy 2 หลายเดือนก่อน

    Till now, i was using \033[0;31m for red and ||| ly for other colors.... you saved me typing two chars.. thx

  • @massiccreation2981
    @massiccreation2981 2 หลายเดือนก่อน

    nice video

    • @linuxadminhacks
      @linuxadminhacks 2 หลายเดือนก่อน

      Thanks for watching 🙏

  • @massiccreation2981
    @massiccreation2981 2 หลายเดือนก่อน

    nice video

  • @AravStark
    @AravStark 2 หลายเดือนก่อน

    taking this vid as reference, today i wrote a function in shell script. thanks for sharing.

    • @linuxadminhacks
      @linuxadminhacks 2 หลายเดือนก่อน

      Excellent Glad it was helpful!

  • @bmbyacdmy
    @bmbyacdmy 3 หลายเดือนก่อน

    it is a good tuts... in the statement, printf "%-20s\t%-40s\t%s " Name Path "Deletion Date", i understand you want the third column title to be right aligned. But in the output, i am noticing, it is left aligned... Or is your terminal setting any right margin that is deceiving me?

    • @linuxadminhacks
      @linuxadminhacks 3 หลายเดือนก่อน

      Hello Thank you for watching the video I use the Canva site and had to keep the terminal size small while recording this video.

  • @maurolimaok
    @maurolimaok 3 หลายเดือนก่อน

    Nice channel.

  • @pranaypallavtripathi2460
    @pranaypallavtripathi2460 3 หลายเดือนก่อน

    Learnt something new today. There are very few channels which nicely teach how to be better at cli and not just the basics. Keep it up 👍

    • @linuxadminhacks
      @linuxadminhacks 3 หลายเดือนก่อน

      I'm glad it was useful for you

  • @massiccreation2981
    @massiccreation2981 3 หลายเดือนก่อน

    great

  • @massiccreation2981
    @massiccreation2981 3 หลายเดือนก่อน

    nice video

  • @ltsgomc
    @ltsgomc 3 หลายเดือนก่อน

    I'm the only one who heard that sound of discord when it lunches Lol

  • @massiccreation2981
    @massiccreation2981 3 หลายเดือนก่อน

    great trick and keep posting like this

    • @linuxadminhacks
      @linuxadminhacks 3 หลายเดือนก่อน

      I'm glad it was useful for you

  • @bmbyacdmy
    @bmbyacdmy 3 หลายเดือนก่อน

    TIL, you can negate pattern matches in for loop using ! symbol. thanks, ji...

  • @massiccreation2981
    @massiccreation2981 3 หลายเดือนก่อน

    nice trick

  • @massiccreation2981
    @massiccreation2981 3 หลายเดือนก่อน

    nice hack

  • @massiccreation2981
    @massiccreation2981 3 หลายเดือนก่อน

    nice trick

  • @Faezerastegar-pv3eq
    @Faezerastegar-pv3eq 4 หลายเดือนก่อน

    thank you. it was useful

    • @linuxadminhacks
      @linuxadminhacks 4 หลายเดือนก่อน

      Glad it was helpful!

  • @BruceWayne-sf2de
    @BruceWayne-sf2de 4 หลายเดือนก่อน

    Hello! How about displaying whoami and pwd on the prompt? Thanks

    • @linuxadminhacks
      @linuxadminhacks 4 หลายเดือนก่อน

      Hello To display the output of whoami and pwd commands or any other commands, you can put them between $(). PS1='$(whoami)@\h $(pwd) $' Or you can put $USER variable between ${} instead of whoami -- ${$USER} PS1='${USER}@\h $(pwd) $' In general, in setting the PS1 prompt string variable $(whoami) == ${USER} == \u (username) $(pwd) == \w (working directory)

    • @BruceWayne-sf2de
      @BruceWayne-sf2de 4 หลายเดือนก่อน

      @@linuxadminhacks Thank You!

    • @linuxadminhacks
      @linuxadminhacks 4 หลายเดือนก่อน

      🙏

  • @Faezerastegar-pv3eq
    @Faezerastegar-pv3eq 4 หลายเดือนก่อน

    thank you. it was useful

  • @Faezerastegar-pv3eq
    @Faezerastegar-pv3eq 4 หลายเดือนก่อน

    ❤❤❤❤

  • @Faezerastegar-pv3eq
    @Faezerastegar-pv3eq 4 หลายเดือนก่อน

    thank you. it was useful

  • @davidgari3240
    @davidgari3240 4 หลายเดือนก่อน

    I thought it was bang bang (!!) enter.

  • @MECHANISMUS
    @MECHANISMUS 4 หลายเดือนก่อน

    To parse or not to parse ls-that is the question!

  • @shawnno4271
    @shawnno4271 4 หลายเดือนก่อน

    I appreciate your style of videos. Sometimes I just wanna see the script without a long winded explanation.

    • @linuxadminhacks
      @linuxadminhacks 4 หลายเดือนก่อน

      Thank you for watching my videos and I hope they were useful for you. I will definitely try to make the content of the videos better and more useful.

  • @shawnno4271
    @shawnno4271 5 หลายเดือนก่อน

    Keep doing what you're doing. Your videos have been helpful to me.

    • @linuxadminhacks
      @linuxadminhacks 5 หลายเดือนก่อน

      Thank you for your message. I'm glad to hear that my videos have been helpful to you.

  • @EsquivadorDePala
    @EsquivadorDePala 5 หลายเดือนก่อน

    Awesome. Why didn't you use $ when comparing (( red > 255 )) ?

  • @massiccreation2981
    @massiccreation2981 6 หลายเดือนก่อน

    Great

  • @supriyochatterjee4095
    @supriyochatterjee4095 6 หลายเดือนก่อน

    Please kindly make videos on how to check all active running services and processes and check there status in Linux Server (RedHat/CentOS/Ubuntu) and how to troubleshoot any faulty services

    • @linuxadminhacks
      @linuxadminhacks 6 หลายเดือนก่อน

      Hi I will definitely write some simple scripts to monitor services in Ubuntu and Red Hat distributions.

  • @massiccreation2981
    @massiccreation2981 6 หลายเดือนก่อน

    good

    • @linuxadminhacks
      @linuxadminhacks 6 หลายเดือนก่อน

      I am glad it was useful for you 🙏🙏

  • @massiccreation2981
    @massiccreation2981 6 หลายเดือนก่อน

    good

    • @linuxadminhacks
      @linuxadminhacks 6 หลายเดือนก่อน

      I am glad it was useful for you 🙏🙏

  • @massiccreation2981
    @massiccreation2981 6 หลายเดือนก่อน

    good

    • @linuxadminhacks
      @linuxadminhacks 6 หลายเดือนก่อน

      Thanks for watching 🙏🙏🙏