Author: admin

  • System Administration

    Here we will discuss about the topic Active Directory service provided by Microsoft which can be well integrated with windows environment and as well as extended to Linux environment.

    Let us understand what is Active Directory service and why we need it ?

    Its a Database which stores information about users, computers and resources within the network and allow administrator to manage the permissions to access the resources and this service include several components as listed below.

    • Domain Services – AD DS -Centralized management of users and computers and groups.
    • Lightweight directory services AD LDS – Similar to AD DS but without using domain.
    • AD CS Certificate service to issue and manage public key certificates
    • AD FS its Federation service for allowing users to authenticate across different domains and system using AD credentials
    • AD RMS -Right Management service for control and protect documents and emails.

    In this post we will focus on the AD DS service Domain service for managing users, computes and groups

  • Linux OS

    Root Directory of the Linux Files System (FS)

    └─── /bin User Binaries

    └─── /boot Boot Loader Files

    └─── /dev Device Files

    └─── /etc System-Global Config Files

    └─── /home User’s Home Directory

    └─── /lib System Libraries and Kernel Modules

    └─── /lost+found Stores Corrupted FS Files

    └─── /media Mount Point for External Devices

    └─── /mnt Temp Mount Point

    └─── /opt Folder for Optional Application Files

    └─── /proc Process (and Kernel) Information

    └─── /root Root User’s Home Directory

    └─── /sbin Essential System Binaries

    └─── /sys Devices (and Kernel) Information

    └─── /tmp Temporary Files Directory

    └─── /usr User Utilities and Applications
    |
    └─── /var Variable Files
  • Bash for loop

    Below code will print 0 to 100 in bash shell

    for ((i = 0 ; i < 100 ; i++)); do
      echo "$i"
    done

    Ranges for for loop

    for i in {1..5}; do
        echo "Welcome to my blog $i"
    done
    
    Expected result
    Welcome to my blog 1
    Welcome to my blog 2
    Welcome to my blog 3
    Welcome to my blog 4
    Welcome to my blog 5
    

    With step size of 5

    for i in {5..50..5}; do
        echo "Welcome to my blog  $i"
    done
    
    Expected result
    Welcome to my blog  5
    Welcome to my blog  10
    Welcome to my blog  15
    Welcome to my blog  20
    Welcome to my blog  25
    Welcome to my blog  30
    Welcome to my blog  35
    Welcome to my blog  40
    Welcome to my blog  45
    Welcome to my blog  50

    Reading lines from a file (file created with few line)

    lab01> while read -r line; do echo “$line”; done <file.txt

    Expected output from file

    apple
    orange
    toy
    car
    bus
    auto

    While loop executing every 30 sec with sleep command

    lab01> while true; do ps -ef | grep 'ssh';sleep 30;done

    Listing files in a directory

    for file in *; do echo $file; done
  • Bash shell environment variable

    There are several environment variables in bash shell among them few are listed below

    echo $PWD ———This will print the current directory

    echo $SHELL ——-This will print the shell details

    echo $PS1 —-Print the Prompt

    echo $PATH —This will print the search path

    We can set these environmental variable in the shell using below commands.

    export PS1=’lab01> ‘ –This will set the prompt as lab01>

  • HTML Basics

    HTML documents start with type declaration: <!DOCTYPE html>.

    The HTML document begins with <html> and ends with </html>.

    HTML body is visible part of the document between <body> content posted  </body>.

    In HTML there are 6 heading tags <h1> to <h6>

    Tag for the paragraph is <p>This is a paragraph. </p>

    What it the html code to create a link a

    For link html tag <a href=“https://www.xxxxy.com”>This is a MyLink</a>

    Alt text

     Alt, or alternative, text is provided as an attribute to the <img> tag to describe the image to the screen reader. This is useful when the image is not loaded in the browser.

    <img src="https://test/file:BlueBook.jpg:" alt="A blue book"/>

    Semantic tags Its bout styling in a page like bold ,italic etc..

    eg: <b> -indicate bold and <i> -indicate text to be italic and similary there are other tags do the same <strong> and <em> .

    ARIA -Accessible Rich Internet Application

    It defines variety of markup extension and its usually HTML5 attributes.

  • My first bash script

    What is BASH shell?

    Bash is built in shell in most of the Linux operating systems. Its the shell that directly interact with the operating system and executes the commands. Let us write as basic bash shell script that will print a hello message.

    #!/bin/bash
    echo " This is my first bash script"

    save the code in a file name as script01.sh and execute on the Linux shell. The out put will be as below show: