Day 2 of Understanding Linux RHEL

Suyash GaikwadSuyash Gaikwad
2 min read

Introduction

  • Brief Recap of Day 1: We went over key Linux ideas, such as permissions, user administration, and basic commands.
    Overview of Day 2 Topics: Knowing how to use Bash, running simple commands, logging in to networks via SSH, using physical terminal types, and verifying who is logged in.

Definition and role of Bash in Linux

What is Bash?

  • Bash (Bourne Again Shell) is a Linux command-line interpreter that carries out user commands. It facilitates communication via typed commands between the user and the operating system. Bash makes system management more efficient by automating tasks through shell scripting.

Introduction to network login Part 1

  • Starting SSH Service:

    • systemctl start sshd.service → Starts the SSH daemon for remote access.
  • Checking SSH Status:

    • systemctl status sshd.service → Displays the current status of SSH (active/inactive).
  • Enabling SSH on Boot:

    • systemctl enable sshd.service → Ensures SSH starts automatically after system reboot.Types of Terminals in Linux

Introduction to Network Login Part 2

  • SSH (Secure Shell) is a protocol for securely connecting to remote machines over a network.

  • Command Syntax:

    • ssh username@remote_host → Logs into a remote machine using its IP or hostname.

    • Example: ssh user@192.168.1.10

  • Key Authentication: SSH allows key-based authentication using public and private key pairs for enhanced security.

Types of Terminals in Linux

  • Physical Terminals:

    • Traditional console-based text terminals are accessed using Ctrl + Alt + F1 to Ctrl + Alt + F6.

    • These are represented as tty1, tty2, tty3, tty4, tty5, tty6.

    • They provide direct system access without the need for a graphical interface.

How to Check Logged-In User Details

  • View Currently Logged-In Users:

    • who → Displays all users currently logged into the system.
  • Monitor Active Users and System Load:

    • w → Shows logged-in users along with system activity like uptime, CPU usage, and running processes.
  • List Logged-In Users (Compact View):

    • pinky → special RHEL command to look up usernames currently logged in.

Thank You so much for reading…!

0
Subscribe to my newsletter

Read articles from Suyash Gaikwad directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Suyash Gaikwad
Suyash Gaikwad