Posts

learning linux 3

  User and Group Management in Linux Managing Local Users: Commands : adduser / useradd : Create new users. usermod : Modify existing user accounts. userdel : Delete users. Managing Local Groups: Primary and Supplementary Groups : Each user has a primary group and can belong to multiple supplementary groups. Commands : groupadd : Create new groups. groupmod : Modify existing groups. groupdel : Delete groups. Querying User Accounts: Commands : whoami : Displays the current logged-in user's name. who : Lists users currently logged in and their login details. w : Shows what users are currently doing. pinky : A lightweight version of finger , provides user information. last : Shows a history of user logins. id username : Displays user identity information. Managing Group Password Files: Password File : Located in /etc/shadow , requires root access to edit. Commands : sudo vipw / sudo vipw -s : Safely edit the password file. vigr : Edit group file. User & Group Quotas: Quota Manag...

Learning Linux 2

  Understanding Partitioning: GPT vs. MBR GPT (GUID Partition Table): Protective MBR : GPT disks include a protective MBR to ensure compatibility with older systems. Data Integrity : GPT scatters copies of its partition table across the disk to prevent data loss in case of corruption. Unlimited Disk Space : Supports disks larger than 2TB. MBR (Master Boot Record): Limited Disk Space : Only supports disks up to 2TB. Partition Information : The MBR holds details about how the disk is partitioned. Linux File System Basics File System Mount Points: Root Directory : / Second Drive : /mnt Remote NFS/Samba : /home/ USB Drive : /media/ Virtual Environment : /proc , /sys Creating Partitions: Tools : lsblk : Displays the partition tree. cat /proc/partitions : Shows partition details. parted / gparted : GUI ( gparted ) and CLI ( parted ) tools for partition management. fdisk : CLI tool for managing partitions, with m for help. Formatting and Mounting File Systems File System Types : Linux : ...

Learning About Linux Server

  Understanding BIOS/UEFI and Boot Loaders BIOS vs. UEFI: BIOS : The Basic Input Output System, the traditional firmware interface for booting a computer. UEFI : The Unified Extensible Firmware Interface, a modern replacement for BIOS with enhanced features and security. GRUB/GRUB2: GRUB : The Grand Unified Bootloader, responsible for loading the kernel and initiating the boot process. GRUB2 : An updated version of GRUB, offering more features and flexibility. The Linux Boot Process BIOS/UEFI Initialization : First step in booting, initializing hardware and finding the bootloader. GRUB/GRUB2 : Loads the kernel, either vmlinux or vmlinuz , and passes control to it. Kernel Initialization : Kernel is loaded along with initrd (initial RAM disk), which contains necessary drivers and modules for accessing the file system. Kernel Panic : If an issue arises, Linux keeps the previous kernel as a fallback. Causes can include updates or hardware failures. Managing Linux Boot Modules Loading...

Celebrating Completion of Backend Development Course with Twitube Backend Project!

Image
I'm thrilled to announce a significant milestone in my journey as a backend developer – completing the backend development course offered by ChaiAurCode. 🚀 As part of this course, I've tackled various assignments and projects, and I'm excited to share one of my proudest achievements: the Twitube backend project . What is Twitube? Twitube is a dynamic project that combines functionalities from YouTube and Twitter, creating a seamless user experience for content sharing and interaction. The project features a robust backend written in JavaScript using the Express.js framework, with MongoDB as the database and Mongoose ORM for data modeling. Project Highlights: Implemented essential functionalities such as user authentication, video uploads, content sharing, and more. Leveraged a range of dependencies including bcrypt, cloudinary, cors, and jsonwebtoken to enhance project functionality. Ensured code quality and consistency by following best practices in software development. ...

Embarking on the React Journey: Day 1 Chronicles

Image
 In today's enthralling dive into the world of React, we embarked on a journey filled with discovery and learning. Let's take a glimpse into the highlights of our first day, where we laid the foundation for our React adventures. Navigating the React Roadmap Our day commenced with a comprehensive overview of the React roadmap, setting the stage for our exploration into this powerful JavaScript library. Understanding the roadmap provided us with a clear path forward, guiding our learning journey and helping us set achievable goals. Crafting Our First React Project With newfound excitement, we delved into the practical aspect of React by creating our first project. Leveraging React and Vite, we gained insights into setting up a React project from scratch, exploring the folder structure and workflow essential for building robust React applications. Unveiling the Power of React Components One of the highlights of our day was diving into the concept of React components. We flexed our...

Exploring Event Handling in JavaScript: From Basics to Async Projects

 In today's JavaScript session, we embarked on a thrilling exploration of event handling, unraveling the intricacies of different approaches and delving into the realm of async programming. Let's dive into the key concepts and projects that adorned our coding adventure. Understanding Event Handling Approaches We began by dissecting three fundamental approaches to event handling: Inline Event Handling: We kickstarted our journey by adding onclick alerts directly within HTML elements. While this approach provides a quick and easy way to handle events, it lacks flexibility and separation of concerns. DOM Method Event Handling: Moving forward, we utilized getElementById to attach onclick functions programmatically. This approach offers more control and modularity, allowing us to encapsulate event handling logic within JavaScript functions. addEventListener: A highlight of today's session was the introduction of addEventListener, a powerful method that enhances event handling wi...

Unveiling JavaScript Wizardry: From DOM Manipulation to Dynamic Projects

 In today's exhilarating JavaScript class, I traversed the intricate landscapes of DOM manipulation, exploring the depths of child-parent methods and their significance, particularly in the realm of React development. Let's embark on a journey through the key concepts and projects that adorned today's coding odyssey. Understanding DOM Manipulation The class commenced with a deep dive into DOM manipulation, where child-parent methods took center stage. Through methods like childNODEs, we uncovered the hierarchical relationships within the Document Object Model, laying the foundation for more complex interactions in future projects. We also explored the creation of new elements using createElement and their addition to the DOM tree via appendChild. Optimizing DOM Manipulation A crucial insight emerged as we delved deeper into DOM manipulation: the performance implications of different methods. While innerHTML traverses the entire DOM tree, causing potential performance bottle...