• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Urban Penguin

The Urban Penguin - Linux Training

  • Home
  • About
  • Programming
    • Master Editing Text Files Using VIM
    • Learn Shell Scripting with BASH
    • PERL Scripting in Linux
    • Ruby Scripting in Linux
    • Scripting with PowerShell
    • Learn C Programming using Linux and the Raspberry Pi
    • General Java Tutorials
    • Java 7 OCA Exam 1ZO-803
  • OS Tutorials
    • Red Hat and CentOS Training
      • Red Hat Enterprise Linux System Administration 1 – RH124
      • RHCSA – System Admin 2 – RH134
      • RHCE – EX294 – Automation With Ansible
    • Learning Ubuntu
    • LPI Training
      • LPI Linux Essentials
      • LPIC-1 Linux Administrator
      • LPIC-2 Certified Linux Engineer
      • LPIC-3 Senior Level Certification
        • LPIC-3 Exam 300 : Mixed Environments
        • LPIC-3 Exam 303 : Security
        • LPIC-3 Exam 304 : Virtualization and High Availability
    • Linux Technologies
      • Apache HTTPD Server
      • Learning PHP
      • Learning PUPPET
      • Learning SAMBA
      • Linux File-Systems
      • Monitoring with Nagios Core
      • MYSQL
      • openLDAP Directories on Linux
You are here: Home / Archives for Scripting

Scripting

Adding Color to Your Bash Scripts

October 27, 2021 by The Urban Penguin

 Rellay giving you the focus on the information that you need. Adding color to your shell is going to make your scripts more usable and friendly. You can also pimp or color your BASH prompt, the PS1 environment variable. In this tutorial we are going to show you how we can add color to BASH, […]

Filed Under: Bash Scripting, CentOS Tagged With: Bash Scripting, colour, echo

Authenticate Users with Bash Script and AWK

October 14, 2021 by The Urban Penguin

Authenticate Bash script awk

Authenticate Users with BASH Script and AWK We know that on Linux systems the user’s password is stored in the /etc/shadow file usually. At least for local accounts, we can always query the shadow database and lookup users in a directory backend like AD or openLDAP. We will start the process to authenticate users with […]

Filed Under: awk, Bash Scripting

Editing Files Using SED: Unwrapped

October 4, 2021 by The Urban Penguin

Editing files using sed

Editing Files Using SED The Linux Stream Editor The Linux text editor sed is the stream editor which allows you to edit a file non-interactively. This means that you can edit a file from within a script or via SSH over the network without opening a terminal. Linux administrators and devops will benefit in this […]

Filed Under: sed

Match the First Occurrence Only with Linux SED Command

August 18, 2020 by The Urban Penguin

Being able to work with the command line in Linux and use tools such as sed can be really powerful. We show you how you can match only the first occurrence of a string or regular expression using sed in Linux with Ubuntu.  The example we use will be replacing the first time server only […]

Filed Under: sed

Using Python to List SSH Authentication Methods

May 15, 2020 by The Urban Penguin

Using Python to List SSH Authentication Methods argparse

In this module we will take a look at using Python to list SSH Authentication methods. There is nothing like making your server estate cybersecurity and compliant with your policies. Ensuring that SSH servers on out estate adhere to security guidelines allows peace of mind knowing we can reduce the likelihood of our servers being […]

Filed Under: Python 3 Tagged With: authentication, kali, keys, password, Python, security, ssh

Syntax Highlighting Perl Scripts

February 12, 2019 by The Urban Penguin

When you create you very own Perl scripts the big debate is to add .pl to the end or not! For example if you wanted to create a script to check the existence of a user in the Linux system you may want the program to be called check_user. You may want to call the […]

Filed Under: Perl

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Interim pages omitted …
  • Go to page 14
  • Go to Next Page »

Primary Sidebar

Newest Video

The Urban Penguin On Youtube

Categories

Pages

  • About The Urban Penguin
  • Contact Us
  • Linux Technologies
    • Apache HTTPD Server
    • Learning PHP
    • Learning PUPPET
    • Learning SAMBA
    • Linux File-Systems
    • Monitoring with Nagios Core
    • MYSQL
    • openLDAP Directories on Linux
  • LPI Training from The Urban Penguin
    • Complete Linux Essentials
    • Live and Pluralsight hosted courses
    • LPI Linux Essentials
    • LPI Linux Essentials for Raspberry Pi
    • LPIC-1 Linux Administrator
    • LPIC-2 Certified Linux Engineer
    • LPIC-3 Senior Level Certification
      • LPIC-3 Exam 300 : Mixed Environments
      • LPIC-3 Exam 303 : Security
      • LPIC-3 Exam 304 : Virtualization and High Availability
  • Online Instructor-led Courses
    • Bash Scripting Masterclass
    • Nftables Masterclass
    • Red Hat Enterprise Linux System Administration 1 – RH124
    • SELinux Masterclass
  • OpenStack
    • Citrix Videos
    • Pluralsight
    • Raspberry Pi Tutorials
    • Udemy
  • Operating System Tutorials
    • Learning SUSE
    • Learning Ubuntu
    • Linux Foundation Training
    • Red Hat and CentOS Training
      • RHCE – EX294 – Automation With Ansible
      • RHCSA – System Admin 1 – RH124
      • RHCSA – System Admin 2 – RH134
    • Solaris 11 OCA 1ZO-821
  • Scripting – the power of repetition!
    • General Java Tutorials
    • Java 7 OCA Exam 1ZO-803
    • Learn C Programming using Linux and the Raspberry Pi
    • Learn Shell Scripting with BASH
    • Master Editing Text Files Using VIM
    • PERL Scripting in Linux
    • Ruby Scripting in Linux
    • Scripting with PowerShell

© 2022 The Urban Penguin · All Rights Reserved