Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

1. Linux Notes – Comprehensive Study Guide Title: Complete Linux Notes for Beginners to Advanced – Commands, Shell Scripting, System Admin, and More Description: This document provides a complete summary of Linux Operating System concepts ideal for stud

Rating
-
Sold
-
Pages
21
Grade
A+
Uploaded on
10-06-2025
Written in
2024/2025

1. Linux Notes – Comprehensive Study Guide Title: Complete Linux Notes for Beginners to Advanced – Commands, Shell Scripting, System Admin, and More Description: This document provides a complete summary of Linux Operating System concepts ideal for students and professionals. It covers: Basic to advanced Linux commands Shell scripting with examples File system hierarchy and permissions Process management, I/O redirection, cron jobs System administration and networking basics Perfect for students in Computer Science, IT, or preparing for certifications like RHCSA/RHCE. 2. Machine Learning (ML) – Crash Course Notes Title: Complete Machine Learning Notes – Algorithms, Math, Python Code, and Real-World Examples Description: This study document contains well-structured notes on Machine Learning, ideal for university students and beginners. It includes: Overview of supervised & unsupervised learning Key algorithms: Linear/Logistic Regression, Decision Trees, SVM, KNN, K-Means Feature scaling, model evaluation, cross-validation Mathematical intuition (derivations, cost functions) Python code snippets for each algorithm Great for quick revision or understanding ML basics before a project or exam. 3. Probability and Statistics – Exam-Focused Notes Title: Probability and Statistics Notes – Definitions, Theorems, Formulas, and Solved Problems Description: This document is a complete and clear summary of key topics in Probability and Statistics. Best suited for engineering, CS, data science, and math students. Covers: Descriptive statistics: mean, median, mode, variance Probability distributions (Binomial, Poisson, Normal) Hypothesis testing and confidence intervals Correlation, regression, and sampling methods Solved numerical problems for practice Useful for both theory revision and numerical problem-solving.

Show more Read less
Institution
Course

Content preview

UNIT 3 FILE MANIPULATIONS 9 Hrs.

Editing text files from shell prompt - Managing running processes - Process
management - Lab:Monitoring process activity - Writing simple shell
scripts - Understanding shell scripts - Lab: Implementing basic shell
programs - Understanding server managing in RHEL - Install the server
RHEL - Lab: RHEL 8 Installation on virtual machine - Initial server
configuration - Lab: Configuring and verifying the initial server settings -
Remote server management - Lab: RHEL Remote server management -
Initial server configuration - Lab: Configuring and verifying the initial
server settings -Remote server management- Lab: RHEL Remote Server
management - File Transfer - Lab: Securely coping files between Servers -
Log Management - Lab1: Monitoring system logs - Lab2: Recording and
managing server logs – Server monitoring - Lab: Monitoring the health of
the server.

Editing Text Files from Shell Prompt

Introduction

In Linux, text files are widely used for configuration settings, scripts, and
documentation. Editing these files directly from the shell prompt is a
fundamental skill for system administrators and developers. Linux provides
several text editors such as vi, vim, nano, and gedit to modify text files
efficiently.

Text Editors in Linux

Linux provides different types of text editors:

1. Command-Line Editors
o vi (Visual Editor)
o vim (VI Improved)
o nano (User-friendly and simple)
o ed (Basic line editor)
2. Graphical Editors
o gedit (GNOME default editor)
o kate (KDE text editor)
o leafpad (Lightweight editor)


Among these, vi/vim and nano are the most commonly used editors in server
environments.

,Using Nano Editor

The nano editor is simple and beginner-friendly. It provides on-screen shortcuts
for ease of use.

Opening a File

nano filename.txt

If the file does not exist, nano creates a new file.

Basic Commands in nano

 Ctrl + O → Save file
 Ctrl + X → Exit editor
 Ctrl + K → Cut text
 Ctrl + U → Paste text
 Ctrl + W → Search text
 Ctrl + G → Show help menu

Using Vi and Vim Editors [ Use our png image for detailed explanation]

The Vi and vim editors are powerful and widely used.

Opening a File

vi filename.txt

Modes in vi

vi operates in three different modes:

1. Command Mode: Default mode for executing commands.
2. Insert Mode: Allows editing of text.
3. Visual Mode: Used for selecting and manipulating text.

Switching Between Modes

 Enter Insert Mode: Press i, a, o
 Exit Insert Mode: Press Esc
 Enter Command Mode: Press Esc

Basic Commands in vi

Command Description

, :w Save file
:q Quit editor
:wq Save and quit
:q! Quit without saving
yy Copy line
dd Delete line
p Paste line
/text Search text

Editing a File

Adding Text

1. Open the file with vi filename.txt
2. Press i to enter insert mode
3. Type the required text
4. Press Esc to switch to command mode
5. Type :wq to save and exit

Searching Text

Use /word in command mode to search a specific word.

/hostname

Press n to jump to the next occurrence.

Practical Example

Create a configuration file and edit it using vi:

vi /etc/myconfig.conf

1. Press i and add:

server_name=LinuxServer
port=8080
directory=/var/www/html

2. Press Esc and save with :wq
3. Verify using cat /etc/myconfig.conf

Lab Exercise

Written for

Course

Document information

Uploaded on
June 10, 2025
Number of pages
21
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
nafeesroshanbaiga

Get to know the seller

Seller avatar
nafeesroshanbaiga SATHYABAMA UNIVERSITY
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
10 months
Number of followers
0
Documents
8
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions