<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ketkinaina</id>
		<title>Script | Spoken-Tutorial - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ketkinaina"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Special:Contributions/Ketkinaina"/>
		<updated>2026-04-26T12:08:18Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/NULL-Values-and-UPDATE-Statement/English</id>
		<title>PostgreSQL-Database/C2/NULL-Values-and-UPDATE-Statement/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/NULL-Values-and-UPDATE-Statement/English"/>
				<updated>2026-04-23T05:26:53Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: NULL Values and UPDATE Statement'''.&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: ''' PostgreSQL, pgAdmin 4,  syntax, NULL values, IS NULL, UPDATE statement, EduPyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on''' NULL Values and UPDATE Statement'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn how to,&lt;br /&gt;
* Insert and Display '''Null''' values and &lt;br /&gt;
* '''UPDATE''' Statement&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements '''&lt;br /&gt;
* '''Ubuntu 24.04''' '''LTS'''&lt;br /&gt;
* '''PostgreSQL version 18.1''', and&lt;br /&gt;
* '''PgAdmin 4 version 9.11'''.&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org https://EduPyramids.org] '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''PostgreSQL''' and '''p g Admin 4.'''&lt;br /&gt;
* For the prerequisite '''PostgreSQL''' tutorials, please visit this website. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
* '''nvu-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code''' '''Files''' link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''What is a NULL Value?'''&lt;br /&gt;
|| A '''null''' value is an unknown or missing value. &lt;br /&gt;
&lt;br /&gt;
If a field has no value it can be left blank as no data stored in it.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of Null'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT column_names'''&lt;br /&gt;
&lt;br /&gt;
'''FROM table_name'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE column_name IS NULL&amp;lt;nowiki&amp;gt;; &amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
|| This is the syntax to show a '''Null''' value.&lt;br /&gt;
&lt;br /&gt;
'''IS NULL''' clause checks for fields that have no stored values.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| I have opened the '''p g Admin 4 '''interface and connected to the localhost server.&lt;br /&gt;
|-&lt;br /&gt;
|| Type:''' INSERT INTO students (studentid, studentname, city, gender, dob, cgpa)'''&lt;br /&gt;
&lt;br /&gt;
'''VALUES ('S116', 'Ravi', 'Pune', 'M', NULL, NULL);'''&lt;br /&gt;
&lt;br /&gt;
Click the''' Execute query icon.'''&lt;br /&gt;
|| Let us insert a '''NULL''' value. For this, type the following query.&lt;br /&gt;
&lt;br /&gt;
Here the '''NULL''' keyword is used to insert null values. &lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
The query is returned successfully.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''INSERT INTO students (studentid, studentname, city, gender)'''&lt;br /&gt;
&lt;br /&gt;
'''VALUES ('S117', 'Kiran', 'Pune', 'M');'''&lt;br /&gt;
&lt;br /&gt;
Click on the''' Execute query button'''.&lt;br /&gt;
&lt;br /&gt;
ADD ANNOTATION.( '''CGPA''' and '''DOB''' are automatically set to '''NULL''')&lt;br /&gt;
|| Type the following query and execute it. &lt;br /&gt;
&lt;br /&gt;
Here, '''C G P A''' and '''D O B columns''' are automatically set to '''NULL'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| We can add a '''NULL value''' by inserting a record without specifying its value.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE cgpa IS NULL;'''&lt;br /&gt;
|| Type the following query.&lt;br /&gt;
&lt;br /&gt;
Here we are using the '''IS NULL '''clause.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
The output displays details of students whose '''C G P A''' is currently not recorded.&lt;br /&gt;
|-&lt;br /&gt;
|| Point to '''D O B''' and '''C G P A''' values.&lt;br /&gt;
|| Here, the '''D O B''' and '''C G P A''' values are not known. &lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now let us see another example.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''SELECT studentid, studentname'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE cgpa IS NULL;'''&lt;br /&gt;
&lt;br /&gt;
Click on the''' Execute query button'''.&lt;br /&gt;
|| Type the following query and execute it. &lt;br /&gt;
&lt;br /&gt;
This query displays studentid and their names whose '''C G P A''' value is '''NULL'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us update the record so that it no longer displays NULL.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''UPDATE statement'''&lt;br /&gt;
|| '''UPDATE''' Statement is used to modify existing records in a table.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of UPDATE Statement'''&lt;br /&gt;
&lt;br /&gt;
'''UPDATE table_name'''&lt;br /&gt;
&lt;br /&gt;
'''SET column1 = value1, column2 = value2, ...'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE condition; '''&lt;br /&gt;
|| Here is the syntax of the UPDATE statement.'''UPDATE''' specifies the table to be modified.&lt;br /&gt;
&lt;br /&gt;
'''SET''' assigns new values to one or more columns.&lt;br /&gt;
&lt;br /&gt;
'''WHERE''' selects the records that need to be updated.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''UPDATE students'''&lt;br /&gt;
&lt;br /&gt;
'''SET cgpa = 8.1'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentid = 'S116';'''&lt;br /&gt;
&lt;br /&gt;
Click on the''' Execute query button'''.&lt;br /&gt;
|| Let us update the Null value.&lt;br /&gt;
&lt;br /&gt;
Type this query. &lt;br /&gt;
&lt;br /&gt;
Here the '''SET''' keyword sets the C G P A value to 8 point 1.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Cursor on Query returned successfully in 322 msec.'''&lt;br /&gt;
|| The output shows that the query is updated.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: &lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students '''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentid = ‘S116’;'''&lt;br /&gt;
|| Now let us type this query and execute it.&lt;br /&gt;
&lt;br /&gt;
We can see that a new record is added to the table.&lt;br /&gt;
|-&lt;br /&gt;
|| Show the table and point to M in the records.&lt;br /&gt;
|| Let us update the records of students with studentids S116 and S117.&lt;br /&gt;
|-&lt;br /&gt;
|| Type the following:'''UPDATE students'''&lt;br /&gt;
&lt;br /&gt;
'''SET gender = 'Male''''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentid = 'S116''''&lt;br /&gt;
&lt;br /&gt;
'''OR studentid = 'S117';'''&lt;br /&gt;
&lt;br /&gt;
Click on the Execute Query button.&lt;br /&gt;
|| Type the following query.&lt;br /&gt;
&lt;br /&gt;
In this query we will set the gender to male.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
The table is now updated.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''SELECT * FROM students; '''&lt;br /&gt;
&lt;br /&gt;
Click on the Execute Query button.&lt;br /&gt;
&lt;br /&gt;
Point to the gender columns of the students.&lt;br /&gt;
|| Let us display the entire table.&lt;br /&gt;
&lt;br /&gt;
Type this query and execute it.&lt;br /&gt;
&lt;br /&gt;
We can see that in the gender column '''M''' is updated to '''Male''' for studentids '''S116 '''and''' S117'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt how to,&lt;br /&gt;
* Insert and Display Null values and &lt;br /&gt;
* UPDATE Statement&lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment, '''&lt;br /&gt;
&lt;br /&gt;
Insert a student record with a NULL CGPA value.&lt;br /&gt;
&lt;br /&gt;
Update the NULL CGPA value for one student.&lt;br /&gt;
&lt;br /&gt;
Verify the updated record using a SELECT query.&lt;br /&gt;
|| We encourage you to do this assignment.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
&lt;br /&gt;
This '''Spoken''' '''Tutorial''' is brought to you by '''EduPyramids''' Educational Services Private Limited SINE IIT Bombay.&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/NULL-Values-and-UPDATE-Statement/English</id>
		<title>PostgreSQL-Database/C2/NULL-Values-and-UPDATE-Statement/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/NULL-Values-and-UPDATE-Statement/English"/>
				<updated>2026-04-20T07:44:04Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: NULL Values and UPDATE Statement'''.  '''Author: Ketki Bhamble'''  '''Keywords: '''PostgreSQL, pgAdmin 4, Logical operators, AND, OR, NOT, WHERE, EduPy...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: NULL Values and UPDATE Statement'''.&lt;br /&gt;
&lt;br /&gt;
'''Author: Ketki Bhamble'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''PostgreSQL, pgAdmin 4, Logical operators, AND, OR, NOT, WHERE, EduPyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on''' NULL Values and UPDATE Statement'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn how to,&lt;br /&gt;
* Insert and Display '''Null''' values and &lt;br /&gt;
* '''UPDATE''' Statement&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements '''&lt;br /&gt;
* '''Ubuntu 24.04''' '''LTS'''&lt;br /&gt;
* '''PostgreSQL version 18.1''', and&lt;br /&gt;
* '''PgAdmin 4 version 9.11'''.&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org https://EduPyramids.org] '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''PostgreSQL''' and '''p g Admin 4.'''&lt;br /&gt;
* For the prerequisite '''PostgreSQL''' tutorials, please visit this website. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
* '''nvu-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link on this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code''' '''Files''' link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''What is a NULL Value?'''&lt;br /&gt;
|| A '''null''' value is an unknown or missing value. &lt;br /&gt;
&lt;br /&gt;
If a field has no value it can be left blank as no data stored in it.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of Null value'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT column_names'''&lt;br /&gt;
&lt;br /&gt;
'''FROM table_name'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE column_name IS NULL&amp;lt;nowiki&amp;gt;; &amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
|| This is the syntax to show a '''Null''' value.&lt;br /&gt;
&lt;br /&gt;
'''IS NULL''' clause checks for fields that have no stored values.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| I have opened the '''p g Admin 4 '''interface and connected to the localhost server.&lt;br /&gt;
|-&lt;br /&gt;
|| Type:''' INSERT INTO students (studentid, studentname, city, gender, dob, cgpa)'''&lt;br /&gt;
&lt;br /&gt;
'''VALUES ('S116', 'Ravi', 'Pune', 'M', NULL, NULL);'''&lt;br /&gt;
&lt;br /&gt;
Click the''' Execute query icon.'''&lt;br /&gt;
|| Let us insert a '''NULL''' value.For this, type the following query.&lt;br /&gt;
&lt;br /&gt;
Here the '''NULL''' keyword is used to insert null values. &lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
The query is returned successfully.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''INSERT INTO students (studentid, studentname, city, gender)'''&lt;br /&gt;
&lt;br /&gt;
'''VALUES ('S117', 'Kiran', 'Pune', 'M');'''&lt;br /&gt;
&lt;br /&gt;
Click on the''' Execute query button'''.&lt;br /&gt;
&lt;br /&gt;
ADD ANNOTATION.( '''CGPA''' and '''DOB''' are automatically set to '''NULL''')&lt;br /&gt;
|| Type the following query and execute it. Here, '''C G P A''' and '''D O B columns''' are automatically set to '''NULL'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| We can add a '''NULL value''' by inserting a record without specifying its value.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE cgpa IS NULL;'''&lt;br /&gt;
|| Type the following query.&lt;br /&gt;
&lt;br /&gt;
Here we are using the I'''S NULL '''clause.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
The output displays details of students whose '''C G P A''' is currently not recorded.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Here, the '''D O B''' and '''C G P A''' values are not known. &lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now let us see another example.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''SELECT studentid, studentname'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE cgpa IS NULL;'''&lt;br /&gt;
&lt;br /&gt;
Click on the''' Execute query button'''.&lt;br /&gt;
|| Type the following query and execute it. This query displays studentid and their names whose '''C G P A''' value is '''NULL'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us update the record so that it no longer displays NULL.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''UPDATE Statement'''&lt;br /&gt;
|| '''UPDATE''' Statement is used to modify existing records in a table.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of UPDATE Statement'''.&lt;br /&gt;
&lt;br /&gt;
'''UPDATE table_name'''&lt;br /&gt;
&lt;br /&gt;
'''SET column1 = value1, column2 = value2, ...'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE condition; '''&lt;br /&gt;
|| Here is the syntax of the UPDATE statement.'''UPDATE''' specifies the table to be modified.&lt;br /&gt;
&lt;br /&gt;
'''SET''' assigns new values to one or more columns.&lt;br /&gt;
&lt;br /&gt;
'''WHERE''' selects the records that need to be updated.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''UPDATE students'''&lt;br /&gt;
&lt;br /&gt;
'''SET cgpa = 8.1'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentid = 'S116';'''&lt;br /&gt;
&lt;br /&gt;
Click on the''' Execute query button'''.&lt;br /&gt;
|| Let us update the Null value.&lt;br /&gt;
&lt;br /&gt;
Type this query. &lt;br /&gt;
&lt;br /&gt;
Here the '''SET''' keyword sets the C G P A value to 8 point 1.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Cursor on Query returned successfully in 322 msec.'''&lt;br /&gt;
|| The output shows that the query is updated.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: &lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students '''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentid = ‘S116’;'''&lt;br /&gt;
|| Now let us type this query and execute it.&lt;br /&gt;
&lt;br /&gt;
We can see that a new record is added to the table.&lt;br /&gt;
|-&lt;br /&gt;
|| Show the table and point to M in the records.&lt;br /&gt;
|| Let us update the records of students with studentids S116 and S117&lt;br /&gt;
|-&lt;br /&gt;
|| Type the following:'''UPDATE students'''&lt;br /&gt;
&lt;br /&gt;
'''SET gender = 'Male''''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentid = 'S116''''&lt;br /&gt;
&lt;br /&gt;
'''OR studentid = 'S117';'''&lt;br /&gt;
&lt;br /&gt;
Click on the Execute Query button.&lt;br /&gt;
|| Type the following query.&lt;br /&gt;
&lt;br /&gt;
In this query we will set the gender to male.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
The table is now updated.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''SELECT * FROM students; '''&lt;br /&gt;
&lt;br /&gt;
Click on the Execute Query button.&lt;br /&gt;
&lt;br /&gt;
Point to the gender columns of the students.&lt;br /&gt;
|| Let us display the entire table.Type this query and execute it.&lt;br /&gt;
&lt;br /&gt;
We can see that in the gender column M is updated to Male for studentids '''S116 '''and''' S117'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt how to,&lt;br /&gt;
* Insert and Display Null values and &lt;br /&gt;
* UPDATE Statement&lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment, '''&lt;br /&gt;
&lt;br /&gt;
Insert a student record with a NULL CGPA value.&lt;br /&gt;
&lt;br /&gt;
Update the NULL CGPA value for one student.&lt;br /&gt;
&lt;br /&gt;
Verify the updated record using a SELECT query.&lt;br /&gt;
|| We encourage you to do this assignment.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
&lt;br /&gt;
This '''Spoken''' '''Tutorial''' is brought to you by '''EduPyramids''' Educational Services Private Limited SINE IIT Bombay.&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Logical-Operators/English</id>
		<title>PostgreSQL-Database/C2/Logical-Operators/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Logical-Operators/English"/>
				<updated>2026-04-17T10:41:46Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Logical Operators in PostgreSQL'''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''PostgreSQL, pgAdmin 4, Logical operators, AND, OR, NOT, WHERE, EduPyramids, Video Tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on''' Logical Operators '''in''' PostgreSQL'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn about&lt;br /&gt;
* '''AND''', '''OR '''and''' NOT''' operators.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements '''&lt;br /&gt;
* '''Ubuntu 24.04''' '''LTS'''&lt;br /&gt;
* '''PostgreSQL version 18.1''', and&lt;br /&gt;
* '''PgAdmin 4 version 9.11'''.&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org] '''&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''PostgreSQL''' and '''pgAdmin 4 '''&lt;br /&gt;
* For the prerequisite '''PostgreSQL '''tutorials, please visit this website. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
* '''lo-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link on this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Logical Operators'''&lt;br /&gt;
|| '''Logical''' '''operators''' are used to combine multiple conditions in a query.&lt;br /&gt;
&lt;br /&gt;
They help to filter records by evaluating conditions.&lt;br /&gt;
&lt;br /&gt;
We will use '''AND''', '''OR''', and '''NOT '''operators to explain various conditions'''.'''&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us use the '''AND''' operator in a query.&lt;br /&gt;
&lt;br /&gt;
I have opened the '''pgAdmin 4 '''interface and connected to the localhost server.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: &lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city = 'Pune' AND gender = 'Female';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:WHERE'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:AND'''&lt;br /&gt;
|| Let us type the following query.&lt;br /&gt;
&lt;br /&gt;
Here, we are using the '''WHERE''' clause along with the '''AND''' operator.&lt;br /&gt;
&lt;br /&gt;
The condition checks if the city is Pune and gender is Female.&lt;br /&gt;
&lt;br /&gt;
In '''AND''' operation, only those records are shown that satisfy both the conditions.&lt;br /&gt;
|- &lt;br /&gt;
|| click the '''execute''' '''query''' button.&lt;br /&gt;
&lt;br /&gt;
Point&lt;br /&gt;
|| Click the''' Execute''' query icon on the toolbar.&lt;br /&gt;
&lt;br /&gt;
The output shows only two records that satisfy the given condition.&lt;br /&gt;
&lt;br /&gt;
Observe that records of only female students from Pune are displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us use the '''OR''' operator in an example.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type''': &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city = 'Mumbai' OR city = 'Delhi';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:WHERE'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:OR'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Now type the following query.&lt;br /&gt;
&lt;br /&gt;
Here, we use the '''WHERE''' clause with the '''OR''' operator.&lt;br /&gt;
&lt;br /&gt;
This condition checks whether the city is Mumbai or Delhi. &lt;br /&gt;
&lt;br /&gt;
Rows that satisfy at least one of these conditions are displayed.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
We see the details of students from Mumbai and Delhi.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now, let us see an example of the '''NOT''' operator.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE NOT gender = 'Male';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:WHERE'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:NOT'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
&lt;br /&gt;
|| Type the following query.&lt;br /&gt;
&lt;br /&gt;
Here, we use the '''WHERE''' clause with the '''NOT''' operator.&lt;br /&gt;
&lt;br /&gt;
This condition excludes all the rows where gender is Male.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
The output shows the details of all the female students. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt about&lt;br /&gt;
* '''AND''', '''OR''' and''' NOT operators'''.&lt;br /&gt;
&lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment, '''&lt;br /&gt;
* Retrieve the details of students who are from Chennai and whose gender is Female.&lt;br /&gt;
* Display the records of students who are from Hyderabad or Bangalore.&lt;br /&gt;
* List all students who are not from Pune.&lt;br /&gt;
* Find students whose gender is Male and not from Mumbai.&lt;br /&gt;
* List student details where city is Jaipur or Ahmedabad, but gender is not Female.&lt;br /&gt;
|| We encourage you to do this assignment.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
This '''Spoken''' '''Tutorial''' is brought to you by '''EduPyramids''' Educational Private Limited SINE IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Logical-Operators/English</id>
		<title>PostgreSQL-Database/C2/Logical-Operators/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Logical-Operators/English"/>
				<updated>2026-04-17T10:40:21Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: Logical Operators in PostgreSQL'''  '''Author: EduPyramids / Ketki Bhamble'''  '''Keywords: '''PostgreSQL, pgAdmin 4, Logical operators, AND, OR, NOT,...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Logical Operators in PostgreSQL'''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids / Ketki Bhamble'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''PostgreSQL, pgAdmin 4, Logical operators, AND, OR, NOT, WHERE, EduPyramids, Video Tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on''' Logical Operators '''in''' PostgreSQL'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn about&lt;br /&gt;
* '''AND''', '''OR '''and''' NOT''' operators.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements '''&lt;br /&gt;
* '''Ubuntu 24.04''' '''LTS'''&lt;br /&gt;
* '''PostgreSQL version 18.1''', and&lt;br /&gt;
* '''PgAdmin 4 version 9.11'''.&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org] '''&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''PostgreSQL''' and '''pgAdmin 4 '''&lt;br /&gt;
* For the prerequisite '''PostgreSQL '''tutorials, please visit this website. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
* '''lo-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link on this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Logical Operators'''&lt;br /&gt;
|| '''Logical''' '''operators''' are used to combine multiple conditions in a query.&lt;br /&gt;
&lt;br /&gt;
They help to filter records by evaluating conditions.&lt;br /&gt;
&lt;br /&gt;
We will use '''AND''', '''OR''', and '''NOT '''operators to explain various conditions'''.'''&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us use the '''AND''' operator in a query.&lt;br /&gt;
&lt;br /&gt;
I have opened the '''pgAdmin 4 '''interface and connected to the localhost server.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: &lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city = 'Pune' AND gender = 'Female';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:WHERE'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:AND'''&lt;br /&gt;
|| Let us type the following query.&lt;br /&gt;
&lt;br /&gt;
Here, we are using the '''WHERE''' clause along with the '''AND''' operator.&lt;br /&gt;
&lt;br /&gt;
The condition checks if the city is Pune and gender is Female.&lt;br /&gt;
&lt;br /&gt;
In '''AND''' operation, only those records are shown that satisfy both the conditions.&lt;br /&gt;
|- &lt;br /&gt;
|| click the '''execute''' '''query''' button.&lt;br /&gt;
&lt;br /&gt;
Point&lt;br /&gt;
|| Click the''' Execute''' query icon on the toolbar.&lt;br /&gt;
&lt;br /&gt;
The output shows only two records that satisfy the given condition.&lt;br /&gt;
&lt;br /&gt;
Observe that records of only female students from Pune are displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us use the '''OR''' operator in an example.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type''': &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city = 'Mumbai' OR city = 'Delhi';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:WHERE'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:OR'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Now type the following query.&lt;br /&gt;
&lt;br /&gt;
Here, we use the '''WHERE''' clause with the '''OR''' operator.&lt;br /&gt;
&lt;br /&gt;
This condition checks whether the city is Mumbai or Delhi. &lt;br /&gt;
&lt;br /&gt;
Rows that satisfy at least one of these conditions are displayed.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
We see the details of students from Mumbai and Delhi.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now, let us see an example of the '''NOT''' operator.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE NOT gender = 'Male';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:WHERE'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:NOT'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
&lt;br /&gt;
|| Type the following query.&lt;br /&gt;
&lt;br /&gt;
Here, we use the '''WHERE''' clause with the '''NOT''' operator.&lt;br /&gt;
&lt;br /&gt;
This condition excludes all the rows where gender is Male.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
The output shows the details of all the female students. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt about&lt;br /&gt;
* '''AND''', '''OR''' and''' NOT operators'''.&lt;br /&gt;
&lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment, '''&lt;br /&gt;
* Retrieve the details of students who are from Chennai and whose gender is Female.&lt;br /&gt;
* Display the records of students who are from Hyderabad or Bangalore.&lt;br /&gt;
* List all students who are not from Pune.&lt;br /&gt;
* Find students whose gender is Male and not from Mumbai.&lt;br /&gt;
* List student details where city is Jaipur or Ahmedabad, but gender is not Female.&lt;br /&gt;
|| We encourage you to do this assignment.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
This '''Spoken''' '''Tutorial''' is brought to you by '''EduPyramids''' Educational Private Limited SINE IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Relational-Operators/English</id>
		<title>PostgreSQL-Database/C2/Relational-Operators/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Relational-Operators/English"/>
				<updated>2026-04-10T09:47:21Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Relational Operators.'''&lt;br /&gt;
&lt;br /&gt;
'''Authors: EduPyramids.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' postgresql, pgadmin4, Relational operators, equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to, WHERE clause, EduPyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on '''Relational Operators '''in''' Postgres Q L'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn about&lt;br /&gt;
* '''Relational operators'''. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements '''&lt;br /&gt;
* '''Ubuntu 24.04 LTS'''&lt;br /&gt;
* '''PostgreSQL version 18.1''', and&lt;br /&gt;
* '''PgAdmin 4 version 9.11'''&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&amp;lt;span style=&amp;quot;background-color:transparent;color:#000000;&amp;quot;&amp;gt; '''&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''Postgres Q L''' and '''p g Admin 4'''.&lt;br /&gt;
* For the prerequisite '''Postgres Q L''' tutorials, please visit this website. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
* '''ro-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Relational operators'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city = ‘Bhopal’;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Highlight: WHERE'''&lt;br /&gt;
|| Relational operators are used to compare values in a table.&lt;br /&gt;
&lt;br /&gt;
They are used along with the '''WHERE''' clause to filter the records.&lt;br /&gt;
&lt;br /&gt;
They return only those rows that satisfy a specified condition.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Point to the interface.'''&lt;br /&gt;
|| I have opened the '''p g Admin 4 '''interface and connected to the localhost server.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now let us use relational operators to execute queries with different conditions.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city = 'Delhi';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight: WHERE city = 'Delhi';'''&lt;br /&gt;
&lt;br /&gt;
Press the '''Execute''' '''query''' button.&lt;br /&gt;
|| Let us type this query.&lt;br /&gt;
&lt;br /&gt;
In this query we will retrieve the records of students using equal to operator.&lt;br /&gt;
&lt;br /&gt;
Click the Execute query icon to execute the query.&lt;br /&gt;
&lt;br /&gt;
This query displays the details of the student Bindu, who resides in Delhi.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE cgpa &amp;gt; 9.0;'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Next let us type this query.&lt;br /&gt;
&lt;br /&gt;
Here we will retrieve the records of students whose C G P A is greater than 9 point zero.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
Output shows the details of students whose C G P A is greater than 9 point zero.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE cgpa &amp;lt; 8.0;'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Next, let us type this query.&lt;br /&gt;
&lt;br /&gt;
Here we will retrieve the records of students whose C G P A is less than 8 point zero.&lt;br /&gt;
&lt;br /&gt;
Now execute this query to see the output.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE dob&amp;gt;= '1996-04-22';'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Let us now retrieve the records of students based on date of birth.&lt;br /&gt;
&lt;br /&gt;
I will type the query that uses the greater than or equal to operator.&lt;br /&gt;
&lt;br /&gt;
Then execute it.&lt;br /&gt;
&lt;br /&gt;
The output displays all student records who were born on or after 22 April 1996.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentid &amp;lt;= 'S111';'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Next, let us retrieve the records of students whose student id is '''S 1 1 1 '''or less.&lt;br /&gt;
&lt;br /&gt;
Let me type this query. &lt;br /&gt;
&lt;br /&gt;
Here we have used less than or equal to operator. &lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
Notice the records of students in the table.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city &amp;lt;&amp;gt; 'Mumbai';'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Now, let us retrieve the records of students whose city is not Mumbai.&lt;br /&gt;
&lt;br /&gt;
Let us type this query.&lt;br /&gt;
&lt;br /&gt;
Here we have used the not equal to operator.&lt;br /&gt;
&lt;br /&gt;
Now execute the query.&lt;br /&gt;
&lt;br /&gt;
The output displays all students who are not from Mumbai. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7 '''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt about&lt;br /&gt;
* Relational operators. &lt;br /&gt;
&lt;br /&gt;
|| Let us summarize.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8 '''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment,'''&lt;br /&gt;
* Retrieve the details of students who reside in the city Pune.&lt;br /&gt;
* Display the details of students whose gender is Female.&lt;br /&gt;
* Retrieve the details of students who were born before 1st January 1996.&lt;br /&gt;
* Display the details of students whose student ID is not S101.&lt;br /&gt;
|| We encourage you to do this assignment.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited, SINE, IIT Bombay.'''&lt;br /&gt;
&lt;br /&gt;
'''Thank You'''&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Filtering-and-Sorting-Data/English</id>
		<title>PostgreSQL-Database/C2/Filtering-and-Sorting-Data/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Filtering-and-Sorting-Data/English"/>
				<updated>2026-04-07T10:41:12Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
'''Title of the Script: Filtering and Sorting Data '''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''PostgreSQL, pgAdmin 4, WHERE, ORDER BY, data filtering, data sorting, ascending order, descending order, EduPyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration '''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on''' Filtering and Sorting Data '''in''' Postgresql'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn to use,&lt;br /&gt;
* '''WHERE''' clause and&lt;br /&gt;
* '''ORDER BY '''clause.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements '''&lt;br /&gt;
* '''Ubuntu 24.04''' '''LTS'''&lt;br /&gt;
* '''PostgreSQL version 18.1''', and&lt;br /&gt;
* '''PgAdmin 4 version 9.11'''.&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&amp;lt;span style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt; '''&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''PostgreSQL''' and '''p g Admin 4'''.''' '''&lt;br /&gt;
* For the prerequisite '''PostgreSQL''' tutorials, please visit this website. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
* '''wo-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE Clause'''&lt;br /&gt;
|| The''' WHERE''' clause is used to apply a condition to filter records.&lt;br /&gt;
&lt;br /&gt;
It is used to extract only those records that satisfy a specified condition.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of Where clause '''&lt;br /&gt;
&lt;br /&gt;
'''SELECT column1, column2'''&lt;br /&gt;
&lt;br /&gt;
'''FROM table_name'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE condition;'''&lt;br /&gt;
|| The basic syntax of the '''WHERE '''clause is shown here.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Point to the interface.'''&lt;br /&gt;
|| I have opened the '''p g Admin 4 '''interface and connected to the localhost server.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Show the code file while recording.'''&lt;br /&gt;
|| Let us insert a few records of the students.&lt;br /&gt;
&lt;br /&gt;
Please copy and paste this code from the code file in the query window.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Click the Execute query icon on the tool bar.'''&lt;br /&gt;
|| Let us click the''' Execute query icon '''on the''' toolbar''' to insert the rows.&lt;br /&gt;
|- &lt;br /&gt;
|| '''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentname = 'Ram';'''&lt;br /&gt;
&lt;br /&gt;
'''Click the Execute query icon.'''&lt;br /&gt;
&lt;br /&gt;
'''Point to the output.'''&lt;br /&gt;
|| Now I will type this query.&lt;br /&gt;
&lt;br /&gt;
In this query '''SELECT '''keyword''' '''is used to retrieve data.&lt;br /&gt;
&lt;br /&gt;
'''WHERE keyword''' filters the rows and shows all the details of the student named '''Ram'''.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query to see the output.&lt;br /&gt;
|- &lt;br /&gt;
|| '''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentid = 'S102';'''&lt;br /&gt;
&lt;br /&gt;
'''Press the Execute query icon.'''&lt;br /&gt;
|| Let us type another query using a '''WHERE''' clause.&lt;br /&gt;
&lt;br /&gt;
I will execute the query to see the details of the student with I D S 1 0 2.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Next, let us learn about the '''ORDER BY''' clause.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''ORDER BY Clause'''&lt;br /&gt;
|| The '''ORDER BY''' clause sorts the records in ascending or descending order.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of ORDER BY Clause'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT column1, column2, ...'''&lt;br /&gt;
&lt;br /&gt;
'''FROM table_name'''&lt;br /&gt;
&lt;br /&gt;
'''ORDER BY column1, column2, ... ASC|DESC;'''&lt;br /&gt;
|| This is the syntax of the '''ORDER BY '''clause.&lt;br /&gt;
&lt;br /&gt;
Here '''A S C''' sorts the data in ascending order.&lt;br /&gt;
&lt;br /&gt;
'''D E S C''' sorts the data in descending order.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''ORDER BY cgpa;'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight ORDER BY'''&lt;br /&gt;
&lt;br /&gt;
Click the Execute''' query button'''.&lt;br /&gt;
|| Let us type this query.&lt;br /&gt;
&lt;br /&gt;
By default '''ORDER BY''' clause sorts the records in ascending order.&lt;br /&gt;
&lt;br /&gt;
Click the Execute query icon to execute the query.&lt;br /&gt;
&lt;br /&gt;
Observe that records are sorted by '''C G P A''' in ascending order.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now let us sort the records in descending order.&lt;br /&gt;
|- &lt;br /&gt;
|| Type:&lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''ORDER BY cgpa DESC;'''&lt;br /&gt;
&lt;br /&gt;
Click the Execute''' query button'''.&lt;br /&gt;
|| Let us type this query.&lt;br /&gt;
&lt;br /&gt;
Here the '''D E S C '''keyword''' '''sorts the records in descending order.&lt;br /&gt;
&lt;br /&gt;
Now let’s execute the query.&lt;br /&gt;
&lt;br /&gt;
The result shows that records are sorted by C G P A in descending order.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''In this tutorial, we learnt to use&lt;br /&gt;
* '''WHERE''' clause and&lt;br /&gt;
* '''ORDER BY''' clause&lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
'''As an Assignment, '''&lt;br /&gt;
* Filter student records where city is Bhopal''' '''&lt;br /&gt;
* Display all student records in ascending and descending orders sorted by city&lt;br /&gt;
|| We encourage you to do this assignment.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
&lt;br /&gt;
This '''Spoken''' '''Tutorial''' is brought to you by '''EduPyramids''' Educational Private Limited SINE IIT Bombay.&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Relational-Operators/English</id>
		<title>PostgreSQL-Database/C2/Relational-Operators/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Relational-Operators/English"/>
				<updated>2026-04-07T10:27:10Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: Relational Operators.'''  '''Authors: EduPyramids.'''  '''Keywords:''' postgresql, pgadmin4, Relational operators, equal to, not equal to, greater than...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Relational Operators.'''&lt;br /&gt;
&lt;br /&gt;
'''Authors: EduPyramids.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' postgresql, pgadmin4, Relational operators, equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to, WHERE clause, edupyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on '''Relational Operators '''in''' Postgres Q L'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn about&lt;br /&gt;
* '''Relational operators'''. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements '''&lt;br /&gt;
* '''Ubuntu 24.04 LTS'''&lt;br /&gt;
* '''PostgreSQL version 18.1''', and&lt;br /&gt;
* '''PgAdmin 4 version 9.11'''&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&amp;lt;span style=&amp;quot;background-color:transparent;color:#000000;&amp;quot;&amp;gt; '''&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''Postgres Q L''' and '''p g Admin 4'''.&lt;br /&gt;
* For the prerequisite '''Postgres Q L''' tutorials, please visit this website. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files '''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
* '''ro-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link on this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
Please download and extract the file.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Relational operators'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city = ‘Bhopal’;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Highlight: WHERE'''&lt;br /&gt;
|| Relational operators are used to compare values in a table.&lt;br /&gt;
&lt;br /&gt;
They are used along with the '''WHERE''' clause to filter the records.&lt;br /&gt;
&lt;br /&gt;
They return only those rows that satisfy a specified condition.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Point to the interface.'''&lt;br /&gt;
|| I have opened the '''p g Admin 4 '''interface and connected to the localhost server.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now let us use relational operators to execute queries with different conditions.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city = 'Delhi';'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight: WHERE city = 'Delhi';'''&lt;br /&gt;
&lt;br /&gt;
Press the '''Execute''' '''query''' button.&lt;br /&gt;
|| Let us type this query.&lt;br /&gt;
&lt;br /&gt;
In this query we will retrieve the records of students using equal to operator.&lt;br /&gt;
&lt;br /&gt;
Click the Execute query icon to execute the query.&lt;br /&gt;
&lt;br /&gt;
This query displays the details of the student Bindu, who resides in Delhi.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE cgpa &amp;gt; 9.0;'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Next let us type this query.&lt;br /&gt;
&lt;br /&gt;
Here we will retrieve the records of students whose C G P A is greater than 9 point zero.&lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
Output shows the details of students whose C G P A is greater than 9 point zero.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE cgpa &amp;lt; 8.0;'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Next, let us type this query.&lt;br /&gt;
&lt;br /&gt;
Here we will retrieve the records of students whose C G P A is less than 8 point zero.&lt;br /&gt;
&lt;br /&gt;
Now execute this query to see the output.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE dob&amp;gt;= '1996-04-22';'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Let us now retrieve the records of students based on date of birth.&lt;br /&gt;
&lt;br /&gt;
I will type the query that uses the greater than or equal to operator.&lt;br /&gt;
&lt;br /&gt;
Then execute it.&lt;br /&gt;
&lt;br /&gt;
The output displays all student records who were born on or after 22 April 1996.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT * FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE studentid &amp;lt;= 'S111';'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Next, let us retrieve the records of students whose student id is '''S 1 1 1 '''or less.&lt;br /&gt;
&lt;br /&gt;
Let me type this query. &lt;br /&gt;
&lt;br /&gt;
Here we have used less than or equal to operator. &lt;br /&gt;
&lt;br /&gt;
Let us execute the query.&lt;br /&gt;
&lt;br /&gt;
Notice the records of students in the table.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type the following query:'''&lt;br /&gt;
&lt;br /&gt;
'''SELECT *'''&lt;br /&gt;
&lt;br /&gt;
'''FROM students'''&lt;br /&gt;
&lt;br /&gt;
'''WHERE city &amp;lt;&amp;gt; 'Mumbai';'''&lt;br /&gt;
&lt;br /&gt;
Press the '''execute''' '''query''' button.&lt;br /&gt;
|| Now, let us retrieve the records of students whose city is not Mumbai.&lt;br /&gt;
&lt;br /&gt;
Let us type this query.&lt;br /&gt;
&lt;br /&gt;
Here we have used the not equal to operator.&lt;br /&gt;
&lt;br /&gt;
Now execute the query.&lt;br /&gt;
&lt;br /&gt;
The output displays all students who are not from Mumbai. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7 '''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt about&lt;br /&gt;
* Relational operators. &lt;br /&gt;
&lt;br /&gt;
|| Let us summarize.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8 '''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment,'''&lt;br /&gt;
* Retrieve the details of students who reside in the city Pune.&lt;br /&gt;
* Display the details of students whose gender is Female.&lt;br /&gt;
* Retrieve the details of students who were born before 1st January 1996.&lt;br /&gt;
* Display the details of students whose student ID is not S101.&lt;br /&gt;
|| We encourage you to do this assignment.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited, SINE, IIT Bombay.'''&lt;br /&gt;
&lt;br /&gt;
'''Thank You'''&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Data-Redundancy-and-Primary-Key/English</id>
		<title>PostgreSQL-Database/C2/Data-Redundancy-and-Primary-Key/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/PostgreSQL-Database/C2/Data-Redundancy-and-Primary-Key/English"/>
				<updated>2026-02-07T04:44:37Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: Data Redundancy and Primary Key'''  '''Author''': '''EduPyramids'''  '''Keywords''':''' Data redundancy, Query Tool,''' '''use a''' '''primary key, DRO...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Data Redundancy and Primary Key'''&lt;br /&gt;
&lt;br /&gt;
'''Author''': '''EduPyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords''':''' Data redundancy, Query Tool,''' '''use a''' '''primary key, DROP TABLE, EduPyramids,&lt;br /&gt;
Video Tutorial.'''&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1 Title Slide'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Data Redundancy and Primary Key'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2 Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn about,&lt;br /&gt;
*Data redundancy&lt;br /&gt;
*Why data redundancy is a problem&lt;br /&gt;
*Primary keys, and &lt;br /&gt;
*How to create a table with a primary key.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3 System Requirements '''&lt;br /&gt;
|| To record this tutorial, I am using, * '''Ubuntu&lt;br /&gt;
24.04''' LTS&lt;br /&gt;
* '''PostgreSQL version 18.1''' and &lt;br /&gt;
* '''pgAdmin 4 version 9.11'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4 Pre-requisites '''&lt;br /&gt;
'''https://EduPyramids.org'''&lt;br /&gt;
|| To follow this tutorial, * Learners should have&lt;br /&gt;
'''PostgreSQL''' and '''pgAdmin 4''' installed in their systems.&lt;br /&gt;
&lt;br /&gt;
For the pre-requisite '''PostgreSQL''' tutorials, please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5 Code Files '''&lt;br /&gt;
drp-codes.txt&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| Open '''pgAdmin 4'''&lt;br /&gt;
&lt;br /&gt;
|| Let us open '''pgAdmin 4'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on '''localhost''' node.&lt;br /&gt;
|| Please ensure that '''Localhost''' '''PostgreSQL '''server is connected.&lt;br /&gt;
|- &lt;br /&gt;
|| Click '''students''' table&lt;br /&gt;
|| Now let’s click on the '''students''' table.&lt;br /&gt;
|- &lt;br /&gt;
|| Right click on students tableSelect '''Query Tool'''. Cursor on '''Query''' Editor.&lt;br /&gt;
|| I will right click on the '''students''' table and select the '''Query Tool'''.&lt;br /&gt;
The '''Query''' Editor window opens on the right side.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''SELECT * FROM students;'''&lt;br /&gt;
&lt;br /&gt;
'''Show SQL'''&lt;br /&gt;
|| Let us retrieve the data from the '''students''' table.&lt;br /&gt;
Type '''SELECT space asterisk space FROM space students semicolon'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Click '''Execute query '''button.&lt;br /&gt;
Looks like a play button.Highlight the output.&lt;br /&gt;
|| Click on the '''Execute''' '''query '''button on the tool bar.The output is displayed in tabular format.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to duplicate names&lt;br /&gt;
|| We can see that student names such as '''Ram''' or '''Kishore''' appear more than once.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6 Data Redundancy'''&lt;br /&gt;
|| Data redundancy means duplication of data in a database table.&lt;br /&gt;
It increases storage usage, causes data inconsistency and affects database performance.&lt;br /&gt;
|- &lt;br /&gt;
||&lt;br /&gt;
|| To prevent data redundancy, we use a '''primary key'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide7 What is a Primary Key?'''&lt;br /&gt;
|| A primary key is a column or a set of columns that uniquely identifies each row in a table.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8 Rules of Primary Key'''&lt;br /&gt;
|| A table can have only one primary key, and its values must be unique and not null.Student name cannot&lt;br /&gt;
be a primary key as multiple students can have the same name.&lt;br /&gt;
|- &lt;br /&gt;
|| '''pgAdmin 4 cursor on Columns'''&lt;br /&gt;
|| Therefore, we will create a new column called '''studentid''' and make it as the primary key.&lt;br /&gt;
|- &lt;br /&gt;
|| '''pgAdmin 4'''&lt;br /&gt;
|| First, we must delete the existing students table.&lt;br /&gt;
|- &lt;br /&gt;
|| Right-click on the students table.&lt;br /&gt;
|| Let me right click on the '''students''' table.A '''context menu '''opens.&lt;br /&gt;
|- &lt;br /&gt;
|| Select '''Drop'''&lt;br /&gt;
|| I will select the '''Drop''' option.&lt;br /&gt;
&lt;br /&gt;
Drop Table pop up box appears with a message.Click the red colored '''Drop button. '''Notice that the table&lt;br /&gt;
structure along with its data is deleted.&lt;br /&gt;
|- &lt;br /&gt;
|| '''DROP TABLE tablename; Add annotation'''&lt;br /&gt;
|| The syntax to delete a table is '''DROP TABLE tablename semicolon.'''&lt;br /&gt;
|- &lt;br /&gt;
||&lt;br /&gt;
|| Let us create the '''students''' table with a primary key.&lt;br /&gt;
|- &lt;br /&gt;
|| Open Right-click on the Tables and select '''Query Tool'''&lt;br /&gt;
|| Now let us open the '''Query Tool'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Show SQLType CREATE TABLE students ('''&lt;br /&gt;
'''studentid VARCHAR(10),'''&lt;br /&gt;
'''studentname VARCHAR(50),'''&lt;br /&gt;
'''city VARCHAR(40),'''&lt;br /&gt;
'''gender VARCHAR(10),'''&lt;br /&gt;
'''dob DATE,'''&lt;br /&gt;
'''cgpa NUMERIC(2,1),'''&lt;br /&gt;
'''PRIMARY KEY (studentid)'''&lt;br /&gt;
''');'''&lt;br /&gt;
|| Let me type the following code in the query window.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''studentid'''&lt;br /&gt;
|| Here, '''studentid''' is defined as the primary key.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''Execute''' '''query button'''.Cursor on green notification:'''The students table is created&lt;br /&gt;
successfully'''.&lt;br /&gt;
|| Let us execute this query.The students table is created successfully.&lt;br /&gt;
|- &lt;br /&gt;
||&lt;br /&gt;
|| Now let us insert data into this table.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''INSERT INTO students VALUES'''&lt;br /&gt;
'''('S101','Ram','Mumbai','Male','1996-10-23',9.6),'''&lt;br /&gt;
'''('S102','Kishore','Mumbai','Male','1996-08-09',8.5),'''&lt;br /&gt;
'''('S103','Pooja','Pune','Female','1995-03-25',9.2);'''&lt;br /&gt;
|| Let me type the following code in the query window.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''Execute''' '''query''' button.Show the notifications.&lt;br /&gt;
|| Click on the '''Execute query''' button to execute the code.The records are inserted successfully.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''Execute''' '''query '''button.&lt;br /&gt;
&lt;br /&gt;
|| Let us insert the same data again.&lt;br /&gt;
For that, execute the '''INSERT''' statement once more.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to error&lt;br /&gt;
|| We get an error message saying '''duplicate key value violates unique constraint'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the error.&lt;br /&gt;
|| This error occurs because the primary key does not allow duplicate values.Now, let us retrieve the data&lt;br /&gt;
again.&lt;br /&gt;
|- &lt;br /&gt;
|| Type:''' SELECT * FROM students;''' Click on the '''Execute '''button.&lt;br /&gt;
&lt;br /&gt;
Show the Output.&lt;br /&gt;
|| Let me type '''SELECT asterisk FROM students semicolon'''.Execute the following command.Notice that&lt;br /&gt;
there is no duplication of data in the table.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9 Summary'''&lt;br /&gt;
In this tutorial, we will learn about,* Data&lt;br /&gt;
redundancy &lt;br /&gt;
* Why data redundancy is a problem&lt;br /&gt;
* Primary keys, and &lt;br /&gt;
* How to create a table with a primary key.&lt;br /&gt;
&lt;br /&gt;
|| With this we come to the end of this tutorial.Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| * '''Slide 10 As an Assignment,'''&lt;br /&gt;
* Drop the '''Emp''' table&lt;br /&gt;
* Create it again with '''empno''' as the primary&lt;br /&gt;
key&lt;br /&gt;
* Insert a few records and retrieve the data.&lt;br /&gt;
&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11 Thank You '''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by '''EduPyramids''' educational services private limited SINE IIT&lt;br /&gt;
Bombay.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Linux-File-Ownership-and-Permissions/English</id>
		<title>Linux-New/C2/Linux-File-Ownership-and-Permissions/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Linux-File-Ownership-and-Permissions/English"/>
				<updated>2026-01-27T11:31:18Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script:''' '''Linux File Ownership and Permissions'''&lt;br /&gt;
&lt;br /&gt;
'''Authors:''' '''Edupyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' Linux, File Ownership, File Permissions, chown, chmod, chgrp, Inodes, Hard link, Soft link, Symbolic link, Terminal commands, Linux file system, edupyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1''' &lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Linux File Ownership and Permissions.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Manage file ownership and permissions using '''c h own''' and '''c h mod''' commands.&lt;br /&gt;
* Change file group ownership using '''chgrp''' command.&lt;br /&gt;
* Describe '''i nodes '''and view '''i node''' numbers of the files.&lt;br /&gt;
* Create and verify '''hard links '''and '''symbolic links''' in Linux.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu O S version 24 point 04'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://EduPyramids.org/ https://EduPyramids.org]&amp;lt;span style=&amp;quot;color:#1155cc;&amp;quot;&amp;gt; &amp;lt;/u&amp;gt;&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
&lt;br /&gt;
learners should have '''Ubuntu version 24 point 04.'''&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial.&lt;br /&gt;
# '''file-attr.zip'''&lt;br /&gt;
# '''fa-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
These files are provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''File Attributes'''&lt;br /&gt;
&lt;br /&gt;
'''File-attributes.png'''&lt;br /&gt;
|| File attributes are properties linked to a file. Attributes define ownership and permissions.&lt;br /&gt;
&lt;br /&gt;
They include file type, size, and time details. They show who owns the file and who can access it.&lt;br /&gt;
&lt;br /&gt;
File attributes are viewed using the '''l s hyphen l '''command.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to terminal &lt;br /&gt;
&lt;br /&gt;
Type''' cd Desktop/file-attr'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the output &lt;br /&gt;
&lt;br /&gt;
'''/Desktop/file-attr$d'''&lt;br /&gt;
|| Let us move to the code files folder '''file hyphen attr'''&lt;br /&gt;
&lt;br /&gt;
provided along with the tutorial.&lt;br /&gt;
&lt;br /&gt;
I have downloaded it to my '''Desktop'''.&lt;br /&gt;
&lt;br /&gt;
Now switch to the terminal.&lt;br /&gt;
&lt;br /&gt;
Type '''c d space Desktop slash file hyphen a t t r '''and press Enter. Notice that the prompt path has changed.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''ls -l example1'''&lt;br /&gt;
&lt;br /&gt;
and press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight the output'''&lt;br /&gt;
&lt;br /&gt;
'''point to the first character'''&lt;br /&gt;
|| Let us type &lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example1'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter. '''&lt;br /&gt;
&lt;br /&gt;
Observe the output. &lt;br /&gt;
&lt;br /&gt;
The first character in the output shows the file type.&lt;br /&gt;
&lt;br /&gt;
If it is a '''hyphen''', it denotes a regular file.&lt;br /&gt;
&lt;br /&gt;
If it is '''l,''' it denotes a '''symbolic link'''.&lt;br /&gt;
&lt;br /&gt;
If it is '''d''', it denotes a '''directory.'''&lt;br /&gt;
&lt;br /&gt;
We see a hyphen here since example1 is a regular file.&lt;br /&gt;
|- &lt;br /&gt;
|| highlight the next 9 characters&lt;br /&gt;
|| The next nine characters show '''permissions'''.&lt;br /&gt;
&lt;br /&gt;
First three denote '''owner''' permissions,&lt;br /&gt;
&lt;br /&gt;
Next three denote '''group''' permissions,&lt;br /&gt;
&lt;br /&gt;
Last three denote '''others''' permissions&lt;br /&gt;
&lt;br /&gt;
Here each set contains '''r, '''and''' w,''' means '''read, '''and''' write'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''example1'''&lt;br /&gt;
&lt;br /&gt;
highlight '''spoken'''&lt;br /&gt;
|| Here we can see that the owner of the file '''example1''' is '''spoken'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''chown command'''&lt;br /&gt;
* The''' chown''' command changes the ownership of a file or directory. &lt;br /&gt;
* This is an admin command.&lt;br /&gt;
* Only the root user can change the owner of a file or directory.&lt;br /&gt;
&lt;br /&gt;
'''chown [options] ownername filename or directoryname'''&lt;br /&gt;
|| * The''' c h own''' command changes the ownership of a file or directory. &lt;br /&gt;
* This is an admin command.&lt;br /&gt;
* Only the root user can change the ownership of a file or directory.&lt;br /&gt;
* Here is the syntax of the '''c h own''' command. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''chown options'''&lt;br /&gt;
* -R: change permissions for all files in the current directory and its sub-directories. &lt;br /&gt;
* -c: report changes made to files.&lt;br /&gt;
* -f: prevent chown from displaying error messages.&lt;br /&gt;
|| The '''c h own''' command comes with various options like '''hyphen R, hyphen c, hyphen f''' and others.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now we will look at some examples.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type'''&lt;br /&gt;
&lt;br /&gt;
'''sudo chown demo example1'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''.&lt;br /&gt;
|| Let us change the owner of the '''file''' '''example1'''.&lt;br /&gt;
&lt;br /&gt;
Type '''sudo space ch own space demo space example1'''&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| Type the sudo password if prompted.&lt;br /&gt;
|| Type the password if prompted again.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
''' ls -l example1'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Let us see the file attributes of '''example'''1.&lt;br /&gt;
&lt;br /&gt;
Type '''l s space hyphen l space example1''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
Observe that the new owner of the '''file''' is '''demo'''.&lt;br /&gt;
&lt;br /&gt;
This works only if the user named '''demo''' exists.&lt;br /&gt;
&lt;br /&gt;
Otherwise we will get an '''invalid user''' error.&lt;br /&gt;
&lt;br /&gt;
Recall that we have given you an assignment in an earlier tutorial to create a user named''' demo'''.&lt;br /&gt;
&lt;br /&gt;
If the user does not exist, please create the user.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''mkdir pond'''&lt;br /&gt;
&lt;br /&gt;
and press Enter.&lt;br /&gt;
&lt;br /&gt;
Type the command&lt;br /&gt;
&lt;br /&gt;
'''ls -l'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the pond directory details&lt;br /&gt;
&lt;br /&gt;
highlight examples 1 to 5. &lt;br /&gt;
|| Now, we will see how to change the owner''' '''of a '''directory.'''&lt;br /&gt;
&lt;br /&gt;
For that we will create a directory first.&lt;br /&gt;
&lt;br /&gt;
Type '''m k dir space pond '''and press Enter.&lt;br /&gt;
&lt;br /&gt;
To check, type '''l s space hyphen l '''and press Enter.&lt;br /&gt;
&lt;br /&gt;
It displays a directory named''' pond''' and all the existing files examples. &lt;br /&gt;
&lt;br /&gt;
Here we can see the owner of the directory '''pond''' is '''spoken'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type &lt;br /&gt;
&lt;br /&gt;
'''sudo chown -R demo pond '''&lt;br /&gt;
|| Let us change the owner of the directory''' pond''' to '''demo.'''&lt;br /&gt;
&lt;br /&gt;
Type the following command and press '''Enter '''&lt;br /&gt;
&lt;br /&gt;
Enter the sudo password, if required and press Enter again.&lt;br /&gt;
|- &lt;br /&gt;
|| Press '''Ctrl+L''' keys together.&lt;br /&gt;
&lt;br /&gt;
Type '''ls -l '''and press '''Enter'''.&lt;br /&gt;
|| I will clear the screen by pressing '''Ctrl + L''' keys together for our convenience. &lt;br /&gt;
&lt;br /&gt;
Now type,'''l s space hyphen l '''and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Here we can see the new owner of the directory '''pond''' is '''demo'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Changing File Permissions'''&lt;br /&gt;
&lt;br /&gt;
ch mod command is used to change the permissions of a file or directory. &lt;br /&gt;
&lt;br /&gt;
The name chmod stands for change mode. &lt;br /&gt;
&lt;br /&gt;
Using chmod we can grant or remove permissions for owner, group and others.&lt;br /&gt;
&lt;br /&gt;
read (r) &lt;br /&gt;
&lt;br /&gt;
write (w) &lt;br /&gt;
&lt;br /&gt;
execute (x) &lt;br /&gt;
&lt;br /&gt;
The command modifies only the permissions, not the file contents or ownership.&lt;br /&gt;
|| '''ch mod''' command is used to change the permissions of a''' file '''or''' directory'''.&lt;br /&gt;
&lt;br /&gt;
The name''' c h mod '''stands for change mode.&lt;br /&gt;
&lt;br /&gt;
Using '''chmod '''we can add or remove permissions such as: '''read, write, execute'''.&lt;br /&gt;
&lt;br /&gt;
These permissions can be changed''' '''for '''owner, group '''and '''others.'''&lt;br /&gt;
&lt;br /&gt;
It does not modify the file contents or change ownership.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of chmod command'''&lt;br /&gt;
&lt;br /&gt;
chmod [ugoa][+-=][rwx] file-or-directory&lt;br /&gt;
|| This is the syntax of the '''c h mod''' command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Permissions using three-digit octal number'''&lt;br /&gt;
&lt;br /&gt;
chmod [0-7][0-7][0-7] file_or_directory&lt;br /&gt;
&lt;br /&gt;
Each digit represents:&lt;br /&gt;
&lt;br /&gt;
1st digit → owner permissions&lt;br /&gt;
&lt;br /&gt;
2nd digit → group permissions&lt;br /&gt;
&lt;br /&gt;
3rd digit → others permissions&lt;br /&gt;
&lt;br /&gt;
Permission values:&lt;br /&gt;
&lt;br /&gt;
r = 4 (read)&lt;br /&gt;
&lt;br /&gt;
w = 2 (write)&lt;br /&gt;
&lt;br /&gt;
x = 1 (execute)&lt;br /&gt;
|| Alternatively, we can set permissions using a three digit octal number.&lt;br /&gt;
|- &lt;br /&gt;
|| Press Clear and press Enter.&lt;br /&gt;
|| Now, we will look at some examples of '''ch mod'''. &lt;br /&gt;
&lt;br /&gt;
Let me clear the screen&lt;br /&gt;
|- &lt;br /&gt;
|| Type'''chmod u+x example2'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
|| To add execute permission to the '''owner''' of the file '''example2''' type:'''ch mod space u plus x space example2 '''and''' '''press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
This will add the execute permission to the owner of the file example2.&lt;br /&gt;
|- &lt;br /&gt;
|| type&lt;br /&gt;
&lt;br /&gt;
''' ls -l example2&lt;br /&gt;
&lt;br /&gt;
'''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
highlight the permissions in the output&lt;br /&gt;
|| To check that, type&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example2'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter''' to see the changes&lt;br /&gt;
&lt;br /&gt;
It has assigned''' read, write''', and''' execute '''permissions to the '''owner. &lt;br /&gt;
&lt;br /&gt;
'''read-only''' permissions to the '''group'''.&lt;br /&gt;
&lt;br /&gt;
And '''read-only''' permission to '''others''', for the file example2.&lt;br /&gt;
|- &lt;br /&gt;
|| Type &lt;br /&gt;
&lt;br /&gt;
'''chmod 751 example2&lt;br /&gt;
&lt;br /&gt;
'''press Enter&lt;br /&gt;
&lt;br /&gt;
type '''ls -l example2'''&lt;br /&gt;
&lt;br /&gt;
and press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type the command&lt;br /&gt;
&lt;br /&gt;
'''ch mod space 751 space example2&lt;br /&gt;
&lt;br /&gt;
'''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
This command gives the''' owner read, write''', and '''execute '''permissions.&lt;br /&gt;
&lt;br /&gt;
To check type, '''ls space hyphen l space example2''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
'''Read''' and '''execute''' permissions to the '''group'''.&lt;br /&gt;
&lt;br /&gt;
And '''execute-only '''permission to '''others '''for the file '''example2'''.&lt;br /&gt;
|- &lt;br /&gt;
|| type '''chmod a&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;r example2'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''&lt;br /&gt;
|| To assign '''read-only''' permission to '''example2''' for everyone, type the following command:&lt;br /&gt;
&lt;br /&gt;
'''ch mod space a equal to r space example2''' and press '''Enter.'''&lt;br /&gt;
|- &lt;br /&gt;
|| type '''ls -l example2'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type the command,&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example2 '''&lt;br /&gt;
&lt;br /&gt;
and press Enter.&lt;br /&gt;
&lt;br /&gt;
Observe that the file '''example2''' has '''read-only '''permission for all users. &lt;br /&gt;
|- &lt;br /&gt;
|| Type '''chmod g+w example3 '''&lt;br /&gt;
&lt;br /&gt;
and press Enter&lt;br /&gt;
|| Let’s add the write permissions to the group for file '''example3'''. &lt;br /&gt;
&lt;br /&gt;
Type the command'''ch mod space g plus w space example3 '''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type'''ls -l example3''' &lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type,'''l s space hyphen l space example3'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Note that the write permission has been added to the group.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''chmod a-w example3'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
|| To remove the write permissions for all,type the command'''ch mod space a hyphen w space example3'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''ls -l example3'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type, '''l s space hyphen l space example3'''&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
&lt;br /&gt;
Observe that write permission for all has been removed&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12 '''&lt;br /&gt;
&lt;br /&gt;
'''chgrp command'''&lt;br /&gt;
&lt;br /&gt;
'''Ch-grp.png'''&lt;br /&gt;
|| &lt;br /&gt;
* '''ch grp''' command changes the '''group ownership''' of a file or directory.&lt;br /&gt;
* Group members can then access it based on the set permissions'''.'''&lt;br /&gt;
* Only the owner of a file or a privileged user can change the group.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 13'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of chgrp command'''&lt;br /&gt;
* The basic syntax of the ch grp command is:'''chgrp [options] group file'''&lt;br /&gt;
* To change the group of a directory and all its contents recursively:'''chgrp -R group directory'''&lt;br /&gt;
* Here, '''group''' is the new group name, and '''file''' or '''directory''' is the target.&lt;br /&gt;
|| &lt;br /&gt;
* The basic syntax of the''' ch g r p''' command is:'''ch grp options group file.'''&lt;br /&gt;
* To change the group of a directory and all its contents recursively type:'''ch grp hyphen R group directory.'''&lt;br /&gt;
* Here, '''group''' is the new group name, and '''file''' or '''directory''' is the target.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to terminal&lt;br /&gt;
&lt;br /&gt;
Press Clear and press Enter.&lt;br /&gt;
&lt;br /&gt;
type &lt;br /&gt;
&lt;br /&gt;
'''ls -l example4'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the permissions in the output&lt;br /&gt;
|| Let's look at some examples of '''ch grp''' commands.&lt;br /&gt;
&lt;br /&gt;
Type the command,&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example4 '''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Here we can see the group permission is given for the user '''spoken'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''sudo chgrp demo example4'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
|| To change the group permission, type the command'''sudo space ch grp space demo space example4 '''press Enter. Enter the sudo password, if required.&lt;br /&gt;
|- &lt;br /&gt;
|| Type &lt;br /&gt;
&lt;br /&gt;
'''ls -l example4''' &lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the permissions in the output&lt;br /&gt;
|| Now type the command'''l s space hyphen l space example4'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Observe that the group has changed from '''spoken''' to '''demo'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 14'''&lt;br /&gt;
&lt;br /&gt;
'''Inode'''&lt;br /&gt;
|| An '''i node''' is a unique number that stores file or directory information.&lt;br /&gt;
&lt;br /&gt;
Files are hard links to i nodes, which the system uses to access data.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to the terminal&lt;br /&gt;
&lt;br /&gt;
type the command&lt;br /&gt;
&lt;br /&gt;
'''ls -i example5'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the number in the output&lt;br /&gt;
|| We can use''' l s space hyphen i''' command to see the '''i node '''number of a file.&lt;br /&gt;
&lt;br /&gt;
type the command,''' l s space hyphen i space example5'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
The number written before the file is the i node number of the file.&lt;br /&gt;
&lt;br /&gt;
The '''i node''' number may vary for the users.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 15'''&lt;br /&gt;
&lt;br /&gt;
'''Hard Links'''&lt;br /&gt;
|| A hard link is another name for an existing file.&lt;br /&gt;
&lt;br /&gt;
Both files point to the same '''i node.'''&lt;br /&gt;
&lt;br /&gt;
Since they share the same i node, they share the same data on disk.&lt;br /&gt;
&lt;br /&gt;
The file is not copied, only a new filename is created.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 16'''&lt;br /&gt;
&lt;br /&gt;
'''Inode and Hard Links'''&lt;br /&gt;
|| An i node can have multiple directory entries through hard links.&lt;br /&gt;
&lt;br /&gt;
Hard links let multiple filenames point to the same i node.&lt;br /&gt;
&lt;br /&gt;
To create links in Linux, we use the '''ln''' command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 17'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of ln'''&lt;br /&gt;
&lt;br /&gt;
'''ln source link'''&lt;br /&gt;
|| The syntax of '''ln''' command to create a hard link is:&lt;br /&gt;
&lt;br /&gt;
'''ln space source space link'''&lt;br /&gt;
&lt;br /&gt;
The source is an existing file, and the link is the new filename.&lt;br /&gt;
&lt;br /&gt;
Both files point to the same i node and share the same data.&lt;br /&gt;
&lt;br /&gt;
Any change made to one file will reflect in the other file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: clear &lt;br /&gt;
&lt;br /&gt;
and press enter&lt;br /&gt;
&lt;br /&gt;
'''ln example2 exampleln'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Point to the command.&lt;br /&gt;
|| Now we will look at some examples of hard links&lt;br /&gt;
&lt;br /&gt;
Let me clear the screen again. &lt;br /&gt;
&lt;br /&gt;
Type the command,&lt;br /&gt;
&lt;br /&gt;
'''l n space example2 space example l n'''&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
&lt;br /&gt;
This command creates a hard link named '''exampleln''' to the file '''example2.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''ls -i example2 exampleln'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight to the output&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
To display the i node number of both the files, type the command'''l s space hyphen i space example2 space exampleln'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
The output shows that both files have the same i node number.&lt;br /&gt;
&lt;br /&gt;
File '''exampleln''' is the hard link for file example2&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 18'''&lt;br /&gt;
&lt;br /&gt;
'''Soft Link'''&lt;br /&gt;
|| A soft link or a symbolic link is a special type of file.&lt;br /&gt;
&lt;br /&gt;
It holds a reference to another file or directory.&lt;br /&gt;
&lt;br /&gt;
This reference is an absolute or relative path.&lt;br /&gt;
|- &lt;br /&gt;
|| '''ln -s target-filename symbolic-filename'''&lt;br /&gt;
|| The syntax of''' l n command''' to create soft links is'''l n space hyphen s space target filename space symbolic filename.'''&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now we will look at some examples of soft links.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
type '''ln -s example2 examplesoft''' press Enter&lt;br /&gt;
|| To create a soft link, type the command&lt;br /&gt;
&lt;br /&gt;
'''l n space hyphen s space example2 space examplesoft '''and press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| type the command&lt;br /&gt;
&lt;br /&gt;
''' ls -li example2 examplesoft '''press Enter&lt;br /&gt;
|| Now, let us display the i node number and list both the files.&lt;br /&gt;
&lt;br /&gt;
Type the command,&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l i space example2 space examplesoft'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Observe that the '''i node''' number of both the files is different.&lt;br /&gt;
&lt;br /&gt;
'''examplesoft''' is a''' soft link''' of''' example2'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 19'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Manage file ownership and permissions using '''chown''' and '''chmod''' commands.&lt;br /&gt;
* Change file group ownership using '''chgrp''' command.&lt;br /&gt;
* Describe '''inodes '''and view '''inode''' numbers of the files.&lt;br /&gt;
* Create and verify '''hard links '''and '''symbolic links''' in Linux.&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 20'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
# Create a file named '''sample.txt'''.&lt;br /&gt;
# Display its permissions using the ls -l command.&lt;br /&gt;
# Change the permissions so that only the owner can read and write the file.&lt;br /&gt;
# Display the inode number of '''sample.txt'''.&lt;br /&gt;
|| As an Assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 21'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This '''Spoken Tutorial''' is brought to you by '''EduPyramids Educational Services Private Limited SINE IIT Bombay.'''Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Linux-File-Ownership-and-Permissions/English</id>
		<title>Linux-New/C2/Linux-File-Ownership-and-Permissions/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Linux-File-Ownership-and-Permissions/English"/>
				<updated>2026-01-27T11:29:15Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script:''' '''Linux File Ownership and Permissions'''&lt;br /&gt;
&lt;br /&gt;
'''Authors:''' '''Edupyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' Linux, File Ownership, File Permissions, chown, chmod, chgrp, Inodes, Hard link, Soft link, Symbolic link, Terminal commands, Linux file system, edupyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1''' &lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Linux File Ownership and Permissions.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Manage file ownership and permissions using '''c h own''' and '''c h mod''' commands.&lt;br /&gt;
* Change file group ownership using '''chgrp''' command.&lt;br /&gt;
* Describe '''i nodes '''and view '''i node''' numbers of the files.&lt;br /&gt;
* Create and verify '''hard links '''and '''symbolic links''' in Linux.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu O S version 24 point 04'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://EduPyramids.org/ https://EduPyramids.org]&amp;lt;span style=&amp;quot;color:#1155cc;&amp;quot;&amp;gt; &amp;lt;/u&amp;gt;&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
&lt;br /&gt;
learners should have '''Ubuntu version 24 point 04.'''&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial.&lt;br /&gt;
# '''file-attr.zip'''&lt;br /&gt;
# '''fa-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
These files are provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''File Attributes'''&lt;br /&gt;
&lt;br /&gt;
'''File-attributes.png'''&lt;br /&gt;
|| File attributes are properties linked to a file. Attributes define ownership and permissions.&lt;br /&gt;
&lt;br /&gt;
They include file type, size, and time details. They show who owns the file and who can access it.&lt;br /&gt;
&lt;br /&gt;
File attributes are viewed using the '''l s hyphen l '''command.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to terminal &lt;br /&gt;
&lt;br /&gt;
Type''' cd Desktop/file-attr'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the output &lt;br /&gt;
&lt;br /&gt;
'''/Desktop/file-attr$d'''&lt;br /&gt;
|| Let us move to the code files folder '''file hyphen attr'''&lt;br /&gt;
&lt;br /&gt;
provided along with the tutorial.&lt;br /&gt;
&lt;br /&gt;
I have downloaded it to my '''Desktop'''.&lt;br /&gt;
&lt;br /&gt;
Now switch to the terminal.&lt;br /&gt;
&lt;br /&gt;
Type '''c d space Desktop slash file hyphen a t t r '''and press Enter. Notice that the prompt path has changed.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''ls -l example1'''&lt;br /&gt;
&lt;br /&gt;
and press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight the output'''&lt;br /&gt;
&lt;br /&gt;
'''point to the first character'''&lt;br /&gt;
|| Let us type &lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example1'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter. '''&lt;br /&gt;
&lt;br /&gt;
Observe the output. &lt;br /&gt;
&lt;br /&gt;
The first character in the output shows the file type.&lt;br /&gt;
&lt;br /&gt;
If it is a '''hyphen''', it denotes a regular file.&lt;br /&gt;
&lt;br /&gt;
If it is '''l,''' it denotes a '''symbolic link'''.&lt;br /&gt;
&lt;br /&gt;
If it is '''d''', it denotes a '''directory.'''&lt;br /&gt;
&lt;br /&gt;
We see a hyphen here since example1 is a regular file.&lt;br /&gt;
|- &lt;br /&gt;
|| highlight the next 9 characters&lt;br /&gt;
|| The next nine characters show '''permissions'''.&lt;br /&gt;
&lt;br /&gt;
First three denote '''owner''' permissions,&lt;br /&gt;
&lt;br /&gt;
Next three denote '''group''' permissions,&lt;br /&gt;
&lt;br /&gt;
Last three denote '''others''' permissions&lt;br /&gt;
&lt;br /&gt;
Here each set contains '''r, '''and''' w,''' means '''read, '''and''' write'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''example1'''&lt;br /&gt;
&lt;br /&gt;
highlight '''spoken'''&lt;br /&gt;
|| Here we can see that the owner of the file '''example1''' is '''spoken'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''chown command'''&lt;br /&gt;
* The''' chown''' command changes the ownership of a file or directory. &lt;br /&gt;
* This is an admin command.&lt;br /&gt;
* Only the root user can change the owner of a file or directory.&lt;br /&gt;
&lt;br /&gt;
'''chown [options] ownername filename or directoryname'''&lt;br /&gt;
|| * The''' c h own''' command changes the ownership of a file or directory. &lt;br /&gt;
* This is an admin command.&lt;br /&gt;
* Only the root user can change the ownership of a file or directory.&lt;br /&gt;
* Here is the syntax of the '''c h own''' command. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''chown options'''&lt;br /&gt;
* -R: change permissions for all files in the current directory and its sub-directories. &lt;br /&gt;
* -c: report changes made to files.&lt;br /&gt;
* -f: prevent chown from displaying error messages.&lt;br /&gt;
|| The '''c h own''' command comes with various options like '''hyphen R, hyphen c, hyphen f''' and others.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now we will look at some examples.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type'''&lt;br /&gt;
&lt;br /&gt;
'''sudo chown demo example1'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''.&lt;br /&gt;
|| Let us change the owner of the '''file''' '''example1'''.&lt;br /&gt;
&lt;br /&gt;
Type '''sudo space ch own space demo space example1'''&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| Type the sudo password if prompted.&lt;br /&gt;
|| Type the password if prompted again.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
''' ls -l example1'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Let us see the file attributes of '''example'''1.&lt;br /&gt;
&lt;br /&gt;
Type '''l s space hyphen l space example1''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
Observe that the new owner of the '''file''' is '''demo'''.&lt;br /&gt;
&lt;br /&gt;
This works only if the user named '''demo''' exists.&lt;br /&gt;
&lt;br /&gt;
Otherwise we will get an '''invalid user''' error.&lt;br /&gt;
&lt;br /&gt;
Recall that we have given you an assignment in an earlier tutorial to create a user named''' demo'''.&lt;br /&gt;
&lt;br /&gt;
If the user does not exist, please create the user.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''mkdir pond'''&lt;br /&gt;
&lt;br /&gt;
and press Enter.&lt;br /&gt;
&lt;br /&gt;
Type the command&lt;br /&gt;
&lt;br /&gt;
'''ls -l'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the pond directory details&lt;br /&gt;
&lt;br /&gt;
highlight examples 1 to 5. &lt;br /&gt;
|| Now, we will see how to change the owner''' '''of a '''directory.'''&lt;br /&gt;
&lt;br /&gt;
For that we will create a directory first.&lt;br /&gt;
&lt;br /&gt;
Type '''m k dir space pond '''and press Enter.&lt;br /&gt;
&lt;br /&gt;
To check, type '''l s space hyphen l '''and press Enter.&lt;br /&gt;
&lt;br /&gt;
It displays a directory named''' pond''' and all the existing files examples. &lt;br /&gt;
&lt;br /&gt;
Here we can see the owner of the directory '''pond''' is '''spoken'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type &lt;br /&gt;
&lt;br /&gt;
'''sudo chown -R demo pond '''&lt;br /&gt;
|| Let us change the owner of the directory''' pond''' to '''demo.'''&lt;br /&gt;
&lt;br /&gt;
Type the following command and press '''Enter '''&lt;br /&gt;
&lt;br /&gt;
Enter the sudo password, if required and press Enter again.&lt;br /&gt;
|- &lt;br /&gt;
|| Press '''Ctrl+L''' keys together.&lt;br /&gt;
&lt;br /&gt;
Type '''ls -l '''and press '''Enter'''.&lt;br /&gt;
|| I will clear the screen by pressing '''Ctrl + L''' keys together for our convenience. &lt;br /&gt;
&lt;br /&gt;
Now type,'''l s space hyphen l '''and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Here we can see the new owner of the directory '''pond''' is '''demo'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Changing File Permissions'''&lt;br /&gt;
&lt;br /&gt;
ch mod command is used to change the permissions of a file or directory. &lt;br /&gt;
&lt;br /&gt;
The name chmod stands for change mode. &lt;br /&gt;
&lt;br /&gt;
Using chmod we can grant or remove permissions for owner, group and others.&lt;br /&gt;
&lt;br /&gt;
read (r) &lt;br /&gt;
&lt;br /&gt;
write (w) &lt;br /&gt;
&lt;br /&gt;
execute (x) &lt;br /&gt;
&lt;br /&gt;
The command modifies only the permissions, not the file contents or ownership.&lt;br /&gt;
|| '''ch mod''' command is used to change the permissions of a''' file '''or''' directory'''.&lt;br /&gt;
&lt;br /&gt;
The name''' c h mod '''stands for change mode.&lt;br /&gt;
&lt;br /&gt;
Using '''chmod '''we can add or remove permissions such as: '''read, write, execute'''.&lt;br /&gt;
&lt;br /&gt;
These permissions can be changed''' '''for '''owner, group '''and '''others.'''&lt;br /&gt;
&lt;br /&gt;
It does not modify the file contents or change ownership.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of chmod command'''&lt;br /&gt;
&lt;br /&gt;
chmod [ugoa][+-=][rwx] file-or-directory&lt;br /&gt;
|| This is the syntax of the '''c h mod''' command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Permissions using three-digit octal number'''&lt;br /&gt;
&lt;br /&gt;
chmod [0-7][0-7][0-7] file_or_directory&lt;br /&gt;
&lt;br /&gt;
Each digit represents:&lt;br /&gt;
&lt;br /&gt;
1st digit → owner permissions&lt;br /&gt;
&lt;br /&gt;
2nd digit → group permissions&lt;br /&gt;
&lt;br /&gt;
3rd digit → others permissions&lt;br /&gt;
&lt;br /&gt;
Permission values:&lt;br /&gt;
&lt;br /&gt;
r = 4 (read)&lt;br /&gt;
&lt;br /&gt;
w = 2 (write)&lt;br /&gt;
&lt;br /&gt;
x = 1 (execute)&lt;br /&gt;
|| Alternatively, we can set permissions using a three digit octal number.&lt;br /&gt;
|- &lt;br /&gt;
|| Press Clear and press Enter.&lt;br /&gt;
|| Now, we will look at some examples of '''ch mod'''. &lt;br /&gt;
&lt;br /&gt;
Let me clear the screen&lt;br /&gt;
|- &lt;br /&gt;
|| Type'''chmod u+x example2'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
|| To add execute permission to the '''owner''' of the file '''example2''' type:'''ch mod space u plus x space example2 '''and''' '''press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
This will add the execute permission to the owner of the file example2.&lt;br /&gt;
|- &lt;br /&gt;
|| type&lt;br /&gt;
&lt;br /&gt;
''' ls -l example2&lt;br /&gt;
&lt;br /&gt;
'''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
highlight the permissions in the output&lt;br /&gt;
|| To check that, type&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example2'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter''' to see the changes&lt;br /&gt;
&lt;br /&gt;
It has assigned''' read, write''', and''' execute '''permissions to the '''owner. &lt;br /&gt;
&lt;br /&gt;
'''read-only''' permissions to the '''group'''.&lt;br /&gt;
&lt;br /&gt;
And '''read-only''' permission to '''others''', for the file example2.&lt;br /&gt;
|- &lt;br /&gt;
|| Type &lt;br /&gt;
&lt;br /&gt;
'''chmod 751 example2&lt;br /&gt;
&lt;br /&gt;
'''press Enter&lt;br /&gt;
&lt;br /&gt;
type '''ls -l example2'''&lt;br /&gt;
&lt;br /&gt;
and press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type the command&lt;br /&gt;
&lt;br /&gt;
'''ch mod space 751 space example2&lt;br /&gt;
&lt;br /&gt;
'''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
This command gives the''' owner read, write''', and '''execute '''permissions.&lt;br /&gt;
&lt;br /&gt;
To check type, '''ls space hyphen l space example2''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
'''Read''' and '''execute''' permissions to the '''group'''.&lt;br /&gt;
&lt;br /&gt;
And '''execute-only '''permission to '''others '''for the file '''example2'''.&lt;br /&gt;
|- &lt;br /&gt;
|| type '''chmod a&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;r example2'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''&lt;br /&gt;
|| To assign '''read-only''' permission to '''example2''' for everyone, type the following command:&lt;br /&gt;
&lt;br /&gt;
'''ch mod space a equal to r space example2''' and press '''Enter.'''&lt;br /&gt;
|- &lt;br /&gt;
|| type '''ls -l example2'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type the command,&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example2 '''&lt;br /&gt;
&lt;br /&gt;
and press Enter.&lt;br /&gt;
&lt;br /&gt;
Observe that the file '''example2''' has '''read-only '''permission for all users. &lt;br /&gt;
|- &lt;br /&gt;
|| Type '''chmod g+w example3 '''&lt;br /&gt;
&lt;br /&gt;
and press Enter&lt;br /&gt;
|| Let’s add the write permissions to the group for file '''example3'''. &lt;br /&gt;
&lt;br /&gt;
Type the command'''ch mod space g plus w space example3 '''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type'''ls -l example3''' &lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type,'''l s space hyphen l space example3'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Note that the write permission has been added to the group.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''chmod a-w example3'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
|| To remove the write permissions for all,type the command'''ch mod space a hyphen w space example3'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''ls -l example3'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type, '''l s space hyphen l space example3'''&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
&lt;br /&gt;
Observe that write permission for all has been removed&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12 '''&lt;br /&gt;
&lt;br /&gt;
'''chgrp command'''&lt;br /&gt;
&lt;br /&gt;
'''Ch-grp.png'''&lt;br /&gt;
|| &lt;br /&gt;
* '''ch grp''' command changes the '''group ownership''' of a file or directory.&lt;br /&gt;
* Group members can then access it based on the set permissions'''.'''&lt;br /&gt;
* Only the owner of a file or a privileged user can change the group.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 13'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of chgrp command'''&lt;br /&gt;
* The basic syntax of the ch grp command is:'''chgrp [options] group file'''&lt;br /&gt;
* To change the group of a directory and all its contents recursively:'''chgrp -R group directory'''&lt;br /&gt;
* Here, '''group''' is the new group name, and '''file''' or '''directory''' is the target.&lt;br /&gt;
|| &lt;br /&gt;
* The basic syntax of the''' ch g r p''' command is:'''ch grp options group file.'''&lt;br /&gt;
* To change the group of a directory and all its contents recursively type:'''ch grp hyphen R group directory.'''&lt;br /&gt;
* Here, '''group''' is the new group name, and '''file''' or '''directory''' is the target.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to terminal&lt;br /&gt;
&lt;br /&gt;
Press Clear and press Enter.&lt;br /&gt;
&lt;br /&gt;
type &lt;br /&gt;
&lt;br /&gt;
'''ls -l example4'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the permissions in the output&lt;br /&gt;
|| Let's look at some examples of '''ch grp''' commands.&lt;br /&gt;
&lt;br /&gt;
Type the command,&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example4 '''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Here we can see the group permission is given for the user '''spoken'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''sudo chgrp demo example4'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
|| To change the group permission, type the command'''sudo space ch grp space demo space example4 '''press Enter. Enter the sudo password, if required.&lt;br /&gt;
|- &lt;br /&gt;
|| Type &lt;br /&gt;
&lt;br /&gt;
'''ls -l example4''' &lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the permissions in the output&lt;br /&gt;
|| Now type the command'''l s space hyphen l space example4'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Observe that the group has changed from '''spoken''' to '''demo'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 14'''&lt;br /&gt;
&lt;br /&gt;
'''Inode'''&lt;br /&gt;
|| An '''i node''' is a unique number that stores file or directory information.&lt;br /&gt;
&lt;br /&gt;
Files are hard links to i nodes, which the system uses to access data.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to the terminal&lt;br /&gt;
&lt;br /&gt;
type the command&lt;br /&gt;
&lt;br /&gt;
'''ls -i example5'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the number in the output&lt;br /&gt;
|| We can use''' l s space hyphen i''' command to see the '''i node '''number of a file.&lt;br /&gt;
&lt;br /&gt;
type the command,''' l s space hyphen i space example5'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
The number written before the file is the i node number of the file.&lt;br /&gt;
&lt;br /&gt;
The '''i node''' number may vary for the users.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 15'''&lt;br /&gt;
&lt;br /&gt;
'''Hard Links'''&lt;br /&gt;
|| A hard link is another name for an existing file.&lt;br /&gt;
&lt;br /&gt;
Both files point to the same '''i node.'''&lt;br /&gt;
&lt;br /&gt;
Since they share the same i node, they share the same data on disk.&lt;br /&gt;
&lt;br /&gt;
The file is not copied, only a new filename is created.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 16'''&lt;br /&gt;
&lt;br /&gt;
'''Inode and Hard Links'''&lt;br /&gt;
|| An i node can have multiple directory entries through hard links.&lt;br /&gt;
&lt;br /&gt;
Hard links let multiple filenames point to the same i node.&lt;br /&gt;
&lt;br /&gt;
To create links in Linux, we use the '''ln''' command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 17'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of ln'''&lt;br /&gt;
&lt;br /&gt;
'''ln source link'''&lt;br /&gt;
|| The syntax of '''ln''' command to create a hard link is:&lt;br /&gt;
&lt;br /&gt;
'''ln space source space link'''&lt;br /&gt;
&lt;br /&gt;
The source is an existing file, and the link is the new filename.&lt;br /&gt;
&lt;br /&gt;
Both files point to the same i node and share the same data.&lt;br /&gt;
&lt;br /&gt;
Any change made to one file will reflect in the other file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: clear &lt;br /&gt;
&lt;br /&gt;
and press enter&lt;br /&gt;
&lt;br /&gt;
'''ln example2 exampleln'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Point to the command.&lt;br /&gt;
|| Now we will look at some examples of hard links&lt;br /&gt;
&lt;br /&gt;
Let me clear the screen again. &lt;br /&gt;
&lt;br /&gt;
Type the command,&lt;br /&gt;
&lt;br /&gt;
'''l n space example2 space example l n'''&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
&lt;br /&gt;
This command creates a hard link named '''exampleln''' to the file '''example2.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''ls -i example2 exampleln'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight to the output&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
To display the i node number of both the files, type the command'''l s space hyphen i space example2 space exampleln'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
The output shows that both files have the same i node number.&lt;br /&gt;
&lt;br /&gt;
File '''exampleln''' is the hard link for file example2&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 18'''&lt;br /&gt;
&lt;br /&gt;
'''Soft Link'''&lt;br /&gt;
|| A soft link or a symbolic link is a special type of file.&lt;br /&gt;
&lt;br /&gt;
It holds a reference to another file or directory.&lt;br /&gt;
&lt;br /&gt;
This reference is an absolute or relative path.&lt;br /&gt;
|- &lt;br /&gt;
|| '''ln -s target-filename symbolic-filename'''&lt;br /&gt;
|| The syntax of''' l n command''' to create soft links is'''l n space hyphen s space target hyphen filename space symbolic hyphen filename.'''&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now we will look at some examples of soft links.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
type '''ln -s example2 examplesoft''' press Enter&lt;br /&gt;
|| To create a soft link, type the command&lt;br /&gt;
&lt;br /&gt;
'''l n space hyphen s space example2 space examplesoft '''and press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| type the command&lt;br /&gt;
&lt;br /&gt;
''' ls -li example2 examplesoft '''press Enter&lt;br /&gt;
|| Now, let us display the i node number and list both the files.&lt;br /&gt;
&lt;br /&gt;
Type the command,&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l i space example2 space examplesoft'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Observe that the '''i node''' number of both the files is different.&lt;br /&gt;
&lt;br /&gt;
'''examplesoft''' is a''' soft link''' of''' example2'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 19'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Manage file ownership and permissions using '''chown''' and '''chmod''' commands.&lt;br /&gt;
* Change file group ownership using '''chgrp''' command.&lt;br /&gt;
* Describe '''inodes '''and view '''inode''' numbers of the files.&lt;br /&gt;
* Create and verify '''hard links '''and '''symbolic links''' in Linux.&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 20'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
# Create a file named '''sample.txt'''.&lt;br /&gt;
# Display its permissions using the ls -l command.&lt;br /&gt;
# Change the permissions so that only the owner can read and write the file.&lt;br /&gt;
# Display the inode number of '''sample.txt'''.&lt;br /&gt;
|| As an Assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 21'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This '''Spoken Tutorial''' is brought to you by '''EduPyramids Educational Services Private Limited SINE IIT Bombay.'''Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Simple-Filters-in-Linux/English</id>
		<title>Linux-New/C2/Simple-Filters-in-Linux/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Simple-Filters-in-Linux/English"/>
				<updated>2026-01-26T14:30:23Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;﻿'''TITLE: Simple Filters in Linux'''  '''Author:''' EduPyramids  '''Keywords:''' head, tail, sort, cut, paste, Linux, command line, text manipulation, edupyramids, video tu...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;﻿'''TITLE: Simple Filters in Linux'''&lt;br /&gt;
&lt;br /&gt;
'''Author:''' EduPyramids&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' head, tail, sort, cut, paste, Linux, command line, text manipulation, edupyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| Slide 1&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Simple Filters in Linux'''.&lt;br /&gt;
|- &lt;br /&gt;
||'''Slide 2 Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to,&lt;br /&gt;
* Display specific lines with head and tail commands.&lt;br /&gt;
* Sort files in ascending and descending order&lt;br /&gt;
* Extract and manipulate columns using cut and paste commands&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
|| To record this tutorial, I am using&amp;amp;nbsp;* '''Ubuntu OS '''version 24 point 04&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
&lt;br /&gt;
Learners should have '''Ubuntu version 24 point 04'''&lt;br /&gt;
&lt;br /&gt;
For the prerequisite of '''Linux''' tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code files are required to practice this tutorial.&lt;br /&gt;
# '''marks.txt'''&lt;br /&gt;
# '''numbers.txt'''&lt;br /&gt;
# '''sf-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us begin with terminal prompt symbols and their meanings.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Terminal Prompt Symbols'''&lt;br /&gt;
&lt;br /&gt;
* $ prompt indicates a normal user.&lt;br /&gt;
* Commands can be run without administrative privileges at the $ prompt.&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;# prompt indicates that root privileges are required.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* Switching to root can be done using '''sudo su '''or '''su root.'''&lt;br /&gt;
&lt;br /&gt;
|| &lt;br /&gt;
* The dollar prompt indicates a normal user.&lt;br /&gt;
* Commands can be run without administrative privileges at the dollar prompt.&lt;br /&gt;
* The hash prompt indicates that root privileges are required.&lt;br /&gt;
* Switching to root can be done using '''sudo su '''or '''su root.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''head command'''&lt;br /&gt;
&lt;br /&gt;
|| The '''head''' command in Linux is used to display the beginning of a file.&lt;br /&gt;
&lt;br /&gt;
By default, it shows the first ten lines of a file on the terminal.&lt;br /&gt;
&lt;br /&gt;
It helps us to quickly preview file contents without opening the entire file.&lt;br /&gt;
&lt;br /&gt;
To use the head command,type '''head''' followed by the name of an '''ASCII''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let’s use '''numbers.txt''' file given in the code files folder to explain head command.&lt;br /&gt;
&lt;br /&gt;
Please download it for practising.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the '''numbers.txt '''file opened.&lt;br /&gt;
|| I have opened the '''numbers.txt '''file&lt;br /&gt;
|- &lt;br /&gt;
|| Press Ctrl + Alt+ T Keys.&lt;br /&gt;
|| Next, let us open the Terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' ls '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Point to '''numbers.txt '''file&lt;br /&gt;
|| Type''' ls''' at the prompt and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
We see that the file '''numbers.txt''' is listed in the home folder.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''cat''' '''num''' and press the '''Tab''' key. &lt;br /&gt;
&lt;br /&gt;
point to the output.&lt;br /&gt;
|| Type '''cat space''' '''num''' and press the '''Tab''' key. &lt;br /&gt;
&lt;br /&gt;
This will auto-complete the file name to '''numbers.txt'''.Press '''Enter''' to display the full contents of the file in the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us check with the head command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''head num '''&lt;br /&gt;
&lt;br /&gt;
press the '''Tab''' key and press Enter.&lt;br /&gt;
|| Type '''head space num''' and press the '''Tab''' key&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the output&lt;br /&gt;
|| The head command displays the first ten lines of the file.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
Type: '''head -n5 numbers.txt'''&lt;br /&gt;
&lt;br /&gt;
'''highlight -n5'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
Show the output&lt;br /&gt;
&lt;br /&gt;
Note: head -n5 or head -5 work the same way.&lt;br /&gt;
|| Let’s use the option '''hyphen n''' to display a specific number of lines.&lt;br /&gt;
&lt;br /&gt;
Type '''head''' '''space''' '''hyphen n 5 space numbers dot t x t'''&lt;br /&gt;
&lt;br /&gt;
Here '''n''' is a number. &lt;br /&gt;
&lt;br /&gt;
Let us use''' n''' as '''5''' and run the command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This displays just the first 5 lines of the file instead of all its contents.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now let us learn about the tail command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''tail command'''&lt;br /&gt;
&lt;br /&gt;
* The tail command in Linux is used to display the ending part of a file.&lt;br /&gt;
* By default, it shows the last 10 lines of a file on the terminal.&lt;br /&gt;
* It is commonly used to monitor log files or view the most recent updates.&lt;br /&gt;
&lt;br /&gt;
|| The '''tail''' command works exactly opposite to the '''head''' command. &lt;br /&gt;
&lt;br /&gt;
By default, it displays the last 10 lines of a file.&lt;br /&gt;
&lt;br /&gt;
It is commonly used to monitor log files or view the most recent updates.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''Type: tail numbers.txt'''&lt;br /&gt;
|| Let us try the tail command on numbers '''dot t x t file'''.&lt;br /&gt;
&lt;br /&gt;
Type '''tail space numbers dot t x t''' and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
The last 10 lines of the file are displayed on the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''tail -n5 numbers.txt'''&lt;br /&gt;
|| Now at the terminal''' '''type: '''tail space hyphen n five space numbers dot t x t '''&lt;br /&gt;
&lt;br /&gt;
'''hyphen n''' option with '''tail''' shows a specific number of lines from the end of a file.&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Only the last 5 lines of '''numbers.txt file''' are displayed on the screen.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Log Files'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
log-file.png&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| Now let’s learn about a log file.&lt;br /&gt;
&lt;br /&gt;
A log file records events that occur on a system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It includes system messages, application activities and security-related actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Log files help monitor system behaviour and fix problems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''auth.log''' file maintains logs of authentication events on the system.&lt;br /&gt;
&lt;br /&gt;
It records user logins, logouts and failed login attempts.&lt;br /&gt;
&lt;br /&gt;
This file helps track user access and detect unauthorized attempts. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Options in '''tail''' command'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| tail with '''hyphen f''' &lt;br /&gt;
&lt;br /&gt;
.''' '''option follows a file in real time.&lt;br /&gt;
&lt;br /&gt;
'''tail hyphen f''' &lt;br /&gt;
&lt;br /&gt;
.''' '''updates the output automatically as new lines are added to the file.&lt;br /&gt;
&lt;br /&gt;
It is useful for monitoring log files like '''auth dot log'''.&lt;br /&gt;
&lt;br /&gt;
It helps to track system and authentication events live.&lt;br /&gt;
&lt;br /&gt;
When new data arrives, it prints it immediately.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''tail -f /var/log/auth.log '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
|| Type this command and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The command does not exit, it waits for new lines to be added to the file.&lt;br /&gt;
&lt;br /&gt;
When new data arrives, it prints it immediately.&lt;br /&gt;
|- &lt;br /&gt;
|| click the + icon to open another terminal.&lt;br /&gt;
|| Now, let us open another Terminal window.&lt;br /&gt;
|- &lt;br /&gt;
|| Show 2 terminal windows, side by side.&lt;br /&gt;
|| This helps us see how the '''tail''' command follows the last line of a log file in real time.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' su spoken '''and press '''Enter.'''&lt;br /&gt;
|| Now, let us switch the user.&lt;br /&gt;
&lt;br /&gt;
Type '''su''' followed by your username at the prompt .&lt;br /&gt;
&lt;br /&gt;
I will type''' su space spoken''' and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the prompt.&lt;br /&gt;
&lt;br /&gt;
Enter a wrong password and press '''Enter'''.&lt;br /&gt;
|| You will be prompted for a password.&lt;br /&gt;
&lt;br /&gt;
Enter a wrong password and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The system denies login and shows an authentication failure message.&lt;br /&gt;
&lt;br /&gt;
This means the password is incorrect.&lt;br /&gt;
|- &lt;br /&gt;
|| show the log file entry on another window&lt;br /&gt;
&lt;br /&gt;
Point to the date and time.&lt;br /&gt;
|| You will now see that the terminal running the tail command is automatically updated with a new log entry. The log shows the '''date and time''' when the authentication failure occurred.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''date''' and press '''Enter'''.&lt;br /&gt;
|| Now, let us verify the system date and time. Type '''date '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The terminal displays the current '''system date and time'''.&lt;br /&gt;
&lt;br /&gt;
This corresponds to the timestamp shown in the authentication log.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''exit''' and press Enter, to close the terminal&lt;br /&gt;
|| Type '''exit''' to close the new terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| Press '''Ctrl '''and''' C''' keys &lt;br /&gt;
&lt;br /&gt;
close the new terminal.&lt;br /&gt;
|| Press '''Ctrl '''and''' C''' keys to stop the running tail command.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the '''auth.log''' command on the terminal.&lt;br /&gt;
|| In the previous example, we looked only at the '''auth.log '''file.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Log Files '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
log files1.png&lt;br /&gt;
&lt;br /&gt;
'''/var/log/messages : General system messages and information'''&lt;br /&gt;
&lt;br /&gt;
'''/var/log/auth.log : Authentication logs'''&lt;br /&gt;
&lt;br /&gt;
'''/var/log/kern.log : Kernel logs'''&lt;br /&gt;
&lt;br /&gt;
'''/var/log/cron.log : Cron daemon logs (scheduled jobs)'''&lt;br /&gt;
&lt;br /&gt;
'''/var/log/maillog : Mail server logs'''&lt;br /&gt;
&lt;br /&gt;
'''/var/log/httpd/ : Apache access and error logs directory'''&lt;br /&gt;
&lt;br /&gt;
'''/var/log/mysqld.log : MySQL database server log '''file&lt;br /&gt;
|| * Here are some commonly used log files in Linux.&lt;br /&gt;
* A Linux system administrator examines log files to gather information.&lt;br /&gt;
* This helps to troubleshoot the system when problems arise.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''sort''' command&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| Now we will learn about sort command.* The '''sort '''command arranges lines in a text file.&lt;br /&gt;
* It sorts data alphabetically or numerically in ascending and descending order.&lt;br /&gt;
* Input can be from a file or standard input.&lt;br /&gt;
* The sorted output is shown on the terminal.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' sort numbers.txt''' and press''' Enter.'''&lt;br /&gt;
|| Type: '''sort space numbers dot t x t and press Enter.'''&lt;br /&gt;
&lt;br /&gt;
This sorts the file in ascending order by default.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the output.&lt;br /&gt;
|| Notice something interesting here: &lt;br /&gt;
&lt;br /&gt;
The sort command, by default, sorts lines lexicographically, looking at the first character. &lt;br /&gt;
&lt;br /&gt;
So numbers like 10, 11, and 12 appear before 2.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''sort -n numbers.txt'''&lt;br /&gt;
&lt;br /&gt;
Show the output&lt;br /&gt;
|| To avoid this, add the '''hyphen n '''option and press Enter.&lt;br /&gt;
&lt;br /&gt;
Now, the '''sort''' command looks at the entire number while sorting.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''sort -rn numbers.txt'''&lt;br /&gt;
|| To sort numbers in reverse order, add the '''hyphen r n''' option to the '''sort''' command.&lt;br /&gt;
&lt;br /&gt;
We see the output in the reverse order.&lt;br /&gt;
|- &lt;br /&gt;
|| '''point to the numbers in the output.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''sort -run numbers.txt'''&lt;br /&gt;
&lt;br /&gt;
highlight '''u''' in the command.&lt;br /&gt;
|| This file contains repeated numbers.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To extract only the unique numbers, let us add the '''hyphen u''' option. &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Show the output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Show the earlier output for comparison.&lt;br /&gt;
&lt;br /&gt;
Scroll up to show the output.&lt;br /&gt;
&lt;br /&gt;
Point to the output&lt;br /&gt;
|| Now we only see the unique numbers displayed as the output.&lt;br /&gt;
&lt;br /&gt;
Earlier, two 2s and two 7s were displayed. &lt;br /&gt;
&lt;br /&gt;
Now, only one 2 and one 7 are displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now, let us see how to sort a file based on a specific column.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the marks.txt file.&lt;br /&gt;
||  file given the code files link.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us sort the '''marks.txt''' file based on the second column.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''sort marks.txt -t &amp;quot; &amp;quot; -k2'''&lt;br /&gt;
&lt;br /&gt;
|| Type this command and press Enter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, '''hyphen t''' specifies the delimiter and the space inside the quotes represents a space character.&lt;br /&gt;
&lt;br /&gt;
The '''hyphen k 2''' option indicates that the sort should be performed on the second column. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type'''&lt;br /&gt;
&lt;br /&gt;
'''cat marks.txt '''and''' '''press''' Enter''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| '''Type cat space marks dot t x t '''and''' '''press''' Enter.'''&lt;br /&gt;
|- &lt;br /&gt;
||  &lt;br /&gt;
&lt;br /&gt;
Point to Avir and Bala&lt;br /&gt;
|| This is the original file.Notice that '''Avir''' has moved up.'''Bala''' has moved down after sorting by the second column.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
'''cut''' command&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''cut''' command in Linux is used to extract specific sections from each line of a file.&lt;br /&gt;
&lt;br /&gt;
It can select data based on '''characters''', '''fields''', or '''byte positions'''.&lt;br /&gt;
&lt;br /&gt;
The cut command reads input from a file or standard input.&lt;br /&gt;
&lt;br /&gt;
The selected output is displayed on the terminal.&lt;br /&gt;
|| Now learn about the '''cut''' command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''cut''' command is used to extract specific information from each line of a file.&lt;br /&gt;
&lt;br /&gt;
It can select data based on '''characters''', '''fields''', or '''byte positions'''.&lt;br /&gt;
&lt;br /&gt;
The cut command reads input from a file or standard input.&lt;br /&gt;
&lt;br /&gt;
The selected output is displayed on the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us extract the names from '''marks.txt'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''cut marks.txt -d &amp;quot; &amp;quot; -f2'''&lt;br /&gt;
&lt;br /&gt;
cut space marks dot txt d double-quotes space double-quotes minus f2&lt;br /&gt;
|| Type the following command and press '''Enter'''.Here '''hyphen d''' specifies the delimiter.&lt;br /&gt;
&lt;br /&gt;
The space inside quotes represents the delimiter.'''hyphen f 2''' selects the second column.&lt;br /&gt;
&lt;br /&gt;
The output displays only the second column &lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 13''' &lt;br /&gt;
&lt;br /&gt;
'''paste''' command&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''paste''' command in Linux is used to merge lines from two or more files.&lt;br /&gt;
&lt;br /&gt;
It joins corresponding lines side by side, using a delimiter.&lt;br /&gt;
&lt;br /&gt;
By default, the delimiter is a tab character.&lt;br /&gt;
&lt;br /&gt;
The output is displayed on the terminal.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| * The '''paste''' command in Linux is used to merge lines from two or more files.&lt;br /&gt;
* It joins corresponding lines side by side, using a delimiter.&lt;br /&gt;
* By default, the delimiter is a tab character.&lt;br /&gt;
* The output is displayed on the terminal.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us use both the''' numbers.txt '''and '''marks.txt''' file now.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''paste numbers.txt marks.txt'''&lt;br /&gt;
&lt;br /&gt;
'''paste''' space numbers dot txt space marks dot txt &lt;br /&gt;
|| Type this command and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the output&lt;br /&gt;
|| Now the first line of '''marks.txt''' has been appended to '''numbers.txt''' file.The '''marks dot t x t '''file has been appended to '''numbers dot t x t''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the command prompt&lt;br /&gt;
&lt;br /&gt;
'''paste numbers.txt marks.txt &amp;gt; concatfile.txt'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
type '''cat concatfile.txt '''&lt;br /&gt;
|| We can use the redirect operator to send this output to a '''concatfile.txt'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press the '''Up Arrow''' key.Type the redirect operator( &amp;gt;) followed by '''concatfile.txt''' Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now the output is redirected to a file named '''concatfile.txt'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type, '''cat space concatfile.txt''' and Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see the paste command results are saved in this file.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at the command prompt'''&lt;br /&gt;
&lt;br /&gt;
'''paste -s numbers.txt '''and''' '''press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| To print numbers serially with tab delimiters, use the '''hyphen''' '''s''' option with '''paste'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type&lt;br /&gt;
&lt;br /&gt;
'''paste space hyphen s space numbers dot t x t '''and''' '''press''' Enter.''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| point to the output.&lt;br /&gt;
|| We can see the output on the terminal with a tab space in between the numbers.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide''' 14&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:* Display specific lines with head and tail commands&lt;br /&gt;
* Sort files in ascending and descending order&lt;br /&gt;
* Extract and manipulate columns using cut and paste commands&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 15'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As an assignment# Use '''head''' and '''tail '''commands to display specific lines of a file.&lt;br /&gt;
# Sort numbers.txt in reverse numeric order and extract unique values.&lt;br /&gt;
# Use cut and paste to manipulate columns in marks.txt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|  | As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 16 Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids educational services private limited SINE IIT Bombay.Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C3/Text-Editing-using-sed/English</id>
		<title>Linux-New/C3/Text-Editing-using-sed/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C3/Text-Editing-using-sed/English"/>
				<updated>2026-01-26T12:01:13Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot; '''Title of script''': ''' Text Editing using sed''' '''Author: EduPyramids''' '''Keywords: sed, substitute, insert, delete, global substitution, g flag, case-insensitive, co...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; '''Title of script''': ''' Text Editing using sed'''&lt;br /&gt;
'''Author: EduPyramids'''&lt;br /&gt;
'''Keywords: sed, substitute, insert, delete, global substitution, g flag, case-insensitive, context addressing, Video Tutorial.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
| | '''Visual Cue'''&lt;br /&gt;
| | '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Text Editing using sed'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2 Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:* Perform text substitution using '''sed '''command.&lt;br /&gt;
* Use the '''g''' flag for global substitution.&lt;br /&gt;
* Execute multiple '''sed''' commands using the '''hyphen e''' option.&lt;br /&gt;
* Apply substitution based on context.&lt;br /&gt;
* Insert and remove lines from a file.&lt;br /&gt;
* Redirect '''sed '''output to an output file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using* '''Ubuntu OS '''version 24 point 04&lt;br /&gt;
* '''Bash''' version 5 point 1 point 16;&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4 Pre-requisites'''&lt;br /&gt;
https://EduPyramids.org&lt;br /&gt;
|| Learners should have* '''Ubuntu version 24 point 04 '''and&lt;br /&gt;
* '''Bash version 5 '''point '''1 '''point '''16'''&lt;br /&gt;
* For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
'''Code files'''&lt;br /&gt;
The following code files are required to practice this tutorial.# '''seddemo.txt'''&lt;br /&gt;
# '''sed-commands.txt'''&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
| | Let us run some examples of sed commands using the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
'''cat seddemo.txtpress Enter'''&lt;br /&gt;
Highlight the word kumar in the lines.Point to the fourth and sixth lines&lt;br /&gt;
|| Let us first view the contents of the file '''sed demo dot t x t.'''&lt;br /&gt;
Notice the word '''Kumar'''.&lt;br /&gt;
It appears twice in the fourth line and once in the sixth line.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
'''sed 's/[kK]umar/Roy/' seddemo.txt'''&lt;br /&gt;
|| Let’s suppose we want to substitute '''Kumar''' with '''Roy.'''&lt;br /&gt;
Type the following command and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight one by one&lt;br /&gt;
'''sed'''&lt;br /&gt;
'''s'''&lt;br /&gt;
'''[kK]umar'''&lt;br /&gt;
'''Roy'''&lt;br /&gt;
'''forward slashes'''&lt;br /&gt;
'''seddemo.txt'''&lt;br /&gt;
|| Let us understand this command.&lt;br /&gt;
&lt;br /&gt;
'''sed''' is the stream editor.&lt;br /&gt;
The letter '''s''' stands for substitution.&lt;br /&gt;
This pattern matches bothuppercase '''Kumar''' and lowercase '''kumar'''.&lt;br /&gt;
The word '''Roy''' is the replacement text.&lt;br /&gt;
The forward slashes separate the pattern and the replacement.&lt;br /&gt;
The file '''sed demo dot txt''' is the input file.&lt;br /&gt;
|- &lt;br /&gt;
|| Press '''Enter'''.&lt;br /&gt;
Show the output on the terminal&lt;br /&gt;
|| &lt;br /&gt;
In the output, the word '''Kumar''' is replaced with '''Roy'''.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
Show the output on the terminal and the file '''seddemo.txt''' opened next to it&lt;br /&gt;
Highlight 4th line of both output and in the file&lt;br /&gt;
|| But only the first occurrence of the word '''Kumar''' is replaced in each line.&lt;br /&gt;
This happens because, by default, '''sed''' substitutes only the first match in a line.&lt;br /&gt;
Note the substitution happens only on the terminal output.&lt;br /&gt;
The original file '''sed demo dot t x t '''is not modified.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Global Substitution'''&lt;br /&gt;
* '''By default, sed replaces only the first match in each line.'''&lt;br /&gt;
* '''To replace all occurrences in a line, we use the g flag.'''&lt;br /&gt;
* '''The letter g stands for global substitution.'''&lt;br /&gt;
* '''When the g flag is used, sed searches the entire line for matches.'''&lt;br /&gt;
* '''Every matching pattern in that line is replaced.'''&lt;br /&gt;
* '''The g flag is written after the substitution command.'''&lt;br /&gt;
'''General syntax:'''&lt;br /&gt;
'''sed 's/pattern/replacement/g' filename'''&lt;br /&gt;
|| * By default, '''sed''' replaces only the first match in each line.&lt;br /&gt;
* To replace all occurrences in a line, we use the '''g''' flag.&lt;br /&gt;
* The letter '''g''' stands for global substitution.&lt;br /&gt;
* When the '''g''' flag is used, '''sed''' searches the entire line for matches.&lt;br /&gt;
* Every matching pattern in that line is replaced.&lt;br /&gt;
* The '''g''' flag is written after the substitution command.&lt;br /&gt;
This is the general syntax.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
'''sed 's/[kK]umar/Roy/g' seddemo.txt'''&lt;br /&gt;
'''Press Enter'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight the output'''&lt;br /&gt;
|| Type this command and press '''Enter.'''&lt;br /&gt;
Output shows, both occurrences in the fourth line are replaced.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
'''sed 's/kumar/Roy/Ig' seddemo.txt'''&lt;br /&gt;
=== and press Enter.Case-insensitive matching ===&lt;br /&gt;
|| Type the following command and press '''Enter.'''&lt;br /&gt;
Instead of specifying lowercase and uppercase letters using brackets, we can use the '''I option'''.&lt;br /&gt;
The '''I''' option makes the pattern match '''case insensitive'''.&lt;br /&gt;
Observe that the output is the same as the previous command.&lt;br /&gt;
Both methods can be used to produce the same result.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
'''Multiple Substitutions using -e'''&lt;br /&gt;
* sed allows performing more than one operation in a single command.&lt;br /&gt;
* The -e option is used to specify multiple sed expressions.&lt;br /&gt;
* Each -e represents one sed command.&lt;br /&gt;
* Commands are executed in the order they are written.&lt;br /&gt;
* This is useful when multiple substitutions are required on the same input.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| * '''sed '''allows performing more than one operation in a single command.&lt;br /&gt;
* The '''hyphen e '''option is used to specify multiple '''sed''' expressions.&lt;br /&gt;
* Each '''hyphen e '''represents one '''sed '''command.&lt;br /&gt;
* Commands are executed in the order they are written.&lt;br /&gt;
* This is useful when multiple substitutions are required on the same input.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us see how to replace '''electronics''' with '''electrical '''and '''civil''' with '''metallurgy.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
'''sed -e 's/electronics/electrical/g' -e 's/civil/metallurgy/g' seddemo.txt'''&lt;br /&gt;
|  | Type this command.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us understand this code.&lt;br /&gt;
* '''hyphen e''' allows using more than one '''sed''' command in a single line.&lt;br /&gt;
* '''s slash electronics slash electrical slash g '''replaces all occurrences of '''electronics''' with '''electrical.'''&lt;br /&gt;
* '''s slash civil slash metallurgy slash g '''replaces all occurrences of '''civil'''with '''metallurgy.'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the replaced words in the output&lt;br /&gt;
|| Now, press '''Enter'''.&lt;br /&gt;
Observe that words are replaced.&lt;br /&gt;
|- &lt;br /&gt;
|  | '''Context-Based Substitution'''&lt;br /&gt;
|| Let’s change the '''stream''' of '''Anirban '''from '''computers''' to '''mathematics'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
'''sed '/Anirban/s/computers/mathematics/g' seddemo.txt'''&lt;br /&gt;
|| Type this command and press '''Enter'''.&lt;br /&gt;
Observe that computers is changed to mathematics.&lt;br /&gt;
|- &lt;br /&gt;
|  | '''Deleting Lines using sed'''&lt;br /&gt;
|| Let us see how to remove all lines containing the word '''electronics'''.&lt;br /&gt;
In other words, select those lines which do not have an electronics stream.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''sed '/electronics/d' seddemo.txt &amp;gt; nonElectronics.txt'''&lt;br /&gt;
|  | Type this command.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
'''Highlight'''&lt;br /&gt;
'''/electronics/'''&lt;br /&gt;
'''d'''&lt;br /&gt;
'''seddemo.txt'''&lt;br /&gt;
'''&amp;gt;'''&lt;br /&gt;
'''nonElectronics.txt'''&lt;br /&gt;
|| Here, '''slash electronics slash''' is a context address that matches lines containing electronics.&lt;br /&gt;
'''d '''means deletes the matched lines&lt;br /&gt;
'''seddemo dot t x t '''is the input file.&lt;br /&gt;
greater than means redirects output to a file&lt;br /&gt;
'''non Electronics dot t x t''' is the output file.&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type cat nonElectronics.txt'''&lt;br /&gt;
'''press Enter'''&lt;br /&gt;
'''Show the output'''&lt;br /&gt;
|| Let us view the contents of the new file '''nonElectronics'''.&lt;br /&gt;
The file shows only those records that are not in the electronics stream.&lt;br /&gt;
You may wonder why substitutions are not reflected in the text file.&lt;br /&gt;
This is because all substitution results are displayed only on the terminal.&lt;br /&gt;
The original text file is not modified unless explicitly instructed.&lt;br /&gt;
|- &lt;br /&gt;
|  | '''Inserting Lines Using sed'''&lt;br /&gt;
|  | Suppose we want to insert a line at the beginning of the file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
'''sed '1i Student Information' seddemo.txt'''&lt;br /&gt;
|  | Type this command.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight one by one&lt;br /&gt;
'''1'''&lt;br /&gt;
'''i'''&lt;br /&gt;
'''Student Information'''&lt;br /&gt;
|| Here:&lt;br /&gt;
• 1 is the line number• i is the insert command&lt;br /&gt;
• '''Student Information '''is the text to be inserted&lt;br /&gt;
|- &lt;br /&gt;
|| Press Enter.&lt;br /&gt;
Highlight the line:&lt;br /&gt;
'''Student Information'''&lt;br /&gt;
|| Press '''Enter.'''&lt;br /&gt;
Output shows the line '''Student Information''' inserted at the beginning of the file.&lt;br /&gt;
|- &lt;br /&gt;
|  | '''Inserting Multiple Lines'''&lt;br /&gt;
|| Let us see how to insert more than one line in the file '''seddemo dot t x t'''.&lt;br /&gt;
'''Student Information''' in the first line and '''2026''' in the next line.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
'''sed '1i Student Information\n2026\nRecords' seddemo.txtpress Enter'''&lt;br /&gt;
|| Now let us type this command.&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Point to '''\n'''&lt;br /&gt;
|| Notice '''backslash n '''between the string '''Information''' and '''2026'''.&lt;br /&gt;
'''backslash n '''moves to a new line and prints '''2026 '''in the next line after '''Student Information'''.&lt;br /&gt;
Similarly after 2026, new string '''Records''' is printed in the third line.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
'''Summary'''&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Perform text substitution using '''sed '''command&lt;br /&gt;
* Use the '''g''' flag for global substitution&lt;br /&gt;
* Execute multiple '''sed''' commands using the '''-e''' option&lt;br /&gt;
* Apply substitution based on context&lt;br /&gt;
&lt;br /&gt;
* Insert and remove lines from a file&lt;br /&gt;
* Redirect '''sed '''output to an output file&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
As an assignment please do the following:* Using '''sed '''and the file '''seddemo.txt''', replace the word '''computers''' with '''computer-science'''.&lt;br /&gt;
* Replace '''electronics''' with '''ece''' in all occurrences.&lt;br /&gt;
* Perform both substitutions in a single command using the '''-e option'''.&lt;br /&gt;
* Delete all lines that belong to the '''civil''' department.&lt;br /&gt;
# &lt;br /&gt;
|  | As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10 &lt;br /&gt;
Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited SINE IIT Bombay.Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C3/Mastering-grep/English</id>
		<title>Linux-New/C3/Mastering-grep/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C3/Mastering-grep/English"/>
				<updated>2026-01-26T11:40:23Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;﻿'''TITLE: Mastering Grep'''  '''Author:''' EduPyramids'''  '''Keywords:''' grep, search, pattern matching, regular expressions, extended regex, case-insensitive search, cha...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;﻿'''TITLE: Mastering Grep'''&lt;br /&gt;
&lt;br /&gt;
'''Author:''' EduPyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' grep, search, pattern matching, regular expressions, extended regex, case-insensitive search, character classes, anchors, dot operator, asterisk operator, Linux, Ubuntu, Bash, text search, EduPyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
|| '''Visual Cue''' &lt;br /&gt;
|| '''Narration''' &lt;br /&gt;
|- &lt;br /&gt;
|| Slide 1&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Mastering grep'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
Learning Objectives'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will learn to:&lt;br /&gt;
* Match more than one pattern&lt;br /&gt;
* Check a word that has a different spelling&lt;br /&gt;
* Character classes&lt;br /&gt;
* Use of '''*''' operators&lt;br /&gt;
* Match any one character using dot&lt;br /&gt;
* Match a pattern at the beginning and ending of a line.&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Match more than one pattern.&lt;br /&gt;
* Check a word that has a different spelling.&lt;br /&gt;
* Character classes.&lt;br /&gt;
* Use of '''asterisk''' operators.&lt;br /&gt;
* Match any one character using a dot.&lt;br /&gt;
* Match a pattern at the beginning and ending of a line&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu OS '''version 24 point zero 4. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
&lt;br /&gt;
Learners should have '''Ubuntu '''version 24 point zero 4. &lt;br /&gt;
&lt;br /&gt;
And should be familiar with basic Linux terminal commands.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
'''grepdemo.txt'''&lt;br /&gt;
&lt;br /&gt;
'''grep-commands.txt'''&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started with grep commands.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Note: Please type the commands on the terminal don't paste as the double quotes are wrong.'''&lt;br /&gt;
&lt;br /&gt;
Type '''grep -e &amp;quot;electronics” -e &amp;quot;civil&amp;quot; grepdemo.txt '''Press '''Enter'''. &lt;br /&gt;
|| Let us get the details of students from the Civil or Electronics stream. &lt;br /&gt;
&lt;br /&gt;
We will use the same example file, '''grep demo dot t x t'''. &lt;br /&gt;
&lt;br /&gt;
We can match multiple patterns using the '''hyphen e''' option in '''grep'''.&lt;br /&gt;
&lt;br /&gt;
Type this command and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
Output displays both the civil and electronics students records.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''grep -ie “choudhury” -ie “chowdhari” grepdemo.txt '''Press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Type''' clear and press Enter.'''&lt;br /&gt;
|| Now we wish to search for people whose title is Choudhury.&lt;br /&gt;
&lt;br /&gt;
The issue is that the title may be spelled in different ways.&lt;br /&gt;
&lt;br /&gt;
How can we handle this?&lt;br /&gt;
&lt;br /&gt;
In such cases, we can perform a case-insensitive search using the '''hyphen i '''option.&lt;br /&gt;
&lt;br /&gt;
We can as well combine it with multiple '''hyphen e''' options.&lt;br /&gt;
&lt;br /&gt;
This helps to match different spellings of the same word. Type this command and press''' Enter.''' &lt;br /&gt;
&lt;br /&gt;
The output is displayed. However, there can be many other ways to write the name.&lt;br /&gt;
&lt;br /&gt;
We could use many -e options, but a better solution is Regular Expressions.&lt;br /&gt;
&lt;br /&gt;
Let me clear the screen.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| There are several special characters used in regular expressions.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''charcter-class.png'''&lt;br /&gt;
&lt;br /&gt;
'''Character class'''&lt;br /&gt;
&lt;br /&gt;
|| A character class is a part of a regular expression.&lt;br /&gt;
&lt;br /&gt;
It allows us to define a group of characters inside square brackets.&lt;br /&gt;
&lt;br /&gt;
When a pattern is matched, only one character from this group is selected.&lt;br /&gt;
&lt;br /&gt;
For example, square bracket '''a b c '''matches either '''a''', '''b''', or '''c'''.&lt;br /&gt;
&lt;br /&gt;
The pattern square bracket zero to nine matches any one digit from zero to nine.&lt;br /&gt;
&lt;br /&gt;
Square bracket a to z matches any one lowercase letter.&lt;br /&gt;
&lt;br /&gt;
Character classes are useful when more than one character is allowed.&lt;br /&gt;
&lt;br /&gt;
To specify a larger range, we use the format: first character hyphen last character.&lt;br /&gt;
&lt;br /&gt;
For example, [0-9] matches any digit.&lt;br /&gt;
&lt;br /&gt;
Only one character from the range is matched at a time.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us look at some examples.&lt;br /&gt;
|- &lt;br /&gt;
|| In terminal type '''grep -i “ch[ao][uw]dh[ua]r[yi]”''' &lt;br /&gt;
&lt;br /&gt;
'''grepdemo.txt''' &lt;br /&gt;
&lt;br /&gt;
Press '''Enter Add annotation for this'''&lt;br /&gt;
|| To understand character class type this command and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
Observe the output.&lt;br /&gt;
&lt;br /&gt;
This matches most variations of the name chowdhury spelt differently.&lt;br /&gt;
&lt;br /&gt;
However, it still does not match '''choudhuree''' with double '''e'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''The asterisk (*) operator'''&lt;br /&gt;
&lt;br /&gt;
The '''* operator''' is a regular expression operator.&lt;br /&gt;
&lt;br /&gt;
It matches zero or more repetitions of the preceding character or pattern.&lt;br /&gt;
&lt;br /&gt;
This allows us to match repeated characters, or even when the character is absent.&lt;br /&gt;
&lt;br /&gt;
For example, ab* matches a, ab, abb, abbb, and so on.&lt;br /&gt;
|| The asterisk operator is a regular expression operator.&lt;br /&gt;
&lt;br /&gt;
It matches zero or more repetitions of the preceding character or pattern.&lt;br /&gt;
&lt;br /&gt;
This allows matching repeated characters or cases where the character is absent.&lt;br /&gt;
&lt;br /&gt;
For example, the pattern ab asterisk (*) matches a, ab, abb, abbb, and so on.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Type:&lt;br /&gt;
&lt;br /&gt;
'''grep -i “m[ei]*ra*” grepdemo.txt''' press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
|| Let us match a student's name Mira in the file.&lt;br /&gt;
&lt;br /&gt;
Type this command and press '''Enter''' to see the output.&lt;br /&gt;
&lt;br /&gt;
We see records of Mira with 3 different spellings here.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''The Dot Operator'''&lt;br /&gt;
&lt;br /&gt;
In regular expressions, the '''dot (.) operator''' is a special character.&lt;br /&gt;
&lt;br /&gt;
It matches '''any single character''', except the newline character.&lt;br /&gt;
&lt;br /&gt;
For example:* a.c matches abc, a1c, or a_c&lt;br /&gt;
* It does not match '''ac''' because one character is required between''' a''' and '''c'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''dot operator''' is used when the character is unknown but its position is fixed.&lt;br /&gt;
|| The '''dot''' is a special character in regular expressions.&lt;br /&gt;
&lt;br /&gt;
It matches any single character, except the newline character.&lt;br /&gt;
&lt;br /&gt;
For example, the pattern '''a dot c '''can match '''a b c''', '''a 1 c''', or '''a underscore c'''.&lt;br /&gt;
&lt;br /&gt;
However, it will not match '''a c''', because one character must appear between '''a''' and '''c'''.&lt;br /&gt;
&lt;br /&gt;
The '''dot operator''' is used when the character is unknown but its position is fixed.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''grep &amp;quot;M… &amp;quot; grepdemo.txt''' &lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
|| For example, type this command and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
It searches for four letter words that start with '''M'''. &lt;br /&gt;
&lt;br /&gt;
Each dot matches one character.&lt;br /&gt;
&lt;br /&gt;
The space after the dots ensures only four-letter matches.&lt;br /&gt;
&lt;br /&gt;
This avoids matching words longer than four letters.&lt;br /&gt;
&lt;br /&gt;
The output shows records for students '''Mani''' and '''Mira'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Anchors (^ and $)'''&lt;br /&gt;
&lt;br /&gt;
An '''anchor''' is a special symbol in regular expressions.&lt;br /&gt;
&lt;br /&gt;
It specifies where a pattern should match in a line.&lt;br /&gt;
&lt;br /&gt;
It does not match any character, it matches only a position.&lt;br /&gt;
&lt;br /&gt;
The two most common anchors are''' ^ '''and '''$'''.&lt;br /&gt;
&lt;br /&gt;
To match a pattern at the beginning of a line, we use the caret ^ symbol.&lt;br /&gt;
&lt;br /&gt;
To match a pattern at the end of a line, we use the dollar sign '''$'''.&lt;br /&gt;
|| An anchor is a special symbol used in regular expressions. &lt;br /&gt;
&lt;br /&gt;
It specifies where a pattern should match in a line.&lt;br /&gt;
&lt;br /&gt;
Anchors do not match any character, they match only a position.&lt;br /&gt;
&lt;br /&gt;
The two most common anchors are the '''caret''' and the '''dollar''' sign. We use '''caret''' to match a pattern at the beginning of a line. &lt;br /&gt;
&lt;br /&gt;
We use dollar to match a pattern at the end of a line.&lt;br /&gt;
|- &lt;br /&gt;
|| At the prompt type '''grep &amp;quot;^A&amp;quot; grepdemo.txt'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Point to the output.&lt;br /&gt;
|| Let us use anchors.&lt;br /&gt;
&lt;br /&gt;
Now, we will extract entries with roll numbers starting with A.&lt;br /&gt;
&lt;br /&gt;
The roll number is the first field in the file.&lt;br /&gt;
&lt;br /&gt;
Type this command and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
Only lines with roll numbers starting with A are shown.&lt;br /&gt;
&lt;br /&gt;
The '''caret''' acts as an anchor for the beginning of the line.&lt;br /&gt;
&lt;br /&gt;
Grep matches lines where the first character is '''A'''.&lt;br /&gt;
&lt;br /&gt;
All other lines, starting with different characters, are ignored.&lt;br /&gt;
|- &lt;br /&gt;
|| Add annotation.Press '''Ctrl''' and '''L''' keys together to clear the screen.&lt;br /&gt;
|| Let me clear the screen&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''grep &amp;quot;1$&amp;quot; grepdemo.txt'''Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Type: '''grep &amp;quot;[78]...$&amp;quot; grepdemo.txt'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
|| Let us match a pattern at the end of the file.&lt;br /&gt;
&lt;br /&gt;
To match a pattern at the end of a line, we use the dollar sign. &lt;br /&gt;
&lt;br /&gt;
Here is the output.&lt;br /&gt;
&lt;br /&gt;
To find stipends between 7000''' '''to 8999'''. '''Type this command and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
Only lines with stipend numbers ending in the specified digit are shown.&lt;br /&gt;
&lt;br /&gt;
That is, the numbers between 7000 and 8999.&lt;br /&gt;
&lt;br /&gt;
Here, it searches for 7 or 8 first.&lt;br /&gt;
&lt;br /&gt;
Then any 3 characters following it, from the end of the file '''grep demo dot t x t'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Match more than one pattern&lt;br /&gt;
* Check a word that has a different spelling&lt;br /&gt;
* Character classes&lt;br /&gt;
* Use of '''*''' operators&lt;br /&gt;
* Match any one character using dot&lt;br /&gt;
* Match a pattern at the beginning and ending of a line.&lt;br /&gt;
&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment# Search for students whose names contain the letters “ra” in sequence.&lt;br /&gt;
# Find entries where the stream is either “Mechanical” or “Electrical.”&lt;br /&gt;
# List all students whose roll numbers end with the digit 5.&lt;br /&gt;
# Count how many students have a stipend greater than 5000.&lt;br /&gt;
&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids educational services private limited SINE IIT Bombay. Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Linux-File-Ownership-and-Permissions/English</id>
		<title>Linux-New/C2/Linux-File-Ownership-and-Permissions/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Linux-File-Ownership-and-Permissions/English"/>
				<updated>2026-01-25T20:08:08Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script:''' '''Linux File Ownership and Permissions'''  '''Authors:''' '''Edupyramids'''  '''Keywords:''' Linux, File Ownership, File Permissions, chown, chmod,...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script:''' '''Linux File Ownership and Permissions'''&lt;br /&gt;
&lt;br /&gt;
'''Authors:''' '''Edupyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' Linux, File Ownership, File Permissions, chown, chmod, chgrp, Inodes, Hard link, Soft link, Symbolic link, Terminal commands, Linux file system, edupyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1''' &lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Linux File Ownership and Permissions.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Manage file ownership and permissions using '''c h own''' and '''c h mod''' commands.&lt;br /&gt;
* Change file group ownership using '''chgrp''' command.&lt;br /&gt;
* Describe '''i nodes '''and view '''i node''' numbers of the files.&lt;br /&gt;
* Create and verify '''hard links '''and '''symbolic links''' in Linux.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu O S version 24 point 04'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://EduPyramids.org/ https://EduPyramids.org]&amp;lt;span style=&amp;quot;color:#1155cc;&amp;quot;&amp;gt; &amp;lt;/u&amp;gt;&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
&lt;br /&gt;
learners should have '''Ubuntu version 24 point 04.'''&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial.&lt;br /&gt;
# '''file-attr.zip'''&lt;br /&gt;
# '''fa-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
These files are provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''File Attributes'''&lt;br /&gt;
&lt;br /&gt;
'''File-attributes.png'''&lt;br /&gt;
|| File attributes are properties linked to a file.Attributes define ownership and permissions.&lt;br /&gt;
&lt;br /&gt;
They include file type, size, and time details.They show who owns the file and who can access it.&lt;br /&gt;
&lt;br /&gt;
File attributes are viewed using the '''l s hyphen l '''command.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to terminal &lt;br /&gt;
&lt;br /&gt;
Type''' cd Desktop/file-attr'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the output &lt;br /&gt;
&lt;br /&gt;
'''/Desktop/file-attr$d'''&lt;br /&gt;
|| Let us move to the code files folder '''file hyphen attr'''&lt;br /&gt;
&lt;br /&gt;
provided along with the tutorial.&lt;br /&gt;
&lt;br /&gt;
I have downloaded it to my '''Desktop'''.&lt;br /&gt;
&lt;br /&gt;
Now switch to the terminal.&lt;br /&gt;
&lt;br /&gt;
Type '''c d space Desktop slash file hyphen a t t r '''and press Enter.Notice that the prompt path has changed.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''ls -l example1'''&lt;br /&gt;
&lt;br /&gt;
and press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight the output'''&lt;br /&gt;
&lt;br /&gt;
'''point to the first character'''&lt;br /&gt;
|| Let us type &lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example1'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter. '''&lt;br /&gt;
&lt;br /&gt;
Observe the output. &lt;br /&gt;
&lt;br /&gt;
The first character in the output shows the file type.&lt;br /&gt;
&lt;br /&gt;
If it is a '''hyphen''', it denotes a regular file.&lt;br /&gt;
&lt;br /&gt;
If it is '''l,''' it denotes a '''symbolic link'''.&lt;br /&gt;
&lt;br /&gt;
If it is '''d''', it denotes a '''directory.'''&lt;br /&gt;
&lt;br /&gt;
We see a hyphen here since example1 is a regular file.&lt;br /&gt;
|- &lt;br /&gt;
|| highlight the next 9 characters&lt;br /&gt;
|| The next nine characters show '''permissions'''.&lt;br /&gt;
&lt;br /&gt;
First three denote '''owner''' permissions,&lt;br /&gt;
&lt;br /&gt;
Next three denote '''group''' permissions,&lt;br /&gt;
&lt;br /&gt;
Last three denote '''others''' permissions&lt;br /&gt;
&lt;br /&gt;
Here each set contains '''r, '''and''' w,''' means '''read, '''and''' write'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''example1'''&lt;br /&gt;
&lt;br /&gt;
highlight '''spoken'''&lt;br /&gt;
|| Here we can see that the owner of the file '''example1''' is '''spoken'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''chown command'''&lt;br /&gt;
* The''' chown''' command changes the ownership of a file or directory. &lt;br /&gt;
* This is an admin command.&lt;br /&gt;
* Only the root user can change the owner of a file or directory.&lt;br /&gt;
&lt;br /&gt;
'''chown [options] ownername filename or directoryname'''&lt;br /&gt;
|| * The''' c h own''' command changes the ownership of a file or directory. &lt;br /&gt;
* This is an admin command.&lt;br /&gt;
* Only the root user can change the ownership of a file or directory.&lt;br /&gt;
* Here is the syntax of the '''c h own''' command. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''chown options'''&lt;br /&gt;
* -R: change permissions for all files in the current directory and its sub-directories. &lt;br /&gt;
* -c: report changes made to files.&lt;br /&gt;
* -f: prevent chown from displaying error messages.&lt;br /&gt;
|| The '''c h own''' command comes with various options like '''hyphen R, hyphen c, hyphen f''' and others.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now we will look at some examples.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type'''&lt;br /&gt;
&lt;br /&gt;
'''sudo chown demo example1'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''.&lt;br /&gt;
|| Let us change the owner of the '''file''' '''example1'''.&lt;br /&gt;
&lt;br /&gt;
Type '''sudo space ch own space demo space example1'''&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| Type the sudo password if prompted.&lt;br /&gt;
|| Type the password if prompted again.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
''' ls -l example1'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Let us see the file attributes of '''example'''1.&lt;br /&gt;
&lt;br /&gt;
Type '''l s space hyphen l space example1''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
Observe that the new owner of the '''file''' is '''demo'''.&lt;br /&gt;
&lt;br /&gt;
This works only if the user named '''demo''' exists.&lt;br /&gt;
&lt;br /&gt;
Otherwise we will get an '''invalid user''' error.&lt;br /&gt;
&lt;br /&gt;
Recall that we have given you an assignment in an earlier tutorial to create a user named''' demo'''.&lt;br /&gt;
&lt;br /&gt;
If the user does not exist, please create the user.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''mkdir pond'''&lt;br /&gt;
&lt;br /&gt;
and press Enter.&lt;br /&gt;
&lt;br /&gt;
Type the command&lt;br /&gt;
&lt;br /&gt;
'''ls -l'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the pond directory details&lt;br /&gt;
&lt;br /&gt;
highlight examples 1 to 5. &lt;br /&gt;
|| Now, we will see how to change the owner''' '''of a '''directory.'''&lt;br /&gt;
&lt;br /&gt;
For that we will create a directory first.&lt;br /&gt;
&lt;br /&gt;
Type '''m k dir space pond '''and press Enter.&lt;br /&gt;
&lt;br /&gt;
To check, type '''l s space hyphen l '''and press Enter.&lt;br /&gt;
&lt;br /&gt;
It displays a directory named''' pond''' and all the existing files examples. &lt;br /&gt;
&lt;br /&gt;
Here we can see the owner of the directory '''pond''' is '''spoken'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type &lt;br /&gt;
&lt;br /&gt;
'''sudo chown -R demo pond '''&lt;br /&gt;
|| Let us change the owner of the directory''' pond''' to '''demo.'''&lt;br /&gt;
&lt;br /&gt;
Type the following command and press '''Enter '''&lt;br /&gt;
&lt;br /&gt;
Enter the sudo password, if required and press Enter again.&lt;br /&gt;
|- &lt;br /&gt;
|| Press '''Ctrl+L''' keys together.&lt;br /&gt;
&lt;br /&gt;
Type '''ls -l '''and press '''Enter'''.&lt;br /&gt;
|| I will clear the screen by pressing '''Ctrl + L''' keys together for our convenience. &lt;br /&gt;
&lt;br /&gt;
Now type,'''l s space hyphen l '''and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Here we can see the new owner of the directory '''pond''' is '''demo'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Changing File Permissions'''&lt;br /&gt;
&lt;br /&gt;
ch mod command is used to change the permissions of a file or directory. &lt;br /&gt;
&lt;br /&gt;
The name chmod stands for change mode. &lt;br /&gt;
&lt;br /&gt;
Using chmod we can grant or remove permissions for owner, group and others.&lt;br /&gt;
&lt;br /&gt;
read (r) &lt;br /&gt;
&lt;br /&gt;
write (w) &lt;br /&gt;
&lt;br /&gt;
execute (x) &lt;br /&gt;
&lt;br /&gt;
The command modifies only the permissions, not the file contents or ownership.&lt;br /&gt;
|| '''ch mod''' command is used to change the permissions of a''' file '''or''' directory'''.&lt;br /&gt;
&lt;br /&gt;
The name''' c h mod '''stands for change mode.&lt;br /&gt;
&lt;br /&gt;
Using '''chmod '''we can add or remove permissions such as: '''read, write, execute'''.&lt;br /&gt;
&lt;br /&gt;
These permissions can be changed''' '''for '''owner, group '''and '''others.'''&lt;br /&gt;
&lt;br /&gt;
It does not modify the file contents or change ownership.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of chmod command'''&lt;br /&gt;
&lt;br /&gt;
chmod [ugoa][+-=][rwx] file-or-directory&lt;br /&gt;
|| This is the syntax of the '''c h mod''' command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Permissions using three-digit octal number'''&lt;br /&gt;
&lt;br /&gt;
chmod [0-7][0-7][0-7] file_or_directory&lt;br /&gt;
&lt;br /&gt;
Each digit represents:&lt;br /&gt;
&lt;br /&gt;
1st digit → owner permissions&lt;br /&gt;
&lt;br /&gt;
2nd digit → group permissions&lt;br /&gt;
&lt;br /&gt;
3rd digit → others permissions&lt;br /&gt;
&lt;br /&gt;
Permission values:&lt;br /&gt;
&lt;br /&gt;
r = 4 (read)&lt;br /&gt;
&lt;br /&gt;
w = 2 (write)&lt;br /&gt;
&lt;br /&gt;
x = 1 (execute)&lt;br /&gt;
|| Alternatively, we can set permissions using a three digit octal number.&lt;br /&gt;
|- &lt;br /&gt;
|| Press Clear and press Enter.&lt;br /&gt;
|| Now, we will look at some examples of '''ch mod'''. &lt;br /&gt;
&lt;br /&gt;
Let me clear the screen&lt;br /&gt;
|- &lt;br /&gt;
|| Type'''chmod u+x example2'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
|| To add execute permission to the '''owner''' of the file '''example2''' type:'''ch mod space u plus x space example2 '''and''' '''press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
This will add the execute permission to the owner of the file example2.&lt;br /&gt;
|- &lt;br /&gt;
|| type&lt;br /&gt;
&lt;br /&gt;
''' ls -l example2&lt;br /&gt;
&lt;br /&gt;
'''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
highlight the permissions in the output&lt;br /&gt;
|| To check that, type&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example2'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter''' to see the changes&lt;br /&gt;
&lt;br /&gt;
It has assigned''' read, write''', and''' execute '''permissions to the '''owner.Read '''and''' write''' only permissions to the '''group'''.And '''read-only''' permission to '''others''', for the file example2.&lt;br /&gt;
|- &lt;br /&gt;
|| Type &lt;br /&gt;
&lt;br /&gt;
'''chmod 751 example2&lt;br /&gt;
&lt;br /&gt;
'''press Enter&lt;br /&gt;
&lt;br /&gt;
type '''ls -l example2'''&lt;br /&gt;
&lt;br /&gt;
and press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type the command&lt;br /&gt;
&lt;br /&gt;
'''ch mod space 751 space example2&lt;br /&gt;
&lt;br /&gt;
'''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
This command gives the''' owner read, write''', and '''execute '''permissions.&lt;br /&gt;
&lt;br /&gt;
To check type, '''ls space hyphen l space example2''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
'''Read''' and '''execute''' permissions to the '''group'''.&lt;br /&gt;
&lt;br /&gt;
And '''execute-only '''permission to '''others '''for the file '''example2'''.&lt;br /&gt;
|- &lt;br /&gt;
|| type '''chmod a&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;r example2'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''&lt;br /&gt;
|| To assign '''read-only''' permission to '''example2''' for everyone, type the following command:&lt;br /&gt;
&lt;br /&gt;
'''ch mod space a equal to r space example2''' and press '''Enter.'''&lt;br /&gt;
|- &lt;br /&gt;
|| type '''ls -l example2'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type the command,&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example2 '''&lt;br /&gt;
&lt;br /&gt;
and press Enter.&lt;br /&gt;
&lt;br /&gt;
Observe that the file '''example2''' has '''read-only '''permission for all users. &lt;br /&gt;
|- &lt;br /&gt;
|| Type '''chmod g+w example3 '''&lt;br /&gt;
&lt;br /&gt;
and press Enter&lt;br /&gt;
|| Let’s add the write permissions to the group for file '''example3'''. &lt;br /&gt;
&lt;br /&gt;
Type the command'''ch mod space g plus w space example3 '''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type'''ls -l example3''' &lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type,'''l s space hyphen l space example3'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Note that the write permission has been added to the group.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''chmod a-w example3'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
|| To remove the write permissions for all,type the command'''ch mod space a hyphen w space example3'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''ls -l example3'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type, '''l s space hyphen l space example3'''&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
&lt;br /&gt;
Observe that write permission for all has been removed&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12 '''&lt;br /&gt;
&lt;br /&gt;
'''chgrp command'''&lt;br /&gt;
&lt;br /&gt;
'''Ch-grp.png'''&lt;br /&gt;
|| &lt;br /&gt;
* '''ch grp''' command changes the '''group ownership''' of a file or directory.&lt;br /&gt;
* Group members can then access it based on the set permissions'''.'''&lt;br /&gt;
* Only the owner of a file or a privileged user can change the group.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 13'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of chgrp command'''&lt;br /&gt;
* The basic syntax of the ch grp command is:'''chgrp [options] group file'''&lt;br /&gt;
* To change the group of a directory and all its contents recursively:'''chgrp -R group directory'''&lt;br /&gt;
* Here, '''group''' is the new group name, and '''file''' or '''directory''' is the target.&lt;br /&gt;
|| &lt;br /&gt;
* The basic syntax of the''' ch g r p''' command is:'''ch grp options group file.'''&lt;br /&gt;
* To change the group of a directory and all its contents recursively type:'''ch grp hyphen R group directory.'''&lt;br /&gt;
* Here, '''group''' is the new group name, and '''file''' or '''directory''' is the target.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to terminal&lt;br /&gt;
&lt;br /&gt;
Press Clear and press Enter.&lt;br /&gt;
&lt;br /&gt;
type &lt;br /&gt;
&lt;br /&gt;
'''ls -l example4'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the permissions in the output&lt;br /&gt;
|| Let's look at some examples of '''ch grp''' commands.&lt;br /&gt;
&lt;br /&gt;
Type the command,&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space example4 '''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Here we can see the group permission is given for the user '''spoken'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''sudo chgrp demo example4'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
|| To change the group permission, type the command'''sudo space ch grp space demo space example4 '''press Enter.Enter the sudo password, if required.&lt;br /&gt;
|- &lt;br /&gt;
|| Type &lt;br /&gt;
&lt;br /&gt;
'''ls -l example4''' &lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the permissions in the output&lt;br /&gt;
|| Now type the command'''l s space hyphen l space example4'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Observe that the group has changed from '''spoken''' to '''demo'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 14'''&lt;br /&gt;
&lt;br /&gt;
'''Inode'''&lt;br /&gt;
|| An '''i node''' is a unique number that stores file or directory information.&lt;br /&gt;
&lt;br /&gt;
Files are hard links to i nodes, which the system uses to access data.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to the terminal&lt;br /&gt;
&lt;br /&gt;
type the command&lt;br /&gt;
&lt;br /&gt;
'''ls -i example5'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the number in the output&lt;br /&gt;
|| We can use''' l s space hyphen i''' command to see the '''i node '''number of a file.&lt;br /&gt;
&lt;br /&gt;
type the command,''' l s space hyphen i space example5'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
The number written before the file is the i node number of the file.&lt;br /&gt;
&lt;br /&gt;
The '''i node''' number may vary for the users.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 15'''&lt;br /&gt;
&lt;br /&gt;
'''Hard Links'''&lt;br /&gt;
|| A hard link is another name for an existing file.&lt;br /&gt;
&lt;br /&gt;
Both files point to the same '''i node.'''&lt;br /&gt;
&lt;br /&gt;
Since they share the same i node, they share the same data on disk.&lt;br /&gt;
&lt;br /&gt;
The file is not copied, only a new filename is created.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 16'''&lt;br /&gt;
&lt;br /&gt;
'''Inode and Hard Links'''&lt;br /&gt;
|| An i node can have multiple directory entries through hard links.&lt;br /&gt;
&lt;br /&gt;
Hard links let multiple filenames point to the same i node.&lt;br /&gt;
&lt;br /&gt;
To create links in Linux, we use the '''ln''' command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 17'''&lt;br /&gt;
&lt;br /&gt;
'''Syntax of ln'''&lt;br /&gt;
&lt;br /&gt;
'''ln source link'''&lt;br /&gt;
|| The syntax of '''ln''' command to create a hard link is:&lt;br /&gt;
&lt;br /&gt;
'''ln space source space link'''&lt;br /&gt;
&lt;br /&gt;
The source is an existing file, and the link is the new filename.&lt;br /&gt;
&lt;br /&gt;
Both files point to the same i node and share the same data.&lt;br /&gt;
&lt;br /&gt;
Any change made to one file will reflect in the other file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: clear &lt;br /&gt;
&lt;br /&gt;
and press enter&lt;br /&gt;
&lt;br /&gt;
'''ln example2 exampleln'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Point to the command.&lt;br /&gt;
|| Now we will look at some examples of hard links&lt;br /&gt;
&lt;br /&gt;
Let me clear the screen again. &lt;br /&gt;
&lt;br /&gt;
Type the command,&lt;br /&gt;
&lt;br /&gt;
'''l n space example2 space example l n'''&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
&lt;br /&gt;
This command creates a hard link named '''exampleln''' to the file '''example2.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''ls -i example2 exampleln'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight to the output&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
To display the i node number of both the files, type the command'''l s space hyphen i space example2 space exampleln'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
The output shows that both files have the same i node number.&lt;br /&gt;
&lt;br /&gt;
File '''exampleln''' is the hard link for file example2&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 18'''&lt;br /&gt;
&lt;br /&gt;
'''Soft Link'''&lt;br /&gt;
|| A soft link or a symbolic link is a special type of file.&lt;br /&gt;
&lt;br /&gt;
It holds a reference to another file or directory.&lt;br /&gt;
&lt;br /&gt;
This reference is an absolute or relative path.&lt;br /&gt;
|- &lt;br /&gt;
|| '''ln -s target-filename symbolic-filename'''&lt;br /&gt;
|| The syntax of''' l n command''' to create soft links is'''l n space hyphen s space target hyphen filename space symbolic hyphen filename.'''&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now we will look at some examples of soft links.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
type '''ln -s example2 examplesoft''' press Enter&lt;br /&gt;
|| To create a soft link, type the command&lt;br /&gt;
&lt;br /&gt;
'''l n space hyphen s space example2 space examplesoft '''and press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| type the command&lt;br /&gt;
&lt;br /&gt;
''' ls -li example2 examplesoft '''press Enter&lt;br /&gt;
|| Now, let us display the i node number and list both the files.&lt;br /&gt;
&lt;br /&gt;
Type the command,&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l i space example2 space examplesoft'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Observe that the '''i node''' number of both the files is different.&lt;br /&gt;
&lt;br /&gt;
'''examplesoft''' is a''' soft link''' of''' example2'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 19'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Manage file ownership and permissions using '''chown''' and '''chmod''' commands.&lt;br /&gt;
* Change file group ownership using '''chgrp''' command.&lt;br /&gt;
* Describe '''inodes '''and view '''inode''' numbers of the files.&lt;br /&gt;
* Create and verify '''hard links '''and '''symbolic links''' in Linux.&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 20'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
# Create a file named '''sample.txt'''.&lt;br /&gt;
# Display its permissions using the ls -l command.&lt;br /&gt;
# Change the permissions so that only the owner can read and write the file.&lt;br /&gt;
# Display the inode number of '''sample.txt'''.&lt;br /&gt;
|| As an Assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 21'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This '''Spoken Tutorial''' is brought to you by '''EduPyramids Educational Services Private Limited SINE IIT Bombay.'''Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C3/Introduction-to-grep-command/English</id>
		<title>Linux-New/C3/Introduction-to-grep-command/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C3/Introduction-to-grep-command/English"/>
				<updated>2026-01-25T09:13:40Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: Introduction to grep command.  '''Author:''' EduPyramids.'''  '''Keywords:''' '''grep, pattern matching, case-insensitive, inverse match, multiword sea...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Introduction to grep command.&lt;br /&gt;
&lt;br /&gt;
'''Author:''' EduPyramids.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' '''grep, pattern matching, case-insensitive, inverse match, multiword search, line numbers, count matches, edupyramids, video tutorial.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Introduction to grep command'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2 Learning Objectives&amp;amp;nbsp;&amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| In this tutorial, we will learn to:* View the content of a file &lt;br /&gt;
* List entries of a particular stream &lt;br /&gt;
* Ignore cases while searching&lt;br /&gt;
* Handle lines that do not match a pattern &lt;br /&gt;
* Display line numbers with the entries &lt;br /&gt;
* Store the result in another file &lt;br /&gt;
* Count the number of matches&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System&amp;amp;nbsp; Requirements'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| To record this tutorial, I am using&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu OS '''version 24 point zero 4&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
'''https://EduPyramids.org'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
&lt;br /&gt;
Learners should have '''Ubuntu version 24 point zero 4'''.&lt;br /&gt;
&lt;br /&gt;
And should be familiar with basic Linux terminal commands.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite of Linux tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
The following code files are required to practice this tutorial.# '''grepdemo.txt'''&lt;br /&gt;
# '''igc-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
| | &lt;br /&gt;
|| First let us learn about regular expressions.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Regular Expressions'''&lt;br /&gt;
|| * Regular expressions are patterns used to match text.&lt;br /&gt;
* They help to search and filter information in files.&lt;br /&gt;
* They can match words, numbers, or character sequences.&lt;br /&gt;
* In Linux, commands like '''grep''' use regular expressions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''grep command '''&lt;br /&gt;
|| * '''grep''' is a '''Linux''' command used to search text.&lt;br /&gt;
* It finds lines that match a given pattern.&lt;br /&gt;
* It works on files or standard input.&lt;br /&gt;
* It supports regular expressions for searching.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Download code file.Cut and paste to Home directory.open '''grepdemo.txt '''code file.&lt;br /&gt;
|| We will now demonstrate the '''grep''' command using the '''grepdemo.txt file'''.&lt;br /&gt;
&lt;br /&gt;
Download this file and move it to your home directory.&lt;br /&gt;
|- &lt;br /&gt;
|| show the entries and point to the separation bar (|) &lt;br /&gt;
|| This file contains 13 entries.Each entry has a roll number, name, stream, marks, result, and stipend. &lt;br /&gt;
&lt;br /&gt;
The fields are separated by a vertical bar, which acts as a '''delimiter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Note: Please type the commands on the terminal don't paste as the double quotes are wrong.'''&lt;br /&gt;
|| Let us see how grep works.&lt;br /&gt;
&lt;br /&gt;
Let’s find students from the computer’s stream.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''grep &amp;quot;computers&amp;quot; grepdemo.txt '''press enterShow side by side '''grepdemo.txt '''file entries.&lt;br /&gt;
|| At the terminal type, '''grep space double quote computers double quote space grepdemo dot t x t '''and press '''Enter'''. The output shows entries from the computer’s stream.&lt;br /&gt;
&lt;br /&gt;
Let us compare it with the original file.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight Zubin entry in the file&lt;br /&gt;
|| Notice that the entry for Zubin is missing. This happens because '''grep''' is case sensitive. &lt;br /&gt;
|- &lt;br /&gt;
|| Point to the capital C&lt;br /&gt;
|| Why is this entry missing?&lt;br /&gt;
&lt;br /&gt;
'''grep''' searched for computers in lowercase.&lt;br /&gt;
&lt;br /&gt;
Zubin’s stream is written as Computers with a capital '''C'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''grep -i &amp;quot;computers&amp;quot; grepdemo.txt '''Highlight '''-i'''press '''Enter'''&lt;br /&gt;
|| Pattern matching is case sensitive by default.To make it case insensitive, we need to use the '''hyphen i '''option with '''grep'''.&lt;br /&gt;
&lt;br /&gt;
Type this command and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the output.&lt;br /&gt;
|| Now, all four matching entries are displayed.&lt;br /&gt;
&lt;br /&gt;
Observe that,''' grep''' lists only the lines that match a given pattern.&lt;br /&gt;
&lt;br /&gt;
We can also do the reverse.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''grep -iv &amp;quot;pass&amp;quot; grepdemo.txt '''Highlight '''-v'''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Point to the output.&lt;br /&gt;
|| Type this command. The '''hyphen v '''option lists the lines that do not match a pattern. Press '''Enter '''to see the output.&lt;br /&gt;
&lt;br /&gt;
Output shows students who failed or have incomplete results.&lt;br /&gt;
|- &lt;br /&gt;
|| Show side by side home folder.Type '''grep -iv &amp;quot;pass&amp;quot; grepdemo.txt &amp;gt; notpass.txt''' press '''Enter'''.&lt;br /&gt;
|| Let us store the output in a file named '''not pass dot t x t'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type this command and press''' Enter'''.The file is created successfully.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''cat notpass.txt '''press '''Enter'''.&lt;br /&gt;
|| To view the students who have not passed, type '''cat space not pass dot t x t '''and press '''Enter'''.Observe the output.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''grep -i &amp;quot;fail&amp;quot; grepdemo.txt '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight''' '''output&lt;br /&gt;
|| Type this command to list the failed students and press '''Enter'''.The output shows all students who have failed.&lt;br /&gt;
|- &lt;br /&gt;
|| type&lt;br /&gt;
&lt;br /&gt;
'''grep -in &amp;quot;fail&amp;quot; grepdemo.txt '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
press enter&lt;br /&gt;
|| Let us use the '''hyphen n '''option to show line numbers with matching entries.&lt;br /&gt;
&lt;br /&gt;
Type this command and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Observe the output.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''clear '''press''' Enter'''.&lt;br /&gt;
|| Let us clear the terminal screen.&lt;br /&gt;
|- &lt;br /&gt;
|  | &lt;br /&gt;
|| So far, we used single-word patterns. For multi-word patterns, we have to put the entire pattern in quotes.&lt;br /&gt;
|- &lt;br /&gt;
|| type&lt;br /&gt;
&lt;br /&gt;
'''grep -i &amp;quot;ankit saraf&amp;quot; grepdemo.txt '''press enter&lt;br /&gt;
|| Type this command and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
We can see that '''Ankit Saraf''''s record is displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| At the prompt type&lt;br /&gt;
&lt;br /&gt;
'''grep -i &amp;quot;fail&amp;quot; grepdemo.txt notpass.txt'''&lt;br /&gt;
&lt;br /&gt;
press''' Enter'''.&lt;br /&gt;
|| We can also find patterns in multiple files.Type this command and press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
Observe the output.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the output.&lt;br /&gt;
|| While searching for multiple files, '''grep''' shows the filename for each match.&lt;br /&gt;
&lt;br /&gt;
In this example, '''grep demo dot t x t '''and '''not pass dot t x t '''are searched.&lt;br /&gt;
|- &lt;br /&gt;
|| Show only the inside files contents of '''notpass.txt '''and '''grepdemo.txt'''&lt;br /&gt;
|| These are the records from '''not pass dot t x t''' file and these are the records from '''grep demo dot t x t''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''grep -c “Fail” grepdemo.txt''' press '''Enter'''.&lt;br /&gt;
|| To display only the number of matches, use the '''hyphen c''' option.&lt;br /&gt;
&lt;br /&gt;
Type this command and press the '''Enter '''key. Output shows the number of matches.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* View the content of a file &lt;br /&gt;
* List entries of a particular stream &lt;br /&gt;
* Ignore cases while searching&lt;br /&gt;
* Handle lines that do not match a pattern &lt;br /&gt;
* Display line numbers with the entries &lt;br /&gt;
* Store the result in another file &lt;br /&gt;
* Count the number of matches&lt;br /&gt;
&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment# Use grep to find all students in the “Maths” stream in grepdemo.txt.&lt;br /&gt;
# List lines that do '''not''' contain civil and save to '''nonCivil.txt'''.&lt;br /&gt;
# Show line numbers of entries containing fail.&lt;br /&gt;
# Search for a multi-word pattern, for example Mani Chowdhari, in '''grepdemo.txt'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10 Thank you'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited, SINE, IIT Bombay. Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C3/Introduction-to-the-Stream-Editor-sed/English</id>
		<title>Linux-New/C3/Introduction-to-the-Stream-Editor-sed/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C3/Introduction-to-the-Stream-Editor-sed/English"/>
				<updated>2026-01-25T06:52:19Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of script''': '''Introduction to the Stream Editor sed.'''  '''Author: EduPyramids.'''  '''Keywords: stream editor, sed, display, substitute, insert, delete, context...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of script''': '''Introduction to the Stream Editor sed.'''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: stream editor, sed, display, substitute, insert, delete, context addressing, Line addressing, edupyramids, video tutorial.'''&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Introduction to the Stream Editor sed'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Use '''sed''' as a stream editor to process text.&lt;br /&gt;
* Print specific lines from a file.&lt;br /&gt;
* Apply line-based addressing techniques.&lt;br /&gt;
* Use context-based addressing with pattern matching.&lt;br /&gt;
* Redirect matched output to files.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using&lt;br /&gt;
* '''Ubuntu OS '''version 24 point 04 and&lt;br /&gt;
* '''Bash''' version 5 point 1 point 16.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://EduPyramids.org/ https://EduPyramids.org] &lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''Ubuntu '''version''' 24 point 04.'''&lt;br /&gt;
* '''Bash''' version 5 point 1 point 16 and&lt;br /&gt;
* Should know the basics of '''Linux''' terminal.&lt;br /&gt;
* For the prerequisite '''Linux''' tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
The following code files are required to practice this tutorial.&lt;br /&gt;
# '''seddemo.txt.'''&lt;br /&gt;
# '''sed-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| &lt;br /&gt;
* The following code files are required to practice this tutorial.&lt;br /&gt;
* These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Introduction to sed'''&lt;br /&gt;
|| &lt;br /&gt;
* '''sed''' is one of the most versatile tools available in Linux.&lt;br /&gt;
* It is a '''stream''' '''editor''' used to process text line by line.&lt;br /&gt;
* '''sed '''can function both as a display tool and an editing tool.&lt;br /&gt;
* It supports editing operations such as insertion, substitution and deletion.&lt;br /&gt;
* By default, '''sed '''sends its output to the standard output.&lt;br /&gt;
* The original file remains unchanged unless '''sed''' is explicitly instructed to modify it.&lt;br /&gt;
|- &lt;br /&gt;
|| Open the file '''seddemo.txt'''&lt;br /&gt;
&lt;br /&gt;
Highlight the lines, marks and student details.&lt;br /&gt;
|| Let us start with a few examples.&lt;br /&gt;
&lt;br /&gt;
We will see how to print lines using the '''sed''' command.&lt;br /&gt;
&lt;br /&gt;
I have a file called '''sed demo dot t x t''' in the home directory.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the code files folder. Please download it and move it to your Home directory.&lt;br /&gt;
&lt;br /&gt;
Let us view its contents.&lt;br /&gt;
&lt;br /&gt;
This file contains entries such as roll no, name, stream, marks, result and the stipend amount.&lt;br /&gt;
|- &lt;br /&gt;
|| Press '''Ctrl + Alt + T keys.'''&lt;br /&gt;
|| Let us open the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| Type:'''sed '2p' seddemo.txt''' &lt;br /&gt;
|| Let’s print the second line of the file.&lt;br /&gt;
&lt;br /&gt;
Type,&lt;br /&gt;
&lt;br /&gt;
'''sed space single quote 2 p single quote space sed demo dot t x t'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight 2'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight p'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
highlight the output.&lt;br /&gt;
&lt;br /&gt;
Hover your mouse on the second line of the output&lt;br /&gt;
|| Here, '''2''' specifies the location, which is the second line.The letter '''p''' specifies the action, which is printing.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Observe the output.&lt;br /&gt;
&lt;br /&gt;
It shows the entire file but the second line appears twice.&lt;br /&gt;
&lt;br /&gt;
This is the default behavior of '''sed'''.&lt;br /&gt;
&lt;br /&gt;
'''sed''' prints every line by default&lt;br /&gt;
&lt;br /&gt;
The '''p''' option prints the specified line again.&lt;br /&gt;
|- &lt;br /&gt;
|| At the prompt type:&lt;br /&gt;
&lt;br /&gt;
'''sed -n '2p' seddemo.txt '''Press''' Enter'''&lt;br /&gt;
|| To print only the second line, type this command and press''' Enter.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight -n'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight 2'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight p'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight sed demo.txt'''&lt;br /&gt;
|| Observe that only the second line is printed.&lt;br /&gt;
* The '''hyphen n '''option suppresses the default output of sed.&lt;br /&gt;
* '''2''' specifies the line number to display or edit.&lt;br /&gt;
* '''p''' specifies the action to perform.&lt;br /&gt;
* It tells '''sed''' to print the selected line.&lt;br /&gt;
* '''sed demo dot t x t''' specifies the input file name.&lt;br /&gt;
&lt;br /&gt;
This is the general syntax of the '''sed''' command. &lt;br /&gt;
|- &lt;br /&gt;
|| At the prompt type:'''sed -n '$p' seddemo.txt''' Press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight -n'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight $ sign'''&lt;br /&gt;
|| Now let us print the last line.Type this command and''' '''press '''Enter'''. We see that the last line is displayed.&lt;br /&gt;
&lt;br /&gt;
The '''hyphen n''' suppresses automatic printing of all lines.&lt;br /&gt;
&lt;br /&gt;
Dollar refers to the last line of the file.&lt;br /&gt;
|- &lt;br /&gt;
|| At the prompt&lt;br /&gt;
&lt;br /&gt;
'''sed -n '3,6p' seddemo.txt '''press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight the output'''&lt;br /&gt;
|| Let us just print the entries from the third line to the sixth line of the file.&lt;br /&gt;
&lt;br /&gt;
Type this command and''' '''press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The output displays the lines from the third line to the sixth line.&lt;br /&gt;
|- &lt;br /&gt;
|| Type'''sed -n '3,6!p' seddemo.txt'''&lt;br /&gt;
&lt;br /&gt;
Press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
'''Show the file on one side and the output comparison'''&lt;br /&gt;
|| If we want to print all lines except the third to the sixth lines.&lt;br /&gt;
&lt;br /&gt;
Type this command.Any action can be reversed by placing an exclamation mark before the command.&lt;br /&gt;
&lt;br /&gt;
This allows us to select the complementary set of lines.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The output displays all lines except lines 3 to 6.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| So far, we have specified the lines in a file on which an action applies.&lt;br /&gt;
&lt;br /&gt;
This method is known as '''line addressing.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Line addressing'''&lt;br /&gt;
|| Line addressing identifies lines using their position in the file.&lt;br /&gt;
&lt;br /&gt;
It is one way to select specific lines for an action.&lt;br /&gt;
&lt;br /&gt;
Another method is called '''context addressing'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Context''' '''addressing'''&lt;br /&gt;
|| &lt;br /&gt;
* '''Context''' '''addressing''' selects lines based on their content.&lt;br /&gt;
* Lines are matched using a word, string, or pattern.&lt;br /&gt;
* Only the lines that match the pattern are processed.&lt;br /&gt;
* It is useful when line numbers are unknown or variable.&lt;br /&gt;
* Regular expressions can be used for flexible and powerful matching.&lt;br /&gt;
* Commonly used for searching and filtering text in files.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us see an example.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the lines with word computers in the text editor- show the text file '''seddemo.txt'''.&lt;br /&gt;
&lt;br /&gt;
At the prompt'''sed -n '/[cC]omputers/p' seddemo.txt'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''-n'''&lt;br /&gt;
&lt;br /&gt;
highlight '''/[cC]omputers/'''&lt;br /&gt;
&lt;br /&gt;
'''highlight p'''&lt;br /&gt;
&lt;br /&gt;
Press Enter.&lt;br /&gt;
&lt;br /&gt;
highlight '''/[cC]omputers/'''&lt;br /&gt;
|| Suppose we want to print the lines containing the word '''computers'''.&lt;br /&gt;
&lt;br /&gt;
Go to the Terminal.&lt;br /&gt;
&lt;br /&gt;
Type the following command.&lt;br /&gt;
&lt;br /&gt;
'''hyphen n '''suppresses default output.&lt;br /&gt;
&lt;br /&gt;
This is the '''Context address'''. &lt;br /&gt;
&lt;br /&gt;
It matches lines containing the word computers with small c and capital C.&lt;br /&gt;
&lt;br /&gt;
'''p,''' prints the matched lines.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Observe the output.&lt;br /&gt;
&lt;br /&gt;
The lines containing the word '''computers''' are displayed.&lt;br /&gt;
&lt;br /&gt;
We enclose parts of the pattern within square brackets.&lt;br /&gt;
&lt;br /&gt;
This allows us to match any one character present inside the brackets.&lt;br /&gt;
&lt;br /&gt;
When using a pattern in '''sed''', it must be written '''between forward slashes.''' &lt;br /&gt;
|- &lt;br /&gt;
|| Type the command:&lt;br /&gt;
&lt;br /&gt;
'''sed -n '/[cC]omputers/w computer-student' seddemo.txt'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
'''Open file and show the computer-student '''&lt;br /&gt;
|| Let us now see how to write the matched output to a file using the '''w''' option.&lt;br /&gt;
&lt;br /&gt;
Type the following command.&lt;br /&gt;
&lt;br /&gt;
and Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Output is redirected to a file instead of getting displayed on the terminal.&lt;br /&gt;
&lt;br /&gt;
This is useful for extracting specific lines into a separate file.&lt;br /&gt;
&lt;br /&gt;
All matching lines are saved in the file '''computer hyphen student. '''&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''cat computer-student '''andPress '''Enter'''&lt;br /&gt;
|| Let us view the content of the '''computer hyphen student '''file. &lt;br /&gt;
&lt;br /&gt;
type '''cat''' '''space''' '''computer hyphen student''' and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
We see that lines that match the given pattern are in the file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type the following command.'''sed -n -e '/electronics/w electro' -e '/civil/w civil' seddemo.txt'''Press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight -e'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight /electronics/w electro'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight /civil/w civil'''&lt;br /&gt;
&lt;br /&gt;
Show the two files created&lt;br /&gt;
|| Let us see how we can use '''multiple sed expressions''' in a single command. This allows us to write different matched lines to separate files.&lt;br /&gt;
&lt;br /&gt;
Type this command and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
The '''hyphen e''' option allows combining multiple sed commands in a single line.&lt;br /&gt;
&lt;br /&gt;
'''slash electronics slash w''' '''electro '''writes lines matching electronics to '''electro '''file.&lt;br /&gt;
&lt;br /&gt;
'''slash civil slash w civil''' writes lines matching civil to '''civil '''file.&lt;br /&gt;
&lt;br /&gt;
After running the command, two text files, '''electro''' and '''civil''', are created with the matched lines.&lt;br /&gt;
|- &lt;br /&gt;
|| '''cat electro '''Press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the contents&lt;br /&gt;
&lt;br /&gt;
'''cat civil'''&lt;br /&gt;
&lt;br /&gt;
Press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the contents&lt;br /&gt;
|| To see what they contain, type '''cat space''' '''electro '''and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
This displays the entries with the word '''electronics'''.&lt;br /&gt;
&lt;br /&gt;
Let us see the contents of the file '''civil '''&lt;br /&gt;
&lt;br /&gt;
Type '''cat space''' '''civil '''and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
This displays the entries having the word '''civil'''.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| We will see more sed commands in the upcoming tutorial.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Use '''sed''' as a stream editor to process text&lt;br /&gt;
* Print specific lines from a file&lt;br /&gt;
* Apply line-based addressing techniques&lt;br /&gt;
* Use context-based addressing with pattern matching&lt;br /&gt;
* Redirect matched output to files&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment '''&lt;br /&gt;
&lt;br /&gt;
As an assignment,&lt;br /&gt;
&lt;br /&gt;
Using the text file '''seddemo.txt,'''&lt;br /&gt;
# Print only the first five lines of the file.&lt;br /&gt;
# Print all lines that do not contain the word &amp;quot;failed&amp;quot;.&lt;br /&gt;
# Write all lines containing the word student into a file named '''student-list.txt.'''&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
&lt;br /&gt;
|| This Spoken Tutorial is brought to you by '''EduPyramids''' Educational Services Private Limited SINE IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Basics-of-System-Administration-in-Linux/English</id>
		<title>Linux-New/C2/Basics-of-System-Administration-in-Linux/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Basics-of-System-Administration-in-Linux/English"/>
				<updated>2026-01-23T20:58:52Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: Basics of System Administration in Linux'''  '''Author: EduPyramids'''  '''Keywords: '''su, adduser, usermod, userdel, UID, GID, du, df, Linux, System...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Basics of System Administration in Linux'''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''su, adduser, usermod, userdel, UID, GID, du, df, Linux, System Admin, EduPyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Basics of System Administration in Linux.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Create, modify, switch, and delete Linux user accounts.&lt;br /&gt;
* View details of users, groups, and system IDs.&lt;br /&gt;
* Monitor disk usage, file and directory sizes, and file system space.&lt;br /&gt;
* Use basic Linux commands for system and storage management.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using,&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu '''version 24 point zero 4.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
&lt;br /&gt;
Learners should have '''Ubuntu '''version 24 point zero 4.&lt;br /&gt;
&lt;br /&gt;
Admin access or the root permission to execute the commands shown in the tutorial.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
'''sa-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us create a new user account.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''adduser  '''&lt;br /&gt;
|| The '''adduser''' command creates a new user with login credentials.&lt;br /&gt;
&lt;br /&gt;
We can add user accounts with the help of the '''sudo '''command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''sudo'''&lt;br /&gt;
|| The '''sudo '''command lets authorized users run commands as administrators.&lt;br /&gt;
&lt;br /&gt;
The '''sudo '''command has several options.&lt;br /&gt;
&lt;br /&gt;
We will learn these as we progress in this tutorial.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type: sudo adduser '''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
'''Type administrator password''' and press '''Enter'''. Highlight message '''adduser: Only one or two names allowed'''&lt;br /&gt;
|| Let us now learn how to create a new user.In the terminal type '''sudo space add user'''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Type the '''administrator password''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The password typed in the terminal is not visible, so type it carefully.&lt;br /&gt;
&lt;br /&gt;
After entering the password, a message saying'''Only one or two names allowed.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''sudo adduser edupyramids'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.Show side by side in files '''edupyramids.'''&lt;br /&gt;
|| So, let us create a new user account named '''edupyramids'''. Type: '''sudo space adduser space edupyramids '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
We have now created a new user called '''edupyramids'''.&lt;br /&gt;
&lt;br /&gt;
A separate home directory is created automatically during the user creation.&lt;br /&gt;
|- &lt;br /&gt;
|| Type password: '''edup12345'''Press '''Enter'''again type password: '''edup12345 '''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight additional details asking in the terminal.&lt;br /&gt;
|| Please note that you will be prompted to set a '''new password''' for the user '''edupyramids'''.&lt;br /&gt;
&lt;br /&gt;
Type a password of your choice.I am typing '''edu p 1 2 3 4''' '''5''' as the password and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
We will be asked to type the new password again.The password is requested twice for security and confirmation.&lt;br /&gt;
&lt;br /&gt;
The password for the new user is now set.&lt;br /&gt;
|- &lt;br /&gt;
|| Full Name: '''EduPyramids'''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Press '''y'''Press '''Enter'''&lt;br /&gt;
|| Next, we are prompted to enter additional details.Let us enter only the '''Full Name''' as '''EduPyramids'''.&lt;br /&gt;
&lt;br /&gt;
Let’s leave the remaining fields blank by pressing the '''Enter''' key.&lt;br /&gt;
&lt;br /&gt;
Finally, to confirm the information type '''y''' and press Enter. This confirms that all the entered details are correct.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' ls /home'''Press '''Enter'''Highlight '''edupyramids'''&lt;br /&gt;
|| Let us now check if the user account has been created.&lt;br /&gt;
&lt;br /&gt;
For that type: '''l s space slash home'''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Here, we can see our newly created user named '''edupyramids'''.The next command we will look at is '''su'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''su command'''&lt;br /&gt;
|| '''su''' stands for '''switch user'''.It is used to switch from the current user to another user account.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Switch to the terminal'''&lt;br /&gt;
&lt;br /&gt;
'''Type'''&lt;br /&gt;
&lt;br /&gt;
'''su - edupyramids'''&lt;br /&gt;
&lt;br /&gt;
'''press enter'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight edupyramids@spoken-Inspiron-One- :/$'''&lt;br /&gt;
&lt;br /&gt;
'''enter password: edup12345'''&lt;br /&gt;
&lt;br /&gt;
Type '''logout'''&lt;br /&gt;
&lt;br /&gt;
and press enter&lt;br /&gt;
|| Now type, '''su space hyphen space edupyramids''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
At the prompt enter the password for the user '''edupyramids'''. Please recall that the password we had set was '''edu p 1 2 3 4 5'''.&lt;br /&gt;
&lt;br /&gt;
Observe that the Terminal shows the new user prompt.&lt;br /&gt;
&lt;br /&gt;
To log out from this user, type '''logout''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The terminal now logs out from the current user, '''edupyramids'''.&lt;br /&gt;
&lt;br /&gt;
It returns to the previous user account, '''spoken'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''usermod command '''&lt;br /&gt;
|| Let us now learn about the '''user mod''' command.&lt;br /&gt;
&lt;br /&gt;
The '''user mod''' command lets a superuser modify existing user accounts.&lt;br /&gt;
&lt;br /&gt;
It can lock or disable accounts, manage passwords, and set account expiry dates.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type sudo usermod -e 2026-12-27 edupyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight -e'''&lt;br /&gt;
|| We will now set an expiry date for the user account '''edupyramids'''.&lt;br /&gt;
&lt;br /&gt;
Type: '''sudo space usermod space hyphen e space 2026 hyphen 12 hyphen 27 space edupyramids '''and press '''Enter'''.If prompted, type the admin password.&lt;br /&gt;
&lt;br /&gt;
The user account expiry date is now set using the '''hyphen e''' option.&lt;br /&gt;
&lt;br /&gt;
This means the user account '''edupyramids''' will be disabled after 27 December 2026.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type id'''&lt;br /&gt;
&lt;br /&gt;
and press Enter.&lt;br /&gt;
|| At the terminal, type '''id''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
The output shows, '''User I D, Group I D''',and the groups to which the current user belongs.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''UID '''&lt;br /&gt;
|| '''U I D '''stands for '''User I D. '''It is a unique number assigned by the system to each user account. &lt;br /&gt;
&lt;br /&gt;
It identifies the user for permissions and ownership.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''GID'''&lt;br /&gt;
|| '''G I D '''stands for '''Group I D.'''&lt;br /&gt;
&lt;br /&gt;
It is a unique number assigned to a group. &lt;br /&gt;
&lt;br /&gt;
It identifies a group of users for file and directory permissions.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' id -u '''press''' Enter'''&lt;br /&gt;
|| To display only the '''User I D''', type:'''id space hyphen u press Enter'''&lt;br /&gt;
&lt;br /&gt;
The output shows only the user ID of the current user.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''id -n -u''' press '''Enter'''&lt;br /&gt;
|| To see the '''username''' instead of the''' numeric ID''', type '''id space hyphen n space hyphen u''' &lt;br /&gt;
&lt;br /&gt;
and press Enter.&lt;br /&gt;
&lt;br /&gt;
The output shows the '''username''' corresponding to the user ID.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' id -g '''press''' EnterHighlight output'''Type''' id -G '''press''' EnterHighlight output'''&lt;br /&gt;
|| Let us now learn the commands related to '''Group ID'''s.&lt;br /&gt;
&lt;br /&gt;
At the terminal, type '''id space hyphen g''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
This displays the '''primary group ID''' of the current user.&lt;br /&gt;
&lt;br /&gt;
To see all group IDs of the current user, &lt;br /&gt;
&lt;br /&gt;
type: '''id hyphen capital G '''and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
You can now see a list of all '''group IDs''' associated with the current user.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now let us learn to delete a user using the '''userdel''' command.The '''userdel''' command permanently deletes a user account.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' sudo userdel -r edupyramids '''press''' Enter'''Type''' ls /home '''press''' Enter'''&lt;br /&gt;
|| Type '''sudo space userdel space hyphen r space edupyramids '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The '''hyphen r '''option removes the user along with its user’s home directory. &lt;br /&gt;
&lt;br /&gt;
Press '''Enter''' to see what happens. &lt;br /&gt;
&lt;br /&gt;
Now, the user '''edupyramids''' has been deleted. &lt;br /&gt;
&lt;br /&gt;
To verify this, type: &lt;br /&gt;
&lt;br /&gt;
'''ls space slash home '''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
We can see that the user account '''edupyramids''' has been deleted. &lt;br /&gt;
&lt;br /&gt;
The''' hyphen r''' option removes the home directory as well.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
'''df and du '''&lt;br /&gt;
|| Some useful system administration commands are '''d f''' and '''d u'''.&lt;br /&gt;
&lt;br /&gt;
The '''d f''' command displays the available and used disk space.&lt;br /&gt;
&lt;br /&gt;
The''' d u''' command shows how much disk space a file or directory occupies.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us clear the screen&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type df -h '''press''' Enter'''&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
On the terminal type:&lt;br /&gt;
&lt;br /&gt;
'''d f space hyphen h'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
We see:&lt;br /&gt;
* The size of each file system.&lt;br /&gt;
* The space used and available.&lt;br /&gt;
* The mount points.&lt;br /&gt;
&lt;br /&gt;
The '''hyphen h '''option shows the sizes in human-readable format, for easy understanding.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''touch test1 test2 test3''' and press '''Enter'''.&lt;br /&gt;
|| Let us now try some options with the '''d u''' command.&lt;br /&gt;
&lt;br /&gt;
Let me create test files named as test1 test2 test3 in my home directory. &lt;br /&gt;
|- &lt;br /&gt;
|| Type''' du -s * '''press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the summary in the output&lt;br /&gt;
&lt;br /&gt;
'''Type cd /home/spoken '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
type: '''du -s * '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Highlight the summary of the sizes shown in the output&lt;br /&gt;
&lt;br /&gt;
type '''du -ch *'''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Now type:&lt;br /&gt;
&lt;br /&gt;
'''d u space hyphen s space asterisk '''and press '''Enter'''.Option '''hyphen s''' gives a summary per file.&lt;br /&gt;
&lt;br /&gt;
This command gives a summary of the sizes of all files in the folder.&lt;br /&gt;
&lt;br /&gt;
Next, type '''du hyphen c h asterisk '''press''' Enter '''to''' '''observe the output.&lt;br /&gt;
&lt;br /&gt;
'''hyphen c''' provides a total size.&lt;br /&gt;
&lt;br /&gt;
'''h''' makes sizes human-readable.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 13'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we have learnt to:&lt;br /&gt;
* Create, modify, switch, and delete Linux user accounts.&lt;br /&gt;
* View details of users, groups, and system IDs.&lt;br /&gt;
* Monitor disk usage, file and directory sizes, and file system space.&lt;br /&gt;
* Use basic Linux commands for system and storage management.&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us Summarize.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 14'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment&lt;br /&gt;
# Create a new user''' demo '''and verify the home directory.&lt;br /&gt;
# Switch users using '''su''' and '''logout'''.&lt;br /&gt;
# Set an expiry date for this user using usermod -'''e'''.&lt;br /&gt;
# Check the '''UID''' and '''GID''' of users &lt;br /&gt;
# Use '''df -h''' and '''du -ch &amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt; '''to check disk usage for practice files.&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 15'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited, SINE, IIT Bombay.Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/The-Linux-Environment/English</id>
		<title>Linux-New/C2/The-Linux-Environment/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/The-Linux-Environment/English"/>
				<updated>2026-01-23T19:51:44Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: The Linux Environment.'''  '''Author:''' EduPyramids  '''Keywords:''' Environment variables, local variables, PATH,HOME, profile, history, alias, edupy...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: The Linux Environment.'''&lt;br /&gt;
&lt;br /&gt;
'''Author:''' EduPyramids&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' Environment variables, local variables, PATH,HOME, profile, history, alias, edupyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''The Linux Environment.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2''' &lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn about:&lt;br /&gt;
* Linux environment and shell variables&lt;br /&gt;
* View and modify environment variables&lt;br /&gt;
* Navigate to directories and use '''tilde '''shortcut&lt;br /&gt;
* Re-run the commands using history and aliases&lt;br /&gt;
* Customize prompts and make rm interactive&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using,&lt;br /&gt;
* '''Ubuntu OS version 24 point 04''' &lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
'''https://EduPyramids.org'''&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
&lt;br /&gt;
Learners should have '''Ubuntu version 24 point 04'''&lt;br /&gt;
&lt;br /&gt;
For the prerequisite of Linux tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
'''le-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6 '''&lt;br /&gt;
&lt;br /&gt;
'''Linux Environment'''&lt;br /&gt;
&lt;br /&gt;
'''env-image.png'''&lt;br /&gt;
|| * The Linux environment controls how the operating system behaves.&lt;br /&gt;
* It determines how commands are processed and actions are interpreted.&lt;br /&gt;
* The environment can be customized to suit user preferences.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Shell Variables'''&lt;br /&gt;
&lt;br /&gt;
'''image'''&lt;br /&gt;
|| The behaviour of the shell is controlled by '''shell variables'''&lt;br /&gt;
&lt;br /&gt;
Shell variables influence how commands execute and display results&lt;br /&gt;
&lt;br /&gt;
There are two main types of''' shell variables:'''&lt;br /&gt;
* Environment Variables&lt;br /&gt;
* Local Variables&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Environment Variables'''&lt;br /&gt;
|| * Environment variables are available throughout the user’s working environment.&lt;br /&gt;
* Inherited by '''subshells''' (for example, when running shell scripts).&lt;br /&gt;
* Commonly used to store paths, usernames, language settings, etc.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Local Variables'''&lt;br /&gt;
|| * Local variables have a limited scope&lt;br /&gt;
* They are available only in the current shell session&lt;br /&gt;
* They are not available to subshells created by the shell.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| This tutorial will mainly focus on environment variables.&lt;br /&gt;
&lt;br /&gt;
We will begin by exploring how to display the values of these variables.&lt;br /&gt;
|-&lt;br /&gt;
|| Press Ctrl, alt and T keys together. &lt;br /&gt;
&lt;br /&gt;
Type''' set | more'''&lt;br /&gt;
&lt;br /&gt;
press enter &lt;br /&gt;
|| Let us open the terminal.&lt;br /&gt;
&lt;br /&gt;
To see all the variables available in the current shell, we use the set command. &lt;br /&gt;
&lt;br /&gt;
Type: '''set space vertical bar space more'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''. &lt;br /&gt;
|-&lt;br /&gt;
|| Point to the output.&lt;br /&gt;
|| We can see all the current shell variables ,&lt;br /&gt;
|-&lt;br /&gt;
|| Press Enter and locate the HOME environment.&lt;br /&gt;
|| For example, Take a look at the '''HOME''' environment variable and notice the value assigned to it. &lt;br /&gt;
|-&lt;br /&gt;
|| Press E'''nter''' &lt;br /&gt;
&lt;br /&gt;
Press''' q '''&lt;br /&gt;
|| Press '''Enter''' to move through the list.&lt;br /&gt;
&lt;br /&gt;
Press '''q''' to come out.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight '''set | more'''&lt;br /&gt;
|| Here, the output of the '''set '''command is piped to '''more'''.This allows the list of variables to be displayed in a systematic, multi-page format.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| To see only the environment variables, we will run the '''e n v''' command. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Type '''&lt;br /&gt;
&lt;br /&gt;
'''env | more''' and''' '''press '''Enter''' &lt;br /&gt;
|| Type''' e n v space vertical bar space more '''and press''' Enter'''&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight '''SHELL=/bin/bash'''&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
Notice the '''SHELL''' variable whose value is '''slash bin slash bash. '''&lt;br /&gt;
|-&lt;br /&gt;
|| Press '''q''' to exit the list&lt;br /&gt;
|| Again, you may press '''q''' to come out of the list. &lt;br /&gt;
|-&lt;br /&gt;
|| Type '''clear''' and press '''Enter'''.&lt;br /&gt;
|| Let’s clear the screen.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now let us discuss some important '''environment''' '''variables''' in '''linux'''. &lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| We will use the '''bash''' '''shell''' for all our demonstrations. &lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Different shells are customized in slightly different ways. &lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
Add $ before name&lt;br /&gt;
|| To see a variable’s value, add a '''dollar''' sign before its name.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| The first environment variable that we will see is the '''SHELL''' variable. &lt;br /&gt;
&lt;br /&gt;
It stores the name of the current shell. &lt;br /&gt;
|-&lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''echo $SHELL '''&lt;br /&gt;
&lt;br /&gt;
Press Enter&lt;br /&gt;
|| Type '''echo space dollar SHELL''' in capital and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
The value of the '''SHELL''' variable is as shown .&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight '''/bin/bash'''&lt;br /&gt;
|| Here '''slash bin slash bash''' is the shell where we are currently operating. &lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| The next variable is '''HOME'''. &lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| When we log in to Linux, we are placed in a directory named after our username.&lt;br /&gt;
&lt;br /&gt;
This directory is called the '''home directory''', and its path is stored in the '''HOME''' variable.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the command prompt &lt;br /&gt;
&lt;br /&gt;
'''echo $HOME '''and''' '''press '''Enter''' &lt;br /&gt;
|| To see the value, type '''echo space dollar HOME''' in capital and press E'''nter''' &lt;br /&gt;
&lt;br /&gt;
We see the output as '''slash home slash spoken'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''The Path Variable''' &lt;br /&gt;
|| The next environment variable is the '''PATH'''. &lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| The '''PATH''' variable contains the absolute paths of the directories.&lt;br /&gt;
&lt;br /&gt;
The '''shell''' searches them to find executable commands.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''echo $PATH '''&lt;br /&gt;
&lt;br /&gt;
press '''Enter''' &lt;br /&gt;
&lt;br /&gt;
Highlight the directories.&lt;br /&gt;
&lt;br /&gt;
'''/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin ('''This path might differ so while recording please copy the path and paste it here in the script.)&lt;br /&gt;
|| Let us now see the value of the '''PATH''' variable.&lt;br /&gt;
&lt;br /&gt;
type '''echo space dollar PATH''' in capital letters and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The output shows the directories present on the system.&lt;br /&gt;
&lt;br /&gt;
This list may vary slightly from one system to another.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| It is a list of directories separated by a colon (:).The '''shell''' searches these directories in order to find an executable command.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| We can configure the shell to look for commands in our own directory.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type PATH=$PATH:/home/spoken''' Highlight '''spoken from above command'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
|| Type this command and press '''Enter'''.users can type their home directory's name.&lt;br /&gt;
&lt;br /&gt;
Now, any executable scripts you place in '''slash''' '''home slash spoken '''can be run '''without typing the full path'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type echo $PATH''' and press '''Enter'''.&lt;br /&gt;
|| Now, let’s '''echo''' the value of '''PATH''', to see its current contents.&lt;br /&gt;
&lt;br /&gt;
Type '''echo space dollar PATH''' in capital and press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight to the added directory&lt;br /&gt;
|| Our added directory will also be a part of the '''PATH''' variable. &lt;br /&gt;
|-&lt;br /&gt;
|| select and hover over the change in value of path variable &lt;br /&gt;
|| The directory is now available here.&lt;br /&gt;
&lt;br /&gt;
Note that this change is temporary and applies only to this terminal session.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type clear'''&lt;br /&gt;
|| let us clear the terminal.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Another interesting variable is the '''LOG NAME'''. &lt;br /&gt;
&lt;br /&gt;
It stores the username of the currently active user. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Type echo $LOGNAME'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''spoken'''&lt;br /&gt;
|| In order to see the value type '''echo space dollar LOG NAME'''&lt;br /&gt;
&lt;br /&gt;
and press E'''nter'''. Observe that, in the output''' spoken '''is displayed.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type PS1=&amp;quot;@&amp;quot; '''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Highlight the''' @''' sign.&lt;br /&gt;
|| Now, let us change the shell prompt.Type the following command and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
After pressing Enter, the terminal prompt will change to the at the rate symbol.&lt;br /&gt;
&lt;br /&gt;
This is the primary prompt string represented by the environment variable '''P S 1. '''&lt;br /&gt;
|-&lt;br /&gt;
|| Press Enter few times to highlight the change displaying @&lt;br /&gt;
|| Press '''Enter''' a few times to see the '''at the rate''' prompt.&lt;br /&gt;
|-&lt;br /&gt;
|| Type bash&lt;br /&gt;
&lt;br /&gt;
and press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the prompt&lt;br /&gt;
|| To get back to the original prompt type&lt;br /&gt;
&lt;br /&gt;
'''bash''' and press''' Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type echo $PS2 '''and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight greater than prompt'''&lt;br /&gt;
|| To see the secondary command prompt, type '''echo space dollar P S 2 '''in capital.&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
Greater than sign is the secondary prompt string represented by the environment variable '''P S 2.''' &lt;br /&gt;
&lt;br /&gt;
The greater than sign is seen only once and the original prompt appears.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now let’s try something more interesting.&lt;br /&gt;
&lt;br /&gt;
Let’s display our '''username''' as the''' shell prompt'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type at the command prompt''' &lt;br /&gt;
&lt;br /&gt;
'''PS1=$LOGNAME'''&lt;br /&gt;
&lt;br /&gt;
press '''Enter''' &lt;br /&gt;
&lt;br /&gt;
Highlight the new prompt&lt;br /&gt;
|| Type '''P S 1''' in capital '''equals dollar LOGNAME''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
We can see the username '''spoken''' is visible as my prompt.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''PS1=&amp;quot;$&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''&lt;br /&gt;
|| To just show a dollar prompt type,&lt;br /&gt;
&lt;br /&gt;
'''P S 1 equals to double quotes dollar double quotes '''and press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| We have assigned values of several environment variables.&lt;br /&gt;
|-&lt;br /&gt;
|| Click the + icon on the top left corner.&lt;br /&gt;
&lt;br /&gt;
These changes apply '''only to the current session'''.&lt;br /&gt;
|| Open a new tab. &lt;br /&gt;
&lt;br /&gt;
Observe that these changes apply only to the current session.&lt;br /&gt;
&lt;br /&gt;
That is why a new tab shows the original prompt.&lt;br /&gt;
&lt;br /&gt;
Let us close the new terminal tab.&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''bash'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the prompt&lt;br /&gt;
|| To get back to the original prompt type&lt;br /&gt;
&lt;br /&gt;
'''bash''' and press''' Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type: echo $PATH'''&lt;br /&gt;
&lt;br /&gt;
Press Enter.&lt;br /&gt;
|| For example, we just added our directory to the PATH variable.&lt;br /&gt;
|-&lt;br /&gt;
|| Press + to open new terminal tab.&lt;br /&gt;
&lt;br /&gt;
type '''echo $PATH '''&lt;br /&gt;
&lt;br /&gt;
and press Enter&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Open a new terminal tab and type '''echo DOLLAR PATH''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
The same path variable will not be seen.&lt;br /&gt;
&lt;br /&gt;
let us go back to the previous terminal.&lt;br /&gt;
|-&lt;br /&gt;
|| Press up direction key &lt;br /&gt;
|| Press the '''Up arrow key''' to see the last command we used.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Keep pressing it to move through earlier commands.&lt;br /&gt;
|-&lt;br /&gt;
|| Press down direction key &lt;br /&gt;
|| Press the '''Down arrow key''' to move forward again. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Type at the command prompt''' &lt;br /&gt;
&lt;br /&gt;
'''history'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
|| However, scrolling through many commands may be clumsy and tedious. &lt;br /&gt;
&lt;br /&gt;
A better way is to use the '''history '''command.&lt;br /&gt;
&lt;br /&gt;
Type '''history''' and press '''Enter''' to see a list of previously executed commands.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type at the command prompt''' &lt;br /&gt;
&lt;br /&gt;
'''history 10'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter''' &lt;br /&gt;
|| If you want to see only the last ten commands instead of the full list, &lt;br /&gt;
&lt;br /&gt;
Type '''history space 10''' and press '''Enter''' &lt;br /&gt;
|-&lt;br /&gt;
|| Point to the assigned numbers.&lt;br /&gt;
|| Notice, in this list, there is a number assigned to each of the previously executed commands. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Type at the command prompt''' &lt;br /&gt;
&lt;br /&gt;
'''!1348 '''press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Highlight the''' output numbers '''&lt;br /&gt;
|| To repeat a command, type an exclamation mark followed by its number.&lt;br /&gt;
&lt;br /&gt;
For example '''1348''' in my case would execute '''echo space dollar path.'''&lt;br /&gt;
&lt;br /&gt;
Please note the number may not be the same for you.&lt;br /&gt;
&lt;br /&gt;
Type the number that is seen on your terminal and press Enter to execute the command.&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''!! '''Press '''Enter'''.&lt;br /&gt;
|| To execute the last command, type''' exclamation mark twice''' and press '''Enter'''. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Type clear and press Enter.'''&lt;br /&gt;
|| let me clear the terminal&lt;br /&gt;
|-&lt;br /&gt;
|| '''Tilde character Substitution''' type '''cd ~''' press '''Enter.'''&lt;br /&gt;
|| Next, we will learn about '''tilde''' '''substitution'''.The tilde''' '''character is a shortcut for the home directory.&lt;br /&gt;
&lt;br /&gt;
type '''c d space''' '''tilde''' press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''mkdir testtree '''and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Type''' cd ~/testtree''', Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Type:''' pwd, '''Press '''Enter'''.&lt;br /&gt;
|| Let us create a directory named '''testtree''' in the home directory.&lt;br /&gt;
&lt;br /&gt;
Type: '''m k d i r space test tree '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Now type '''cd space tilde slash test tree''', press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Type '''p w d''' and Press '''Enter''' to the current directory.&lt;br /&gt;
|-&lt;br /&gt;
|| (Before the video create such a long directory hierarchy) &lt;br /&gt;
|| The '''alias''' command in Linux is used to create '''shortcuts''' for longer commands.&lt;br /&gt;
|-&lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''mkdir songs'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
'''cd''' '''songs'''&lt;br /&gt;
&lt;br /&gt;
and press Enter&lt;br /&gt;
&lt;br /&gt;
'''mkdir music'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
'''cd music'''&lt;br /&gt;
&lt;br /&gt;
and press Enter&lt;br /&gt;
&lt;br /&gt;
Type&lt;br /&gt;
&lt;br /&gt;
'''pwd'''&lt;br /&gt;
&lt;br /&gt;
highlight the long path:&lt;br /&gt;
&lt;br /&gt;
'''/home/spoken/testtree/songs/music'''&lt;br /&gt;
|| Let us create a few directories to show a long path in the '''test''' '''tree '''directory.&lt;br /&gt;
&lt;br /&gt;
Type''' m k d i r space songs''' and press '''Enter''' to make the directory.&lt;br /&gt;
&lt;br /&gt;
Type '''c d space songs''' and press '''Enter''' to move the '''songs''' directory.&lt;br /&gt;
&lt;br /&gt;
Now type '''m k d i r space music''' to create the '''music '''directory.&lt;br /&gt;
&lt;br /&gt;
Type''' c d space music''' and press '''Enter''' to move the '''music '''directory.&lt;br /&gt;
&lt;br /&gt;
Let us clear the screen.&lt;br /&gt;
&lt;br /&gt;
Now type '''p w d '''to see the directory path.&lt;br /&gt;
&lt;br /&gt;
This shows that we are now in the music directory.&lt;br /&gt;
|-&lt;br /&gt;
|| Type''' alias music='cd /home/spoken/testtree/songs/music' '''press '''Enter''' &lt;br /&gt;
&lt;br /&gt;
type '''cd '''and press '''Enter'''&lt;br /&gt;
|| Now type the '''alias''' command and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Let us now go to the home directory. &lt;br /&gt;
&lt;br /&gt;
Type '''c d''' and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Type:''' music''' press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Run '''pwd''' to illustrate the effect of the previous command &lt;br /&gt;
&lt;br /&gt;
|| To switch to the music directory, type '''music''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
You can see that we are now in the '''music''' directory.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type at the command prompt''' &lt;br /&gt;
&lt;br /&gt;
'''cd -''' &lt;br /&gt;
|| Now, type '''c d space hyphen '''to go back to the previous working directory. &lt;br /&gt;
|-&lt;br /&gt;
|| Type''' unalias music'''&lt;br /&gt;
&lt;br /&gt;
press '''enter''' &lt;br /&gt;
&lt;br /&gt;
Type '''cd '''and press '''Enter'''&lt;br /&gt;
|| To remove this alias, type '''unalias space music'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.Type '''c d '''and press '''Enter''' to go to the home directory.&lt;br /&gt;
|-&lt;br /&gt;
|| Type''' music''' &lt;br /&gt;
&lt;br /&gt;
press '''Enter''' &lt;br /&gt;
&lt;br /&gt;
Highlight the error&lt;br /&gt;
&lt;br /&gt;
|| Now again type '''music''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
We get an error stating that the command was not found. &lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''cd''' '''/home/spoken/testtree/songs/music'''&lt;br /&gt;
&lt;br /&gt;
press Enter&lt;br /&gt;
|| Let's go back to the '''music''' directory. &lt;br /&gt;
|-&lt;br /&gt;
|| run '''touch test1 test2''' &lt;br /&gt;
&lt;br /&gt;
run '''ls '''&lt;br /&gt;
&lt;br /&gt;
Highlight '''test1''' and '''test2'''.&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
To create '''test 1''' and '''test 2 files''' in the current directory, type '''touch''' '''test 1''' '''test 2''' and Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Command '''touch''' is used to create files in the current directory.&lt;br /&gt;
&lt;br /&gt;
Then run '''l s. '''&lt;br /&gt;
&lt;br /&gt;
This reflects the change on screen.&lt;br /&gt;
|-&lt;br /&gt;
|| Type''' alias rm=&amp;quot;rm -i&amp;quot;''' alias space rm equal to within double quotes rm space hyphen i.&lt;br /&gt;
&lt;br /&gt;
press '''Enter''' &lt;br /&gt;
|| The '''hyphen i''' option of the '''r m''' command makes deletion interactive. So, we can create an alias for the '''r m''' command.&lt;br /&gt;
&lt;br /&gt;
Type '''alias space rm equal to within double quotes rm space hyphen i'''..&lt;br /&gt;
|-&lt;br /&gt;
|| Type''' rm test1'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter''' &lt;br /&gt;
|| When we run '''r m test 1''', the file is deleted without showing any output.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| The system asks to remove regular empty file '''test 1.'''Type '''y''' and press '''Enter''' to confirm deletion.Now, if we run '''r m''' '''test 1''' and press '''Enter'''.The file is no longer present and as it is already deleted.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt about:&lt;br /&gt;
* Linux environment and shell variables&lt;br /&gt;
* View and modify environment variables&lt;br /&gt;
* Navigate to directories and use tilde shortcuts&lt;br /&gt;
* Re-run commands using history and aliases&lt;br /&gt;
* Customize prompts and make rm interactive&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment&lt;br /&gt;
# Type env and list all environment variables.&lt;br /&gt;
# Identify the values of HOME, SHELL, LOGNAME, and PATH.&lt;br /&gt;
# Temporarily change your PS1 prompt to display your username followed by @Linux:~$.&lt;br /&gt;
# Try creating an alias for a long command and use it.&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited, SINE IIT Bombay.Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Redirecting-Streams-and-Pipes/English</id>
		<title>Linux-New/C2/Redirecting-Streams-and-Pipes/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Redirecting-Streams-and-Pipes/English"/>
				<updated>2026-01-23T13:12:56Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''TITLE: Redirecting Streams and Pipes.'''  '''Author:''' EduPyramids  '''Keywords:''' Standard input,standard output, standard error, redirection, pipes, file descriptors, i...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''TITLE: Redirecting Streams and Pipes.'''&lt;br /&gt;
&lt;br /&gt;
'''Author:''' EduPyramids&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' Standard input,standard output, standard error, redirection, pipes, file descriptors, input redirection, output redirection, error redirection, pipes, pipelining, wc, ls, more, Linux terminal, command chaining, EduPyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Redirecting Streams and Pipes.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, you will learn to:&lt;br /&gt;
* Identify stdin, stdout and stderr streams in Linux.&lt;br /&gt;
* Redirect standard output and error to files using '''redirection operators''' (&amp;gt;, &amp;gt;&amp;gt;, 2&amp;gt;, 2&amp;gt;&amp;gt;).&lt;br /&gt;
* Explain file descriptors and their role in redirection.&lt;br /&gt;
* Connect multiple Linux commands using pipes (|) to manipulate data efficiently.&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Identify standard input, standard output and standard error streams in Linux.&lt;br /&gt;
* Redirect standard output and error to files using '''redirection operators''' &lt;br /&gt;
* Explain file descriptors and their role in redirection.&lt;br /&gt;
* Connect multiple Linux commands using pipes (|) to manipulate data efficiently.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu OS version 24 point zero 4'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have '''Ubuntu version 24 point zero 4.'''&lt;br /&gt;
* For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial&lt;br /&gt;
# '''rsp-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| Press''' Ctrl + Alt + T '''keys&lt;br /&gt;
|| Let us get started.&lt;br /&gt;
&lt;br /&gt;
Open the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| Open Terminal&lt;br /&gt;
&lt;br /&gt;
Type '''cat aaa '''press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight Errored output.&lt;br /&gt;
&lt;br /&gt;
'''cat: aaa: No such file or directory'''&lt;br /&gt;
|| Let’s type '''cat a a a''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Since this file does not exist, terminal shows an error message.&lt;br /&gt;
&lt;br /&gt;
Notice that errors are reported on the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''streams.png'''&lt;br /&gt;
|| '''Streams:''' are continuous flow of data used for input, output, and errors.&lt;br /&gt;
&lt;br /&gt;
'''File Descriptors:''' are numbers used by Linux to identify open files and streams.&lt;br /&gt;
&lt;br /&gt;
'''Bash:''' is a Linux shell that runs commands and manages input and output.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Standard Streams'''&lt;br /&gt;
&lt;br /&gt;
'''std-streams.png'''&lt;br /&gt;
|| Linux commands handle '''input''', '''output''', and '''errors''' using '''streams''' and''' file descriptors'''.&lt;br /&gt;
&lt;br /&gt;
Linux uses three standard streams:&lt;br /&gt;
* '''s t d in (0)''' for input&lt;br /&gt;
* '''s t d out (1)''' for output&lt;br /&gt;
* '''s t d e r r (2)''' for errors&lt;br /&gt;
&lt;br /&gt;
By default, the standard streams are connected to the terminal.&lt;br /&gt;
&lt;br /&gt;
Using '''redirection''', we can change this behavior.&lt;br /&gt;
&lt;br /&gt;
Standard input can be redirected using the''' less than(&amp;lt;)''' operator.&lt;br /&gt;
|- &lt;br /&gt;
|| In a terminal type '''cat &amp;gt;test1.txt '''press''' Enter &lt;br /&gt;
&lt;br /&gt;
Type: Sample to learn Linux.&lt;br /&gt;
&lt;br /&gt;
'''Press''' Enter.'''Press''' Ctrl '''and''' D '''keys together.&lt;br /&gt;
|| Now, let us learn to redirect standard input.&lt;br /&gt;
&lt;br /&gt;
Let's create a file named''' test1 dot t x t''' in the current directory and add some text to it.&lt;br /&gt;
&lt;br /&gt;
Users can pause the video and create the file '''test1 dot t x t'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''wc &amp;lt; test1.txt'''Press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Point to the output on the terminal.&lt;br /&gt;
|| Now, type '''w c space less than space''' '''test1 dot t x t''' and press '''Enter.&lt;br /&gt;
&lt;br /&gt;
w c''' displays the number of lines, words, and characters in the '''test1 dot t x t '''file.&lt;br /&gt;
&lt;br /&gt;
This command''' '''reads the file using '''s t d in''', showing input redirection.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now, let us learn to redirect '''standard output''' and '''standard error'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Channel Number'''&lt;br /&gt;
&lt;br /&gt;
Think of '''n''' as a channel number.&lt;br /&gt;
&lt;br /&gt;
Linux uses numbers to decide where output goes.&lt;br /&gt;
* '''n '''identifies the output channel.&lt;br /&gt;
* '''&amp;gt;''' means send output&lt;br /&gt;
* '''filename''' is where the output is saved&lt;br /&gt;
|| There are two ways to redirect them to a file:&lt;br /&gt;
&lt;br /&gt;
Think of '''n''' as a channel number.&lt;br /&gt;
&lt;br /&gt;
Linux uses numbers to decide where output goes.&lt;br /&gt;
* '''n '''identifies the output channel.&lt;br /&gt;
* '''Greater than(&amp;gt;)''' means send output&lt;br /&gt;
* '''filename''' is where the output is saved&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Redirection Operations'''&lt;br /&gt;
&lt;br /&gt;
'''n &amp;gt;filename''' means '''send output '''from channel''' n '''to a '''file'''.&lt;br /&gt;
&lt;br /&gt;
You need write permission for that file.'''n &amp;gt;&amp;gt; '''redirects output from file descriptor '''n''' to a file.&lt;br /&gt;
&lt;br /&gt;
If the file exists, output is appended, not overwritten.If''' n''' is not specified, '''stdout (1) '''is used.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; is the same as 1&amp;gt;'''.'''&lt;br /&gt;
&lt;br /&gt;
To redirect the error stream, use 2&amp;gt; or 2'''&amp;gt;&amp;gt;'''.''' '''&lt;br /&gt;
|| So, '''n greater than(&amp;gt;)''' '''filename''' means '''send output '''from channel''' n '''to a '''file'''.&lt;br /&gt;
&lt;br /&gt;
You need write permission for that file.&lt;br /&gt;
&lt;br /&gt;
'''n greater than greater than(&amp;gt;&amp;gt;) '''redirects output from file descriptor '''n''' to a file.&lt;br /&gt;
&lt;br /&gt;
If the file exists, output is appended, not overwritten.&lt;br /&gt;
&lt;br /&gt;
If''' n''' is not specified, '''stdout (1) '''is used.&lt;br /&gt;
&lt;br /&gt;
So, '''greater than(''' '''&amp;gt;)''' is the same as 1 '''greater than(&amp;gt;).'''&lt;br /&gt;
&lt;br /&gt;
To redirect the error stream, use 2 '''greater than(&amp;gt;)''' or 2 '''greater than greater than (&amp;gt;&amp;gt;)'''.''' '''&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to TerminalShow the terminal output of '''wc command'''&lt;br /&gt;
|| Let us see this practically.Suppose we want to save the output to a file for later use. By default, '''w c''' sends output to '''s t d out''' &lt;br /&gt;
&lt;br /&gt;
Redirecting '''s t d out''' saves the output to a file instead.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' wc test1.txt &amp;gt; wc-results.txt'''&lt;br /&gt;
&lt;br /&gt;
Type '''cat wc-results.txt'''&lt;br /&gt;
&lt;br /&gt;
Point to the output&lt;br /&gt;
|| Type: '''w c''' '''space''' '''test1 dot t x t''' '''space greater than space w c hyphen results dot t x t'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.Now, to verify this, display the contents of '''w c hyphen results dot t x t''' using the '''cat''' command.&lt;br /&gt;
&lt;br /&gt;
Type&lt;br /&gt;
&lt;br /&gt;
'''cat space w c hyphen results dot t x t'''&lt;br /&gt;
&lt;br /&gt;
And press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
The output from '''w c '''has been written to the file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''echo &amp;quot;hello&amp;quot; &amp;gt; test2.txt''' press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Show the output line with test2.txt&lt;br /&gt;
&lt;br /&gt;
Type '''wc test2.txt &amp;gt; wc-results.txt'''&lt;br /&gt;
&lt;br /&gt;
Type '''cat wc-results.txt '''press''' Enter'''&lt;br /&gt;
|| Let me create a new file by typing '''echo space “hello” space greater than space test2 dot t x t''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
We see the file''' test2 dot t x t''' is created.&lt;br /&gt;
&lt;br /&gt;
Type '''w c space test2 dot t x t space greater than space w c hyphen results dot t x t'''.&lt;br /&gt;
&lt;br /&gt;
The contents of '''w c''' '''hyphen results dot t x t '''will be overwritten.&lt;br /&gt;
&lt;br /&gt;
Let us verify using the '''cat '''command.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''wc test1.txt &amp;gt;&amp;gt; wc-results.txt ''' and '''Press Enter'''&lt;br /&gt;
&lt;br /&gt;
Type '''cat wc-results.txt'''&lt;br /&gt;
|| Instead, if we run:'''w c space test1 dot t x t greater than greater than (&amp;gt;&amp;gt;) w c hyphen results dot t x t '''and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
The new contents will not overwrite the existing contents of''' w c hyphen results dot t x t.'''&lt;br /&gt;
&lt;br /&gt;
Instead, the output will be appended to the file.&lt;br /&gt;
&lt;br /&gt;
Let us verify using the '''cat '''command&lt;br /&gt;
&lt;br /&gt;
Let me clear the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Redirecting '''standard error''' is done in a similar way.&lt;br /&gt;
&lt;br /&gt;
The only difference is that we need to specify the file descriptor number of '''standard error.'''&lt;br /&gt;
&lt;br /&gt;
This number comes before the '''greater than (&amp;gt;)''' or '''greater than greater than(&amp;gt;&amp;gt;)''' sign.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''wc aaa '''press '''Enter &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|| Highlight error. '''There is no file named''' a a a'''.Type: '''w c space a a a '''and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
The shell will display an error as'''No such file or directory.'''&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| If we don’t want error messages to show on the screen, we can redirect them to a file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''wc aaa 2&amp;gt;errorlog.txt''' and press Enter&lt;br /&gt;
|| To redirect the error, type the following command:'''w c space a a a space 2 greater than(&amp;gt;) errorlog dot t x t''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Now, the error will not appear on the terminal.Instead, it will be written to the file '''errorlog dot t x t '''&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''cat errorlog.txt '''press''' Enter'''&lt;br /&gt;
|| We can check the contents of '''errorlog dot t x t''' by typing.'''cat''' space''' errorlog dot t x t '''press''' Enter.&lt;br /&gt;
&lt;br /&gt;
'''This will display the error message that was redirected from the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''cat bbb 2&amp;gt; errorlog.txt &lt;br /&gt;
&lt;br /&gt;
Press Enter.&lt;br /&gt;
&lt;br /&gt;
'''Type: '''cat errorlog.txt '''press''' Enter'''&lt;br /&gt;
|| Now, suppose we make another error by typing:'''cat space b b b space 2 greater than(&amp;gt;)space errorlog dot t x t '''and''' '''press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
The previous contents of '''errorlog dot t x t''' will be overwritten.&lt;br /&gt;
&lt;br /&gt;
The new error message will replace the old one.&lt;br /&gt;
&lt;br /&gt;
Type '''cat''' '''space errorlog dot t x t '''and''' '''press''' Enter''' to see the changed error.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''wc aaa 2&amp;gt;&amp;gt;errorlog.txt'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
|| But what if we want to keep a record of all errors instead of overwriting them? We can append errors to a file using:'''w c space a a a space 2 greater than greater than(&amp;gt;&amp;gt;) errorlog dot t x t''' press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Now, all error messages will be added to '''errorlog dot t x t''' instead of replacing the previous ones.&lt;br /&gt;
&lt;br /&gt;
To keep all errors instead of overwriting them, we can '''append''' them to a file. &lt;br /&gt;
|- &lt;br /&gt;
|| '''cat errorlog.txt''' press '''Enter'''&lt;br /&gt;
|| We can check all the accumulated errors by typing:'''cat''' space '''errorlog dot t x t '''and press''' Enter.''' This will display all the error messages that were appended to the file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''wc aaaa.txt'''&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Show the outputstdin , stdoutput, std error.&lt;br /&gt;
|| Now type:'''w c''' space '''a a a a''' '''dot t x t '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The error caused by this command is displayed on the terminal.&lt;br /&gt;
&lt;br /&gt;
If no redirection is used, future errors will also be shown on the terminal.&lt;br /&gt;
&lt;br /&gt;
We saw how the three streams, '''standard output''', '''standard input''', and '''standard error''' can be redirected separately.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Pipelining'''&lt;br /&gt;
&lt;br /&gt;
'''pipelining.png'''&lt;br /&gt;
|| We can gain more control if we can manipulate multiple streams together.&lt;br /&gt;
&lt;br /&gt;
This process is called '''''pipelining'''''.&lt;br /&gt;
&lt;br /&gt;
'''Pipes''' link commands into a chain.The output of one command becomes the input of the next and so on.&lt;br /&gt;
&lt;br /&gt;
A pipeline connects multiple commands using the pipe, that is, vertical bar symbol.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Image: pipe1.png'''&lt;br /&gt;
&lt;br /&gt;
command1''' |''' command2 '''| '''command3''' | '''command4&lt;br /&gt;
|| A pipeline looks like this:&lt;br /&gt;
&lt;br /&gt;
Here, the output of command1 is sent as input to command2,then its output is sent to command3, and so on, forming a chain of commands.&lt;br /&gt;
|- &lt;br /&gt;
|| Back to terminal&lt;br /&gt;
|| Suppose we want to know the total number of files and directories in the current directory. We can achieve this using a pipeline of commands.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let me clear the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type cat test1.txt''' press''' Enter'''&lt;br /&gt;
|| To see the contents of the file type:'''cat space test1 dot t x t '''and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Type '''l s '''and press '''Enter'''.This will display the list of files and directories.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''ls -l &amp;gt; test1.txt '''press''' Enter'''&lt;br /&gt;
|| To redirect type '''l s space hyphen l greater than (&amp;gt;) space test1 dot t x t '''and press '''Enter.''' The file list will be saved in '''test1''' '''dot t x t''' instead of the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''wc -l test1.txt''' press''' Enter'''&lt;br /&gt;
|| Now, to count the total lines, we can use:'''w c space hyphen l space test1 dot t x t''' and press '''Enter'''. This gives us the total number of files and directories.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''ls -l | wc -l '''press '''Enter'''&lt;br /&gt;
|| We can do this more efficiently using a pipe:&lt;br /&gt;
&lt;br /&gt;
'''l s space hyphen l space vertical bar space w c space hyphen l '''and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Here, the output of the '''l s hyphen l''' command is sent directly as input to the''' w c hyphen l''' command.&lt;br /&gt;
&lt;br /&gt;
The output appears on the terminal, giving the total files and directories without an extra file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' cd /usr/bin '''and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
Highlight changed '''directory'''.&lt;br /&gt;
|| We can create longer chains of commands using '''pipes'''.One common use of pipes is for reading multipage displays.&lt;br /&gt;
&lt;br /&gt;
First, navigate to the''' slash u s r slash bin''' directory.&lt;br /&gt;
&lt;br /&gt;
Type''' c d space slash u s r slash bin '''and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
Now, we are in the '''slash u s r slash bin''' directory.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''ls -l press Enter'''&lt;br /&gt;
&lt;br /&gt;
Type: '''ls -l | more '''press '''Enter'''&lt;br /&gt;
|| Now, run:'''l s space hyphen l '''and press''' Enter.'''The output is too long to view on the terminal.&lt;br /&gt;
&lt;br /&gt;
Using a pipe with '''more''' lets us view it page by page:&lt;br /&gt;
&lt;br /&gt;
Type''' l s space hyphen l space vertical bar space more''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Here, the output of '''l s hyphen l''' is passed to '''more''', letting us view one screen at a time.&lt;br /&gt;
|- &lt;br /&gt;
|| Press '''Enter''' &lt;br /&gt;
&lt;br /&gt;
Press '''q'''&lt;br /&gt;
|| Press '''Enter''' to scroll through the list one line at a time.Press '''q''' to exit the '''more''' command and return to the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, you will learn to:&lt;br /&gt;
* Identify stdin, stdout and stderr streams in Linux.&lt;br /&gt;
* Redirect standard output and error to files using '''redirection operators''' (&amp;gt;, &amp;gt;&amp;gt;, 2&amp;gt;, and 2&amp;gt;&amp;gt;).&lt;br /&gt;
* Explain file descriptors and their role in redirection.&lt;br /&gt;
* Connect multiple Linux commands using pipes (|) to manipulate data efficiently.&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
# Create a file named '''mydata.txt '''and add 5 lines of text in it.&lt;br /&gt;
# Count the number of lines in '''mydata.txt''' and store the result in '''lines.txt'''.&lt;br /&gt;
# Display '''mydata.txt''' page by page in the terminal using '''more''' with a pipe.&lt;br /&gt;
# Display a file '''nofile.txt''' and redirect the error message to '''errorlog.txt'''.&lt;br /&gt;
# Count words in '''mydata.txt''' and show the result using a pipe.&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 13'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by '''EduPyramids''' Educational Services Private Limited SINE IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Working-with-Regular-Files/English</id>
		<title>Linux-New/C2/Working-with-Regular-Files/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Working-with-Regular-Files/English"/>
				<updated>2026-01-23T07:22:40Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Working with Regular Files in Linux.  '''Authors:''' '''EduPyramids'''  '''Keywords:''' Linux, regular files, cp command, mv command, rm command, cmp c...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Working with Regular Files in Linux.&lt;br /&gt;
&lt;br /&gt;
'''Authors:''' '''EduPyramids'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' Linux, regular files, cp command, mv command, rm command, cmp command, wc command, EduPyramids, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
&lt;br /&gt;
|| Welcome to this Spoken tutorial on '''Working with Regular Files '''in''' Linux.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
* Copy, move, and delete regular files in '''Linux'''&lt;br /&gt;
* Use file-handling commands such as '''cp''', '''mv''', and '''rm'''&lt;br /&gt;
* Compare files and count lines, words, and characters using '''cmp''' and '''wc'''&lt;br /&gt;
* Use important command options to manage files safely.&lt;br /&gt;
|| In this tutorial, we will learn how to:&lt;br /&gt;
* Copy, move, and delete regular files in '''Linux'''&lt;br /&gt;
* Use file-handling commands such as '''c p''', '''m v''', and '''r m'''&lt;br /&gt;
* Compare files and count lines, words, and characters using '''c m p''' and '''w c'''&lt;br /&gt;
* Use important command options to manage files safely.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu OS '''version 24 point 04. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org] &lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
&lt;br /&gt;
Learners should have '''Ubuntu '''version''' 24 point 04'''.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite of '''Linux''' tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial&lt;br /&gt;
# '''wrf-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let’s get started with the '''c p''' command.&lt;br /&gt;
&lt;br /&gt;
Let’s see what a '''c p''' command does?&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''cp command'''&lt;br /&gt;
&lt;br /&gt;
* The '''cp''' command is used to copy files and directories in Linux.&lt;br /&gt;
* It creates a duplicate of a file or directory at a specified location.&lt;br /&gt;
* It does not change or delete the original file&lt;br /&gt;
* '''cp SOURCE DESTINATION'''&lt;br /&gt;
&lt;br /&gt;
copies a file to another location&lt;br /&gt;
* '''cp SOURCE DIRECTORY'''&lt;br /&gt;
&lt;br /&gt;
copies one or more files into a directory&lt;br /&gt;
|| * The '''c p''' command is used to copy files and directories in '''Linux'''.&lt;br /&gt;
* It creates a duplicate of a file or directory at a specified location.&lt;br /&gt;
* It does not change or delete the original file&lt;br /&gt;
* The command '''c p SOURCE DESTINATION''', copies a file to another location and &lt;br /&gt;
* The''' c p SOURCE DIRECTORY, '''copies one or more files into a directory.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let’s see how to copy a file using the '''c p''' command. &lt;br /&gt;
|- &lt;br /&gt;
|| Press '''Ctrl+Alt+T '''keys''' together.'''Type: '''mkdir testdir '''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Point to''' testdir''' '''directory.'''&lt;br /&gt;
&lt;br /&gt;
Type: '''cd testdir'''Highlight the changed directory&lt;br /&gt;
&lt;br /&gt;
Type: '''pwd '''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight the '''/home/spoken/testdir'''&lt;br /&gt;
|| Let us open the terminal. &lt;br /&gt;
&lt;br /&gt;
Let us make a directory named '''test d i r''' in the home folder.&lt;br /&gt;
&lt;br /&gt;
Type '''m k d i r test d i r '''press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The directory '''test d i r''' is created in the home directory.&lt;br /&gt;
&lt;br /&gt;
Let us change the directory from '''home''' to '''test d i r'''.&lt;br /&gt;
&lt;br /&gt;
Type '''c d space test d i r''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
We can see that the directory has changed to '''test d i r'''.&lt;br /&gt;
&lt;br /&gt;
Now type '''p w d''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
My current working directory is '''slash home slash spoken slash test d i r'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''cat &amp;gt;test1'''&lt;br /&gt;
&lt;br /&gt;
Type:''' I am using Linux. '''and press '''Enter.Press Ctrl + D keys together'''&lt;br /&gt;
&lt;br /&gt;
Type''' cat test1'''&lt;br /&gt;
&lt;br /&gt;
Type''' cp test1 test2 '''and press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
Point to the files test1 and test2&lt;br /&gt;
|| Let’s create a file by typing''' cat space''' '''greater than test1'''.&lt;br /&gt;
&lt;br /&gt;
After pressing '''Enter''', the command waits for input from the user.&lt;br /&gt;
&lt;br /&gt;
Now I will type, '''I am using Linux. '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl''' and''' D '''keys to come out of input mode.&lt;br /&gt;
&lt;br /&gt;
Let’s type '''cat space test1''' to see the content of the file '''test1'''.&lt;br /&gt;
&lt;br /&gt;
Now type '''c p space''' '''test1 space''' '''test2 '''and''' '''press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
This copies the content of '''test1''' into a new file '''test2''' in the same directory.&lt;br /&gt;
&lt;br /&gt;
If the file '''test2''' does not exist, it will be created.&lt;br /&gt;
&lt;br /&gt;
If it exists, its content is overwritten.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''cat test2 '''and press''' Enter.'''&lt;br /&gt;
|| To check type '''cat space test2''' and press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
The original file '''test1 '''remains unchanged.&lt;br /&gt;
&lt;br /&gt;
'''test1''' is the '''source file''' and '''test2''' is the '''destination file'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''cp /home/spoken/testdir/test1 /home/spoken/test2 '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Show in side by side manner&lt;br /&gt;
&lt;br /&gt;
Type''' ls /home/spoken''' and press''' Enter.'''&lt;br /&gt;
|| We can also copy files between directories.&lt;br /&gt;
&lt;br /&gt;
Type''' c p space slash home slash spoken slash test d i r slash test1 space slash home slash spoken slash test2 '''and press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
This will copy the file '''test1 '''from '''test d i r directory '''to''' home directory '''as '''test2'''.&lt;br /&gt;
&lt;br /&gt;
Type '''l s''' space '''slash home slash spoken '''and press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
The output lists the contents of the directory.&lt;br /&gt;
&lt;br /&gt;
We can see that file '''test2''' is in the home directory.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''cp /home/spoken/testdir/test1 /home/spoken/''' and press''' Enter'''&lt;br /&gt;
|| To keep the same file name, we need not specify its name at the destination.&lt;br /&gt;
&lt;br /&gt;
Let’s type''' c p space slash home slash spoken slash test d i r slash test1 space slash home slash spoken '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This will copy the file '''test1''' from '''slash home slash spoken slash test dir slash''' to the home directory.&lt;br /&gt;
&lt;br /&gt;
The destination file will also be named as '''test1'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''cp test1 test3 '''press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
Type '''cp test1 test4 '''press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
Type '''ls '''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''test1, test2, test3''' and '''test4'''&lt;br /&gt;
&lt;br /&gt;
Type: '''cp test3 test4 /home/spoken '''and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
Point to''' test3''' and '''test4 '''in the''' home directory.'''&lt;br /&gt;
|| While copying multiple files, we need not specify the destination file name.&lt;br /&gt;
&lt;br /&gt;
First, let us create more files by copying from the existing file.&lt;br /&gt;
&lt;br /&gt;
Type '''c p space test1 space test3 '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Again type '''c p space test1 space test4 '''and press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
To list the files type''' l s '''and press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
Output shows that '''test1''', '''test2''',''' test3''' and '''test4''' are in the current directory.&lt;br /&gt;
&lt;br /&gt;
Now let us copy multiple files to the parent directory.&lt;br /&gt;
&lt;br /&gt;
Type '''c p space test3 space test4 space slash home slash spoken'''.&lt;br /&gt;
&lt;br /&gt;
Now''' test3''' and '''test4''' are also copied to the home directory.&lt;br /&gt;
&lt;br /&gt;
Notice that all files are copied to the home directory with the same names.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''cd .. '''and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the home directoryType '''cp testdir/ test '''and''' '''press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
Highlight '''cp: -r not specified; omitting directory 'testdir/''''&lt;br /&gt;
&lt;br /&gt;
'''Type cp -R testdir/ test '''and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
Point to '''test''' folder&lt;br /&gt;
&lt;br /&gt;
Type '''ls '''and''' '''press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
Type''' ls test '''and''' '''press''' Enter.'''&lt;br /&gt;
|| Let’s type '''c d space dot dot '''and press''' Enter''' to move to the parent directory.&lt;br /&gt;
&lt;br /&gt;
Let’s type''' c p space test d i r0 slash space test '''and''' '''press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
Here we get an error;&lt;br /&gt;
&lt;br /&gt;
'''hyphen r not specified; omitting directory test dir slash.'''&lt;br /&gt;
&lt;br /&gt;
Normally, the '''c p''' command cannot copy directories with files.&lt;br /&gt;
&lt;br /&gt;
Using the '''hyphen R''' option with '''c p '''allows us to copy them.&lt;br /&gt;
&lt;br /&gt;
Type '''c p space hyphen R space test dir slash space test''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Observe that it copied the entire''' testdir directory '''recursively.&lt;br /&gt;
&lt;br /&gt;
All files and subdirectories were copied into a new directory named''' test.'''&lt;br /&gt;
&lt;br /&gt;
Type '''l s''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
We can see a directory named''' test'''.&lt;br /&gt;
&lt;br /&gt;
Now type '''l s''' '''space''' '''test''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The output lists the files present in the '''test''' directory.&lt;br /&gt;
&lt;br /&gt;
If '''test''' does not exist, it is created as a copy of '''test dir'''.If the '''test''' exists, '''test dir''' is copied inside it as a subdirectory.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''mv command'''&lt;br /&gt;
* The '''mv''' command moves files and directories.&lt;br /&gt;
* It is used to rename files or directory or move them to another directory.&lt;br /&gt;
* Unlike the cp command, mv does not create a copy of the file.&lt;br /&gt;
|| The '''m v''' command moves files and directories.&lt;br /&gt;
&lt;br /&gt;
It is used to rename files or directory or move them to another directory.&lt;br /&gt;
&lt;br /&gt;
Unlike the '''c p''' command, '''m v''' does not create a copy of the file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''mv test1 test2 '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Type '''cat &amp;gt;test1''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Type the prompt: '''I am using Linux.''' and press '''Enter'''.Press '''ctrl''' and '''D''' '''keys''' together.&lt;br /&gt;
&lt;br /&gt;
Type '''mv -i test2 test3 '''press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
Prompt asks: '''overwrite test3?'''&lt;br /&gt;
&lt;br /&gt;
Type '''no '''press''' Enter'''&lt;br /&gt;
|| In the terminal, type '''m v space test1 space test2''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This renames the file '''test1''' to '''test2'''.&lt;br /&gt;
&lt;br /&gt;
If '''test2''' already exists, it is overwritten without warning.Let us again create '''test1''' file by using the '''cat''' command.&lt;br /&gt;
&lt;br /&gt;
Now type '''m v space hyphen i space test2 space test3''' and press '''Enter'''.The '''hyphen i''' option asks for confirmation before overwriting the files.&lt;br /&gt;
&lt;br /&gt;
Prompt asks: '''overwrite test3 question mark'''&lt;br /&gt;
&lt;br /&gt;
Type '''no '''and press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
This will not overwrite the '''test3''' file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''mv test2 test3 test4 /home/spoken/testdir '''and''' '''press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
Type '''ls /home/spoken/testdir '''press '''Enter'''&lt;br /&gt;
|| Like '''c p''',''' m v''' can move multiple files, but the destination must be a directory.&lt;br /&gt;
&lt;br /&gt;
Type '''m v space test2 space test3 space test4 space slash home slash spoken slash test dir '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This command moves the files '''test2''', '''test3''', and '''test4''' to the specified directory.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Files are moved from the current directory to '''slash home slash spoken slash test dir '''directory.&lt;br /&gt;
&lt;br /&gt;
To check, type''' l s space slash home slash spoken slash test dir '''and''' '''press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
The output shows that the files have been moved.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| The next command is '''r m'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide''' '''8'''&lt;br /&gt;
&lt;br /&gt;
'''rm command'''&lt;br /&gt;
* The '''rm''' command in Linux is used to remove files and directories.&lt;br /&gt;
* It permanently deletes the specified files from the system&lt;br /&gt;
|| The '''r m''' command in Linux is used to remove files and directories.&lt;br /&gt;
&lt;br /&gt;
It permanently deletes the specified files from the system.&lt;br /&gt;
|- &lt;br /&gt;
|| Show Terminal and Files side by side. Type''' rm testdir/test1 and '''press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Type''' rm testdir/test2 testdir/test3 '''press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight test4 file.'''&lt;br /&gt;
|| Type '''r m space test dir slash test1 '''and''' '''press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
This removes the file '''test1''' from the '''test dir''' directory.&lt;br /&gt;
&lt;br /&gt;
We can use it with multiple files also.&lt;br /&gt;
&lt;br /&gt;
Type''' r m space test dir slash test2 space test dir slash test3 '''press''' Enter'''.This will remove the files '''test2''' and '''test3'''.&lt;br /&gt;
&lt;br /&gt;
Only '''test4''' is available in the '''test dir''' directory.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''-f and -r option'''&lt;br /&gt;
* Use the '''-f '''option to force deletion.&lt;br /&gt;
* The '''-r '''option is commonly used to remove directories recursively.&lt;br /&gt;
* '''rm''' deletes files.&lt;br /&gt;
* '''rmdir''' deletes only empty directories.&lt;br /&gt;
* To delete a directory containing files and subdirectories, use both options together: '''rm''' '''-rf'''.&lt;br /&gt;
|| Sometimes a file is write-protected, and '''rm''' cannot delete it.&lt;br /&gt;
&lt;br /&gt;
The '''hyphen f '''option forces deletion, even for write-protected items.&lt;br /&gt;
&lt;br /&gt;
The '''hyphen r''' option removes directories and their contents recursively.&lt;br /&gt;
&lt;br /&gt;
The '''r m''' command removes files.&lt;br /&gt;
&lt;br /&gt;
The '''r m dir''' command removes empty directories only.&lt;br /&gt;
&lt;br /&gt;
To delete a directory with files and subfolders, use '''r m hyphen r f '''together.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''testdir folder'''Type''' rm -rf testdir '''press''' EnterHighlight it is removed from files'''Type '''ls '''press '''Enter'''&lt;br /&gt;
|| Type''' r m space hyphen r f space test dir '''and''' '''press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
This deletes '''test dir''' and all its files and subdirectories recursively.&lt;br /&gt;
&lt;br /&gt;
Type: '''l s''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Observe that the''' test dir''' directory is deleted.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Sometimes we need to check whether two files are identical.&lt;br /&gt;
&lt;br /&gt;
If they are the same, we can delete one of them.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| For this, we use the '''c m p''' command.&lt;br /&gt;
&lt;br /&gt;
But first let’s learn what '''cmp''' command is?&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''cmp commands'''&lt;br /&gt;
* '''cmp''' compares two files '''byte by byte'''.&lt;br /&gt;
* If the files are identical, it shows no output, only the prompt.&lt;br /&gt;
* If there are differences, '''cmp''' shows the location of the first mismatch.&lt;br /&gt;
|| &lt;br /&gt;
* '''c m p''' compares two files '''byte by byte'''.&lt;br /&gt;
* If the files are identical, it shows no output, only the prompt.&lt;br /&gt;
* If there are differences, '''c m p''' shows the location of the first mismatch.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' cat &amp;gt;sample1 '''press''' EnterType: '''This is a Linux file. &lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl '''and''' D '''keys''' '''together''' Type cat &amp;gt;sample2 '''press''' EnterType: '''This is a Unix file.&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl '''and''' D '''keys''' '''together.&lt;br /&gt;
|| Let us see how the '''c m p command''' works. &lt;br /&gt;
&lt;br /&gt;
We will create two sample files '''sample 1''' and '''sample 2''' using the '''cat''' command.&lt;br /&gt;
&lt;br /&gt;
Create two files with '''cat''':&lt;br /&gt;
* '''sample1''': This is a Linux file.&lt;br /&gt;
* '''sample2''': This is a Unix file.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' cmp sample1 sample2 '''press '''Enter.&lt;br /&gt;
&lt;br /&gt;
Highlight:sample1 sample2 differ: byte 11, line 1'''&lt;br /&gt;
&lt;br /&gt;
|| Type''' c m p space sample1 space sample2 '''press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
We can see how the differences between the first and second file are highlighted.&lt;br /&gt;
&lt;br /&gt;
Output is shown as''' sample1 sample2 differ: byte 11''',''' line 1'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Type''' cat sample2 '''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
Type''' wc sample2 '''press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight output'''&lt;br /&gt;
|| Next we will see the '''wc''' command.'''w c''' counts the number of lines, words, and characters in a file.&lt;br /&gt;
&lt;br /&gt;
For example, Type '''cat''' '''space''' '''sample2''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The file '''sample2''' contains some text.&lt;br /&gt;
&lt;br /&gt;
Now Type '''w c space sample2''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Using '''w c''', we see it has '''1 line''',''' 5 words''', '''and 21 characters'''.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Copy, move, and delete regular files in Linux&lt;br /&gt;
* Use file-handling commands such as '''cp''', '''mv''', and '''rm'''&lt;br /&gt;
* Compare files and count lines, words, and characters using '''cmp''' and '''wc'''&lt;br /&gt;
* Use important command options to manage files safely&lt;br /&gt;
|| Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
As an assignment,&lt;br /&gt;
# Copy one file to another directory using '''cp''' and verify the contents.&lt;br /&gt;
# Use '''cp''' '''-i''' and '''cp''' '''-b''' to observe how Linux prevents accidental overwriting.&lt;br /&gt;
# Compare two files using '''cmp''' and note the position of the first difference.&lt;br /&gt;
# Use the '''wc''' command to find the number of lines, words, and characters in a file.&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 13'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited SINE IIT Bombay. Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/File-System-in-Linux/English</id>
		<title>Linux-New/C2/File-System-in-Linux/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/File-System-in-Linux/English"/>
				<updated>2026-01-15T07:16:16Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: File System''' '''in Linux'''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids Team.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Linux, terminal, file, directories, pwd, ls command, cat command, video tutorial, EduPyramids.&lt;br /&gt;
&lt;br /&gt;
'''Prerequisite tutorial: General Purpose Utilities'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this''' Spoken tutorial '''on''' File System''' '''in Linux'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial we will learn to: &lt;br /&gt;
* Define Files, directories and inode.&lt;br /&gt;
* Create a file and add text in it.&lt;br /&gt;
* Create directories and&lt;br /&gt;
* Change and remove directories safely.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using,&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu OS version 24 point 04'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
Learners should know the basics of using the linux terminal.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit &lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
|| To follow this tutorial, &lt;br /&gt;
* Learners should know the basics of using the Linux terminal.&lt;br /&gt;
* For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial&lt;br /&gt;
&lt;br /&gt;
# '''fs-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us discuss files and directories.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Files'''&lt;br /&gt;
* In real life, a file is used to store documents and papers.&lt;br /&gt;
* Similarly, in '''Linux''', a file is a container used to store information.&lt;br /&gt;
|| Now let us understand what a file is?In '''Linux''' almost everything is treated as a file. &lt;br /&gt;
&lt;br /&gt;
In real life, a file is used to store documents and papers.&lt;br /&gt;
&lt;br /&gt;
Similarly, in '''Linux''', a file is a container used to store information.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Directory'''&lt;br /&gt;
* A directory is a collection of files and other sub-directories.&lt;br /&gt;
* A directory helps us organize our files in a systematic manner. &lt;br /&gt;
|| Let us now see what a directory is? &lt;br /&gt;
&lt;br /&gt;
A directory is a collection of files and other sub-directories.&lt;br /&gt;
&lt;br /&gt;
A directory helps us organize our files in a systematic manner. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''inode'''&lt;br /&gt;
&lt;br /&gt;
'''inode.png'''&lt;br /&gt;
|| Every file has its own properties. &lt;br /&gt;
&lt;br /&gt;
It has a name, creation, modification time and permission.&lt;br /&gt;
&lt;br /&gt;
These properties are stored in a structure called '''inode'''.&lt;br /&gt;
&lt;br /&gt;
An inode is a data structure identified by a unique number.&lt;br /&gt;
&lt;br /&gt;
It is used by the system to identify a file.&lt;br /&gt;
&lt;br /&gt;
It stores information about a file such as size, permissions, and ownership.&lt;br /&gt;
&lt;br /&gt;
It also stores timestamps and the disk location of the file.&lt;br /&gt;
&lt;br /&gt;
File name is only for human convenience.&lt;br /&gt;
&lt;br /&gt;
A directory does not store files directly.&lt;br /&gt;
&lt;br /&gt;
It is a file that maps file names to their corresponding inode numbers.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Linux File System hierarchy'''&lt;br /&gt;
&lt;br /&gt;
'''Linux-filesystem.png-'''&lt;br /&gt;
|| All the files are connected in a tree structure.&lt;br /&gt;
&lt;br /&gt;
At the top of this tree is the '''root directory''' indicated by slash(/).&lt;br /&gt;
&lt;br /&gt;
Every file and directory exists under root(/).&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Types of Files'''&lt;br /&gt;
&lt;br /&gt;
'''types-of-files1.png'''&lt;br /&gt;
|| Types of files in '''Linux'''.&lt;br /&gt;
&lt;br /&gt;
Linux has three main types of files:&lt;br /&gt;
# '''Regular files : '''They store data as a stream of characters.&lt;br /&gt;
&lt;br /&gt;
For example: text files, images, videos&lt;br /&gt;
# '''Directories: '''Organize files and other directories.&lt;br /&gt;
# '''Device files: '''These represent hardware such as disks, USBs, Cds. &lt;br /&gt;
&lt;br /&gt;
They can be read and written like files.&lt;br /&gt;
|-&lt;br /&gt;
|| Screencast:&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl, Alt '''and''' T keys '''on your''' keyboard'''&lt;br /&gt;
|| Let us now open the '''terminal '''window.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type pwd '''&lt;br /&gt;
&lt;br /&gt;
Point to the output&lt;br /&gt;
&lt;br /&gt;
'''/home/spoken'''&lt;br /&gt;
|| By default we are always in the home directory.&lt;br /&gt;
&lt;br /&gt;
Let me type '''pwd '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The output shows '''/home/spoken '''as the present working directory.&lt;br /&gt;
|-&lt;br /&gt;
|| Type''' ls -l '''and press '''Enter'''.&lt;br /&gt;
|| Now type '''ls space hyphen l''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Terminal shows the following output.&lt;br /&gt;
* List of all files with file permissions, &lt;br /&gt;
* file owner's name,&lt;br /&gt;
* file size in bytes &lt;br /&gt;
* last modification time, &lt;br /&gt;
* File or directory name&lt;br /&gt;
|-&lt;br /&gt;
|| Point to the information on the terminal.&lt;br /&gt;
|| Instead of displaying all information on the screen, we can store it in a file.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''ls -l &amp;gt;fileinfo''' and press '''Enter'''.&lt;br /&gt;
|| So type '''ls space hyphen l space greater than fileinfo''' and''' '''press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
Observe that nothing is displayed on the screen.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''cat fileinfo''' and press '''Enter'''.&lt;br /&gt;
|| To see the content of the files we have to use '''cat''' command.&lt;br /&gt;
&lt;br /&gt;
So type '''cat space fileinfo '''and''' '''press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
Output shows the file contents.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''cat &amp;gt; file1.txt''' and press '''Enter'''.&lt;br /&gt;
|| The''' cat''' command is mainly used to display file contents. &lt;br /&gt;
&lt;br /&gt;
It can also be used to create or append files.&lt;br /&gt;
&lt;br /&gt;
Type '''cat space greater than file1 dot''' '''txt '''and''' '''press''' Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''I am creating a new file.''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
Press '''Ctrl + D keys''' to end the input.&lt;br /&gt;
|| After pressing '''Enter''', the command waits for input from the user.&lt;br /&gt;
&lt;br /&gt;
So let’s type '''I am creating a new file.''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Whatever we type will be written into the file.&lt;br /&gt;
&lt;br /&gt;
The input is ended by pressing '''Ctrl '''and''' D keys '''together.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''cat &amp;gt;&amp;gt;file1.txt '''and press '''Enter'''.&lt;br /&gt;
|| If you wish to append to the end of an existing file type&lt;br /&gt;
&lt;br /&gt;
'''cat space greater than greater than file1 dot txt''' and press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''This is a new line in the file. ''' and''' '''press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
Press '''Ctrl''' + '''D''' keys together.&lt;br /&gt;
|| Again the command waits for input from the user. &lt;br /&gt;
&lt;br /&gt;
So type, '''This is a new line in the file'''. and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Press '''Ctrl''' and '''D''' keys together to end the input.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''cat file1.txt '''and press '''Enter'''.&lt;br /&gt;
|| To see the contents written in file1 type, &lt;br /&gt;
&lt;br /&gt;
'''cat space file1 dot txt''' and press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''clear '''and Press '''Enter.'''&lt;br /&gt;
|| Type '''clear''' to clear the terminal window.&lt;br /&gt;
|-&lt;br /&gt;
|| Type:''' mkdir test1''' and Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
While recording, show the directory creation in the home directory. &lt;br /&gt;
&lt;br /&gt;
Place the terminal and home directory side-by-side.&lt;br /&gt;
|| Let us now learn to create directories.&lt;br /&gt;
&lt;br /&gt;
To create a directory I will type '''mkdir space test1 '''and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
If no output appears it means that the command has executed successfully.&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''mkdir test2 test3 '''and press '''Enter'''&lt;br /&gt;
|| Let us now create multiple directories.&lt;br /&gt;
&lt;br /&gt;
So I will type '''mkdir space test2 space test3 '''and press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''mkdir -p test4/test4.1''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Show the folders '''test4 and test4.1'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''-p'''.&lt;br /&gt;
|| Now to show the directory hierarchy let me type '''mkdir space hyphen p space test4 slash test4 point 1''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This will create a directory''' test4 point 1 '''within the '''test4 directory.'''&lt;br /&gt;
&lt;br /&gt;
Here the argument '''hyphen p '''creates parent '''directories '''if they do not already exist.&lt;br /&gt;
&lt;br /&gt;
Then''' test4 point 1 directory '''is created inside '''test4'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now let us learn to move into various directories.&lt;br /&gt;
|-&lt;br /&gt;
|| Type:''' cd test1 '''press '''Enter'''.&lt;br /&gt;
|| Type '''cd space test1''' and press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
We are now in the '''test1''' directory.&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''cd .. ''' and press '''Enter'''.&lt;br /&gt;
|| Let us go back to the parent directory.&lt;br /&gt;
&lt;br /&gt;
So type '''cd space dot dot'''&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''cd test''' press Tab keys twice .&lt;br /&gt;
&lt;br /&gt;
Press the backspace key to erase the prompt.&lt;br /&gt;
|| Now type '''cd test''' and press the '''Tab''' key twice.&lt;br /&gt;
&lt;br /&gt;
All the directories with the name test will be displayed.&lt;br /&gt;
&lt;br /&gt;
Press the backspace key to erase the prompt.&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''cd test4/test4.1 '''and''' press Enter.'''&lt;br /&gt;
|| Type''' cd test4/test4 point 1 '''and press '''Enter '''to move to''' test4 point 1'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type: cd ../../'''&lt;br /&gt;
&lt;br /&gt;
Press the''' Enter '''key.&lt;br /&gt;
|| Now let us learn to do multi-level navigation to come back to the home directory.&lt;br /&gt;
&lt;br /&gt;
Let me type '''cd space dot dot slash dot dot slash'''&lt;br /&gt;
&lt;br /&gt;
Press the '''Enter''' key.&lt;br /&gt;
&lt;br /&gt;
Here the first two dots move up one level.&lt;br /&gt;
&lt;br /&gt;
Second two dots moves up one more directory level.&lt;br /&gt;
&lt;br /&gt;
Press the '''Enter''' key.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''rmdir test1''' and press '''Enter.'''&lt;br /&gt;
|| Now we will learn to delete the created test 1 directory.&lt;br /&gt;
&lt;br /&gt;
Type '''rmdir space test1''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Now, we can see that the test1 directory is removed.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''rmdir test4 test4/test4.1'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight the output: rmdir: failed to remove 'test4': Directory not empty'''&lt;br /&gt;
|| Type '''rmdir space test4 space test4 slash test4 point 1'''.&lt;br /&gt;
&lt;br /&gt;
The output shows &lt;br /&gt;
&lt;br /&gt;
'''rmdir: failed to remove 'test4': Directory not empty'''.&lt;br /&gt;
&lt;br /&gt;
This indicates that if the directory is not empty it cannot be deleted.&lt;br /&gt;
&lt;br /&gt;
A directory must be empty before it can be removed using''' rmdir'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we have learn to: &lt;br /&gt;
* Define Files, directories and inode&lt;br /&gt;
* Create a file and add text in it&lt;br /&gt;
* Create directories and&lt;br /&gt;
* Change and remove directories safely&lt;br /&gt;
|| Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
* Create a file named '''myfile''' using the cat command&lt;br /&gt;
* Write one line of text in it.&lt;br /&gt;
* Display the contents of '''myfile''' using the cat command.&lt;br /&gt;
* Create a directory named '''mydir''' and create sub-directories inside it.&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited SINE IIT Bombay.Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/File-System-in-Linux/English</id>
		<title>Linux-New/C2/File-System-in-Linux/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/File-System-in-Linux/English"/>
				<updated>2026-01-15T07:12:07Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: File System''' '''in Linux'''  '''Author: EduPyramids Team.'''  '''Keywords: '''Linux, terminal, file, directories, pwd, ls command, cat command, video...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: File System''' '''in Linux'''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids Team.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''Linux, terminal, file, directories, pwd, ls command, cat command, video tutorial, EduPyramids.&lt;br /&gt;
&lt;br /&gt;
'''Prerequisite tutorial: General Purpose Utilities'''&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1Title Slide'''&lt;br /&gt;
|| Welcome to this''' Spoken tutorial '''on''' File System''' '''in Linux'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2 Learning Objectives '''&lt;br /&gt;
|| In this tutorial we will learn to: &lt;br /&gt;
* Define Files, directories and inode.&lt;br /&gt;
* Create a file and add text in it.&lt;br /&gt;
* Create directories and&lt;br /&gt;
* Change and remove directories safely.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using,&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu OS version 24 point 04'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
Learners should know the basics of using the linux terminal.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit &lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
|| To follow this tutorial, &lt;br /&gt;
* Learners should know the basics of using the Linux terminal.&lt;br /&gt;
* For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial&lt;br /&gt;
&lt;br /&gt;
# '''fs-commands.txt'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us discuss files and directories.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Files'''&lt;br /&gt;
* In real life, a file is used to store documents and papers.&lt;br /&gt;
* Similarly, in '''Linux''', a file is a container used to store information.&lt;br /&gt;
|| Now let us understand what a file is?In '''Linux''' almost everything is treated as a file. &lt;br /&gt;
&lt;br /&gt;
In real life, a file is used to store documents and papers.&lt;br /&gt;
&lt;br /&gt;
Similarly, in '''Linux''', a file is a container used to store information.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Directory'''&lt;br /&gt;
* A directory is a collection of files and other sub-directories.&lt;br /&gt;
* A directory helps us organize our files in a systematic manner. &lt;br /&gt;
|| Let us now see what a directory is? &lt;br /&gt;
&lt;br /&gt;
A directory is a collection of files and other sub-directories.&lt;br /&gt;
&lt;br /&gt;
A directory helps us organize our files in a systematic manner. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''inode'''&lt;br /&gt;
&lt;br /&gt;
Image&lt;br /&gt;
&lt;br /&gt;
'''inode.png'''&lt;br /&gt;
|| Every file has its own properties. &lt;br /&gt;
&lt;br /&gt;
It has a name, creation, modification time and permission.&lt;br /&gt;
&lt;br /&gt;
These properties are stored in a structure called '''inode'''.&lt;br /&gt;
&lt;br /&gt;
An inode is a data structure identified by a unique number.&lt;br /&gt;
&lt;br /&gt;
It is used by the system to identify a file.&lt;br /&gt;
&lt;br /&gt;
It stores information about a file such as size, permissions, and ownership.&lt;br /&gt;
&lt;br /&gt;
It also stores timestamps and the disk location of the file.&lt;br /&gt;
&lt;br /&gt;
File name is only for human convenience.&lt;br /&gt;
&lt;br /&gt;
A directory does not store files directly.&lt;br /&gt;
&lt;br /&gt;
It is a file that maps file names to their corresponding inode numbers.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Linux File System hierarchy'''&lt;br /&gt;
&lt;br /&gt;
'''Linux-filesystem.png-'''&lt;br /&gt;
|| All the files are connected in a tree structure.&lt;br /&gt;
&lt;br /&gt;
At the top of this tree is the '''root directory''' indicated by slash(/).&lt;br /&gt;
&lt;br /&gt;
Every file and directory exists under root(/).&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Types of Files'''&lt;br /&gt;
&lt;br /&gt;
'''types-of-files1.png'''&lt;br /&gt;
|| Types of files in '''Linux'''.&lt;br /&gt;
&lt;br /&gt;
Linux has three main types of files:&lt;br /&gt;
# '''Regular files : '''They store data as a stream of characters.&lt;br /&gt;
&lt;br /&gt;
For example: text files, images, videos&lt;br /&gt;
# '''Directories: '''Organize files and other directories.&lt;br /&gt;
# '''Device files: '''These represent hardware such as disks, USBs, Cds. &lt;br /&gt;
&lt;br /&gt;
They can be read and written like files.&lt;br /&gt;
|-&lt;br /&gt;
|| Screencast:&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl, Alt '''and''' T keys '''on your''' keyboard'''&lt;br /&gt;
|| Let us now open the '''terminal '''window.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type pwd '''&lt;br /&gt;
&lt;br /&gt;
Point to the output&lt;br /&gt;
&lt;br /&gt;
'''/home/spoken'''&lt;br /&gt;
|| By default we are always in the home directory.&lt;br /&gt;
&lt;br /&gt;
Let me type '''pwd '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The output shows '''/home/spoken '''as the present working directory.&lt;br /&gt;
|-&lt;br /&gt;
|| Type''' ls -l '''and press '''Enter'''.&lt;br /&gt;
|| Now type '''ls space hyphen l''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Terminal shows the following output.&lt;br /&gt;
* List of all files with file permissions, &lt;br /&gt;
* file owner's name,&lt;br /&gt;
* file size in bytes &lt;br /&gt;
* last modification time, &lt;br /&gt;
* File or directory name&lt;br /&gt;
|-&lt;br /&gt;
|| Point to the information on the terminal.&lt;br /&gt;
|| Instead of displaying all information on the screen, we can store it in a file.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''ls -l &amp;gt;fileinfo''' and press '''Enter'''.&lt;br /&gt;
|| So type '''ls space hyphen l space greater than fileinfo''' and''' '''press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
Observe that nothing is displayed on the screen.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''cat fileinfo''' and press '''Enter'''.&lt;br /&gt;
|| To see the content of the files we have to use '''cat''' command.&lt;br /&gt;
&lt;br /&gt;
So type '''cat space fileinfo '''and''' '''press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
Output shows the file contents.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''cat &amp;gt; file1.txt''' and press '''Enter'''.&lt;br /&gt;
|| The''' cat''' command is mainly used to display file contents. &lt;br /&gt;
&lt;br /&gt;
It can also be used to create or append files.&lt;br /&gt;
&lt;br /&gt;
Type '''cat space greater than file1 dot''' '''txt '''and''' '''press''' Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''I am creating a new file.''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
Press '''Ctrl + D keys''' to end the input.&lt;br /&gt;
|| After pressing '''Enter''', the command waits for input from the user.&lt;br /&gt;
&lt;br /&gt;
So let’s type '''I am creating a new file.''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Whatever we type will be written into the file.&lt;br /&gt;
&lt;br /&gt;
The input is ended by pressing '''Ctrl '''and''' D keys '''together.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''cat &amp;gt;&amp;gt;file1.txt '''and press '''Enter'''.&lt;br /&gt;
|| If you wish to append to the end of an existing file type&lt;br /&gt;
&lt;br /&gt;
'''cat space greater than greater than file1 dot txt''' and press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''This is a new line in the file. ''' and''' '''press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
Press '''Ctrl''' + '''D''' keys together.&lt;br /&gt;
|| Again the command waits for input from the user. &lt;br /&gt;
&lt;br /&gt;
So type, '''This is a new line in the file'''. and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Press '''Ctrl''' and '''D''' keys together to end the input.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''cat file1.txt '''and press '''Enter'''.&lt;br /&gt;
|| To see the contents written in file1 type, &lt;br /&gt;
&lt;br /&gt;
'''cat space file1 dot txt''' and press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''clear '''and Press '''Enter.'''&lt;br /&gt;
|| Type '''clear''' to clear the terminal window.&lt;br /&gt;
|-&lt;br /&gt;
|| Type:''' mkdir test1''' and Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
While recording, show the directory creation in the home directory. &lt;br /&gt;
&lt;br /&gt;
Place the terminal and home directory side-by-side.&lt;br /&gt;
|| Let us now learn to create directories.&lt;br /&gt;
&lt;br /&gt;
To create a directory I will type '''mkdir space test1 '''and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
If no output appears it means that the command has executed successfully.&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''mkdir test2 test3 '''and press '''Enter'''&lt;br /&gt;
|| Let us now create multiple directories.&lt;br /&gt;
&lt;br /&gt;
So I will type '''mkdir space test2 space test3 '''and press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''mkdir -p test4/test4.1''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Show the folders '''test4 and test4.1'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''-p'''.&lt;br /&gt;
|| Now to show the directory hierarchy let me type '''mkdir space hyphen p space test4 slash test4 point 1''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This will create a directory''' test4 point 1 '''within the '''test4 directory.'''&lt;br /&gt;
&lt;br /&gt;
Here the argument '''hyphen p '''creates parent '''directories '''if they do not already exist.&lt;br /&gt;
&lt;br /&gt;
Then''' test4 point 1 directory '''is created inside '''test4'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now let us learn to move into various directories.&lt;br /&gt;
|-&lt;br /&gt;
|| Type:''' cd test1 '''press '''Enter'''.&lt;br /&gt;
|| Type '''cd space test1''' and press''' Enter'''.&lt;br /&gt;
&lt;br /&gt;
We are now in the '''test1''' directory.&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''cd .. ''' and press '''Enter'''.&lt;br /&gt;
|| Let us go back to the parent directory.&lt;br /&gt;
&lt;br /&gt;
So type '''cd space dot dot'''&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''cd test''' press Tab keys twice .&lt;br /&gt;
&lt;br /&gt;
Press the backspace key to erase the prompt.&lt;br /&gt;
|| Now type '''cd test''' and press the '''Tab''' key twice.&lt;br /&gt;
&lt;br /&gt;
All the directories with the name test will be displayed.&lt;br /&gt;
&lt;br /&gt;
Press the backspace key to erase the prompt.&lt;br /&gt;
|-&lt;br /&gt;
|| Type '''cd test4/test4.1 '''and''' press Enter.'''&lt;br /&gt;
|| Type''' cd test4/test4 point 1 '''and press '''Enter '''to move to''' test4 point 1'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Type: cd ../../'''&lt;br /&gt;
&lt;br /&gt;
Press the''' Enter '''key.&lt;br /&gt;
|| Now let us learn to do multi-level navigation to come back to the home directory.&lt;br /&gt;
&lt;br /&gt;
Let me type '''cd space dot dot slash dot dot slash'''&lt;br /&gt;
&lt;br /&gt;
Press the '''Enter''' key.&lt;br /&gt;
&lt;br /&gt;
Here the first two dots move up one level.&lt;br /&gt;
&lt;br /&gt;
Second two dots moves up one more directory level.&lt;br /&gt;
&lt;br /&gt;
Press the '''Enter''' key.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''rmdir test1''' and press '''Enter.'''&lt;br /&gt;
|| Now we will learn to delete the created test 1 directory.&lt;br /&gt;
&lt;br /&gt;
Type '''rmdir space test1''' and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
Now, we can see that the test1 directory is removed.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''rmdir test4 test4/test4.1'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight the output: rmdir: failed to remove 'test4': Directory not empty'''&lt;br /&gt;
|| Type '''rmdir space test4 space test4 slash test4 point 1'''.&lt;br /&gt;
&lt;br /&gt;
The output shows &lt;br /&gt;
&lt;br /&gt;
'''rmdir: failed to remove 'test4': Directory not empty'''.&lt;br /&gt;
&lt;br /&gt;
This indicates that if the directory is not empty it cannot be deleted.&lt;br /&gt;
&lt;br /&gt;
A directory must be empty before it can be removed using''' rmdir'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we have learn to: &lt;br /&gt;
* Define Files, directories and inode&lt;br /&gt;
* Create a file and add text in it&lt;br /&gt;
* Create directories and&lt;br /&gt;
* Change and remove directories safely&lt;br /&gt;
|| Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
* Create a file named '''myfile''' using the cat command&lt;br /&gt;
* Write one line of text in it.&lt;br /&gt;
* Display the contents of '''myfile''' using the cat command.&lt;br /&gt;
* Create a directory named '''mydir''' and create sub-directories inside it.&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited SINE IIT Bombay.Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/General-Purpose-Utilities/English</id>
		<title>Linux-New/C2/General-Purpose-Utilities/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/General-Purpose-Utilities/English"/>
				<updated>2026-01-05T14:49:58Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: General Purpose Utilities'''  '''Author: EduPyramids Team'''  '''Keywords: '''echo, uname, who, passwd, root, Linux utilities, video tutorial.  {|borde...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: General Purpose Utilities'''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids Team'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''echo, uname, who, passwd, root, Linux utilities, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this''' Spoken tutorial '''on''' General Purpose Utilities '''in''' Linux.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objective'''&lt;br /&gt;
|| In this tutorial we will learn to;&lt;br /&gt;
* Use the echo command with escape sequences&lt;br /&gt;
* Check the Linux kernel version in the system&lt;br /&gt;
* View current and logged-in users and&lt;br /&gt;
* Change the login password.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using,&lt;br /&gt;
&lt;br /&gt;
Ubuntu OS version 24 point zero 4&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
|| To follow this tutorial, &lt;br /&gt;
* Learners should be familiar with the basic Linux terminal commands.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial&lt;br /&gt;
&lt;br /&gt;
1. gpu-commands.txt&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| Screencast:&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl, Alt '''and''' T keys '''on your''' keyboard'''&lt;br /&gt;
|| Press''' Ctrl''', '''Alt '''and''' T keys '''on your''' keyboard''' to open the''' terminal'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''echo Hello from EduPyramids'''&lt;br /&gt;
|| Let us begin with the echo command.&lt;br /&gt;
&lt;br /&gt;
Type '''echo space Hello space from space EduPyramids''' and press Enter.echo '''command''' in Linux is used to '''display text or output to the terminal'''.&lt;br /&gt;
&lt;br /&gt;
The message '''Hello from EduPyramids '''is displayed as output.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''echo -e 'Enter a command\c''''and press Enter.&lt;br /&gt;
&lt;br /&gt;
Type '''clear''' and press '''Enter'''.&lt;br /&gt;
|| Type echo hyphen e space 'Enter a command backslash c' and press Enter. &lt;br /&gt;
&lt;br /&gt;
The -e option allows echo to interpret escape sequences Here, \c prevents the cursor from moving to a new line.&lt;br /&gt;
&lt;br /&gt;
As a result, the prompt '''Enter a command''' is displayed, and the cursor remains on the same line.&lt;br /&gt;
&lt;br /&gt;
This is useful when we want the user to enter input on the same line.&lt;br /&gt;
&lt;br /&gt;
Let’s clear the screen.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''echo -e 'Hello World\n'''' press Enter.&lt;br /&gt;
|| Now lets try the backslash''' t''' and backslash '''n '''using Hello world as an example.&lt;br /&gt;
&lt;br /&gt;
Type: '''echo hyphen e 'Hello World backslash n'''' and press Enter. &lt;br /&gt;
&lt;br /&gt;
The backslash''' n''' moves the cursor to a new line. As a result, the prompt appears on the next line after the output.&lt;br /&gt;
|-&lt;br /&gt;
|| type: '''echo -e 'Hello\nWorld'''' press Enter &lt;br /&gt;
|| Now type: '''echo hyphen e 'Hello backslash n World'''' and press Enter This command prints Hello and World on two separate lines, one below the other.&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''echo -e 'Hello\tWorld' '''press Enter.&lt;br /&gt;
|| Type: '''echo hyphen e 'Hello backslash t World' '''press Enter.This command prints Hello and World with a tab space between them.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''uname -r'''&lt;br /&gt;
&lt;br /&gt;
Type: clear and press Enter&lt;br /&gt;
|| To check the Linux kernel version, type '''uname''' '''space''' '''hyphen r '''and press Enter.&lt;br /&gt;
&lt;br /&gt;
The output shows the kernel release version currently running on the system.Clear the screen.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''whoami'''&lt;br /&gt;
|| To know what your username is, without spaces, type''' whoami '''and '''Press Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Type: '''who''' and Press Enter.&lt;br /&gt;
|| To see the list of users currently logged into the system, type '''who''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
The output shows all users who are currently logged in&lt;br /&gt;
&lt;br /&gt;
It displays information such as the username, terminal (seat), display, and login time for each session.&lt;br /&gt;
|-&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''passwd''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
Point to the output.&lt;br /&gt;
|| To change our login password when needed.Type: '''passwd''' and press '''Enter'''”&lt;br /&gt;
|-&lt;br /&gt;
|| Changing password for username&lt;br /&gt;
&lt;br /&gt;
Current password.&lt;br /&gt;
&lt;br /&gt;
Type the current password&lt;br /&gt;
&lt;br /&gt;
type the new password&lt;br /&gt;
&lt;br /&gt;
Retype the new password to confirm.&lt;br /&gt;
|| Type your current system password when prompted.&lt;br /&gt;
&lt;br /&gt;
Next, type the new password and then retype it to confirm.&lt;br /&gt;
&lt;br /&gt;
If the current password is forgotten, it can still be changed.&lt;br /&gt;
&lt;br /&gt;
The root user, who has administrative privileges, can perform this action.&lt;br /&gt;
&lt;br /&gt;
We will learn about root privileges in the upcoming tutorials.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we have learnt to&lt;br /&gt;
* Use the echo command with escape sequences&lt;br /&gt;
* Check the Linux kernel version in the system&lt;br /&gt;
* View current and logged-in users&lt;br /&gt;
* Change the login password&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment, please do the following.&lt;br /&gt;
* Display “Welcome to Linux” using '''\c, \t, '''and''' \n '''commands.&lt;br /&gt;
* Restart the system and note login details using '''who '''command&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private Limited SINE IIT Bombay.Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Structure-of-Linux-Commands/English</id>
		<title>Linux-New/C2/Structure-of-Linux-Commands/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Structure-of-Linux-Commands/English"/>
				<updated>2026-01-03T19:22:39Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Structure of Commands'''  '''Author: EduPyramids Team.'''  '''Keywords: '''command structure, command name, options, arguments, ls command, man, apropo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Structure of Commands'''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids Team.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''command structure, command name, options, arguments, ls command, man, apropos, whatis, man -k, ls --help, video tutorial. &lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue '''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the '''Spoken tutorial''' on''' Structure of Linux Commands'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will learn about:&lt;br /&gt;
* Structure of Linux commands&lt;br /&gt;
* Command name, options, and arguments&lt;br /&gt;
* Using help commands like man, apropos, and - -help&lt;br /&gt;
|| In this tutorial, we will learn about:&lt;br /&gt;
* Structure of Linux commands&lt;br /&gt;
* Command name, options, and arguments&lt;br /&gt;
* Using help commands like man, apropos, and hyphen hyphen help.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using,&lt;br /&gt;
&lt;br /&gt;
Ubuntu OS version 24 point 04.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
|| To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
Learners should know basic Linux terminal commands.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial&lt;br /&gt;
&lt;br /&gt;
1. sc-commands.txt&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started with the structure of Linux commands.&lt;br /&gt;
|- &lt;br /&gt;
|| Screencast:&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl, Alt '''and''' T keys '''on your''' keyboard'''&lt;br /&gt;
|| Open the terminal by pressing '''Ctrl, Alt, and T''' keys together.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type: ls'''&lt;br /&gt;
&lt;br /&gt;
'''press Enter'''&lt;br /&gt;
&lt;br /&gt;
Highlight all the files shown in the terminal.&lt;br /&gt;
|| Type: '''ls'''.&lt;br /&gt;
&lt;br /&gt;
'''ls''' command lists files and folders in a directory.&lt;br /&gt;
&lt;br /&gt;
Commands may be single words or multiple words separated by spaces.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Here we can see all the files and folders in the '''Home''' directory.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type: clear '''&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''.&lt;br /&gt;
|| Type '''clear''' to clear the terminal window.&lt;br /&gt;
&lt;br /&gt;
The '''clear''' command removes previous output from the terminal.&lt;br /&gt;
&lt;br /&gt;
press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
It gives a clean screen, making the terminal easier to read and work with.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type''': '''ls -a'''&lt;br /&gt;
|| Type''' ls space hyphen a'''. &lt;br /&gt;
&lt;br /&gt;
The '''ls space hyphen a''' command lists all files and directories.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Structure of Linux Commands.'''&lt;br /&gt;
* A Linux command consists of multiple parts.&lt;br /&gt;
* The first part is the '''command name'''; the remaining parts are called arguments.&lt;br /&gt;
* Arguments can be '''options''', '''expressions''', or '''file names'''.&lt;br /&gt;
* A command can perform different tasks depending on the '''option''' specified.&lt;br /&gt;
* Options usually begin with a single(-) hyphen or a double(- -) hyphen sign.&lt;br /&gt;
|| &lt;br /&gt;
* A Linux command consists of multiple parts.&lt;br /&gt;
* The first part is the '''command name'''; the remaining parts are called arguments.&lt;br /&gt;
* Arguments can be '''options''', '''expressions''', or '''file names'''.&lt;br /&gt;
* A command can perform different tasks depending on the '''option''' specified.&lt;br /&gt;
* Options usually begin with a single hyphen or a double hyphen sign.&lt;br /&gt;
|- &lt;br /&gt;
|| Press enter&lt;br /&gt;
&lt;br /&gt;
Highlight all the files shown in the terminal.&lt;br /&gt;
|| Let me press Enter.&lt;br /&gt;
&lt;br /&gt;
Here we can see all the files in the Home directory.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''clear''' and press '''Enter'''.&lt;br /&gt;
|| Type '''clear''' and press Enter to clear the terminal window.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''ls --all'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight the list of directories.'''&lt;br /&gt;
|| Now type '''ls space hyphen hyphen all '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
'''ls space hyphen hyphen all'''&lt;br /&gt;
&lt;br /&gt;
lists all files and directories, and also hidden files that start with a dot.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''clear''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Type:''' ls -d '''and press '''Enter'''.&lt;br /&gt;
|| Again, type clear to clear the terminal .&lt;br /&gt;
&lt;br /&gt;
Now type '''ls space hyphen d '''and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight the output: dot(.)'''&lt;br /&gt;
&lt;br /&gt;
'''highlight -d'''&lt;br /&gt;
|| Notice that only a single dot appears as '''output.'''&lt;br /&gt;
&lt;br /&gt;
The dot represents the '''current directory'''.&lt;br /&gt;
&lt;br /&gt;
The '''hyphen d''' option tells '''Linux, '''show the '''directory''' itself, not what’s inside it.&lt;br /&gt;
&lt;br /&gt;
Since we didn’t give a''' directory '''name, '''Linux '''shows the current '''directory''' as dot.&lt;br /&gt;
|- &lt;br /&gt;
|| Type:''' ls -d ALL''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Highlight '''ALL'''&lt;br /&gt;
|| Now, let’s try something different. Suppose we have a '''directory''' named '''ALL'''.&lt;br /&gt;
&lt;br /&gt;
Type:''' ls space hyphen d space ALL''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
We can see in the '''output,''' Linux prints '''ALL'''.&lt;br /&gt;
&lt;br /&gt;
It only shows the name of the directory. &lt;br /&gt;
&lt;br /&gt;
It does not list the files or folders inside '''ALL'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration.&lt;br /&gt;
|| In '''Linux''' we have a large number of commands.&lt;br /&gt;
&lt;br /&gt;
Each command has many different options.&lt;br /&gt;
&lt;br /&gt;
So how do we keep track of it?&lt;br /&gt;
&lt;br /&gt;
In reality we don't have to. &lt;br /&gt;
&lt;br /&gt;
This is because of the excellent online help facilities available in Linux.&lt;br /&gt;
&lt;br /&gt;
The '''man''' command displays the manual pages for Linux commands.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''man''' '''ls''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
Scroll up to show all the arguments&lt;br /&gt;
&lt;br /&gt;
Press '''q'''&lt;br /&gt;
|| To learn more about the ls command, &lt;br /&gt;
&lt;br /&gt;
type '''man''' '''space''' '''ls''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
'''man '''is the system’s manual pager that displays documentation for commands.&lt;br /&gt;
&lt;br /&gt;
Arguments given to '''man''' are normally the name of a program, utility or function.&lt;br /&gt;
&lt;br /&gt;
Press '''q''' to exit the manual.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| '''man''' command provides the '''hyphen''' '''k''' option. &lt;br /&gt;
&lt;br /&gt;
It takes a keyword and returns a list of commands and their brief purpose.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the command prompt&lt;br /&gt;
&lt;br /&gt;
'''man -k directories'''&lt;br /&gt;
|| For example, to create a directory, we may not know the exact command.&lt;br /&gt;
&lt;br /&gt;
So we can type '''man space hyphen k space directories '''and press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| Scroll down to show all the commands related to directories.&lt;br /&gt;
|| Now we can search each of these commands to see what we actually need.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the command prompt: '''apropos directories'''&lt;br /&gt;
|| We can do the same search using the '''apropos''' command.&lt;br /&gt;
&lt;br /&gt;
I have opened another terminal window.&lt;br /&gt;
&lt;br /&gt;
Type '''apropos''' '''space''' '''directories''' and press Enter, to see the same output.&lt;br /&gt;
|- &lt;br /&gt;
|| Scroll up to show all the commands related to directories.&lt;br /&gt;
&lt;br /&gt;
Close the second terminal window.&lt;br /&gt;
&lt;br /&gt;
Type '''clear''' and press '''Enter'''&lt;br /&gt;
|| The '''apropos''' command works similarly to '''man -k.'''&lt;br /&gt;
&lt;br /&gt;
Both search for commands related to a keyword.&lt;br /&gt;
&lt;br /&gt;
I will close the second terminal window.&lt;br /&gt;
&lt;br /&gt;
Clear the screen.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''whatis''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
&lt;br /&gt;
Type '''man -f''' and press '''Enter'''.&lt;br /&gt;
|| Type '''whatis''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The output displays '''whatis''' '''space''' '''what''' '''question''' '''mark'''.&lt;br /&gt;
&lt;br /&gt;
The '''whatis''' command gives a one-line description of a command.&lt;br /&gt;
&lt;br /&gt;
Type '''man''' '''space''' '''hyphen''' '''f''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Both give one line description about the command.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the command prompt''' '''&lt;br /&gt;
&lt;br /&gt;
'''whatis ls'''&lt;br /&gt;
|| Type '''whatis space ls '''and press Enter to see the output.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| To know more options available for a command we can use the '''hyphen hyphen help''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type: ls --help'''&lt;br /&gt;
&lt;br /&gt;
Scroll up to show all the options available&lt;br /&gt;
|| Type '''ls space''' '''hyphen hyphen help''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Many commands also support the hyphen hyphen option.&lt;br /&gt;
&lt;br /&gt;
It displays a brief list of options directly on the terminal.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt about:&lt;br /&gt;
* Structure of Linux commands&lt;br /&gt;
* Command name, options, and arguments&lt;br /&gt;
* Using help commands like man, apropos, and - - help&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment,'''&lt;br /&gt;
&lt;br /&gt;
'''Run the following commands and check the output:'''&lt;br /&gt;
* '''ls -alh'''&lt;br /&gt;
* '''ls -al'''&lt;br /&gt;
* '''ls -s'''&lt;br /&gt;
|| As an Assignment, please do the following&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids educational services private limited SINE IIT Bombay. Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Date-and-Time-Commands/English</id>
		<title>Linux-New/C2/Date-and-Time-Commands/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Date-and-Time-Commands/English"/>
				<updated>2026-01-03T16:47:39Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Date and Time commands'''&lt;br /&gt;
&lt;br /&gt;
'''Authors: EduPyramids Team'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: date, cal, ncal, Linux, time, calendar, sudo, man, video tutorial.'''&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue '''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the '''Spoken tutorial''' on''' Date and Time Commands '''in '''Linux. '''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial we will learn to,&lt;br /&gt;
* Use Linux commands to display the system date and time&lt;br /&gt;
* Use date command options&lt;br /&gt;
* Install '''ncal package'''&lt;br /&gt;
* View calendars using '''cal '''command&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
Ubuntu OS version 24.04 and &lt;br /&gt;
&lt;br /&gt;
A working''' internet''' connection.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4''' &lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
|| To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
Learners should know the basics of using the Linux terminal.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial&lt;br /&gt;
&lt;br /&gt;
1. dc-commands.txt&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started. &lt;br /&gt;
|-&lt;br /&gt;
|| Screencast:&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl, Alt '''and''' T keys '''on your''' keyboard'''&lt;br /&gt;
|| Open the terminal by pressing '''Ctrl''', '''Alt''', and '''T''' keys.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us check the current system date and time.&lt;br /&gt;
&lt;br /&gt;
For this, we use the '''date''' command with arguments.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''date '''press''' Enter'''&lt;br /&gt;
|| To view the current system date and time, &lt;br /&gt;
&lt;br /&gt;
type '''date''' command and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
It will display the day, date, month, year, time and time zone. &lt;br /&gt;
|- &lt;br /&gt;
|| Point to the output.&lt;br /&gt;
|| The '''date''' command is very versatile and offers many options.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date +%T'''&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date space plus percent capital T '''press''' Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the output.&lt;br /&gt;
&lt;br /&gt;
hh:mm:ss format.&lt;br /&gt;
|| Time in hours, minutes and seconds format is displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us see a few more examples using the '''date''' command.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date +%h''' press Enter.&lt;br /&gt;
&lt;br /&gt;
Point to the output.&lt;br /&gt;
|| Type''' date space plus percent h '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The name of the month is displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date +%m '''&lt;br /&gt;
|| Similarly, type&lt;br /&gt;
&lt;br /&gt;
'''date space plus percent m'''&lt;br /&gt;
&lt;br /&gt;
It shows month of the current year.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date +%y'''&lt;br /&gt;
|| Now type '''date space plus percent y''' it shows the last two digits of the current year.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date +%h%y'''&lt;br /&gt;
|| We can combine these options as well. &lt;br /&gt;
&lt;br /&gt;
Type '''date space plus percent h percent y''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
The output shows Jan twenty six.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''man date''' Press Enter.&lt;br /&gt;
&lt;br /&gt;
Scroll up to see the commands.&lt;br /&gt;
&lt;br /&gt;
Press '''q'''&lt;br /&gt;
|| Let us learn more about the '''date''' command and its options.&lt;br /&gt;
&lt;br /&gt;
Type''' man space date''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This opens the manual page for the date command.&lt;br /&gt;
&lt;br /&gt;
Press '''q''' to exit the manual.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''cal '''&lt;br /&gt;
|| Another related command is the '''cal''' command. &lt;br /&gt;
&lt;br /&gt;
Though less commonly used, it displays the calendar of the current month.&lt;br /&gt;
&lt;br /&gt;
Type '''cal''' and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Command 'cal' not found, but can be installed with: sudo apt install ncal'''&lt;br /&gt;
|| In some Ubuntu systems, the '''cal''' command is part of the ncal package.&lt;br /&gt;
&lt;br /&gt;
If the '''cal''' command is not found, we need to install '''ncal.'''&lt;br /&gt;
&lt;br /&gt;
The '''ncal package''' is used to display calendars on the terminal in Linux systems.&lt;br /&gt;
|- &lt;br /&gt;
|| Type:''' sudo apt install ncal'''&lt;br /&gt;
|| Let us install '''ncal'''.&lt;br /&gt;
&lt;br /&gt;
Type the command '''sudo apt install ncal'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
If prompted enter the system password and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Installation may take some time.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''cal''' press Enter&lt;br /&gt;
|| Now type '''cal''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Here it displays the calendar for the current month and year.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''cal 12 2070'''&lt;br /&gt;
|| Similarly if we want the calendar for a specific month, say for '''December 2070'''.&lt;br /&gt;
&lt;br /&gt;
Then we will type '''cal 12 2070.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Show the output.&lt;br /&gt;
|| This gives the calendar of '''December 2070'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
&lt;br /&gt;
man date&lt;br /&gt;
|| Users can explore the options in the''' date''' command using the '''man date''' command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we have learnt to:&lt;br /&gt;
* Use Linux commands to display the system date and time&lt;br /&gt;
* Use date command options&lt;br /&gt;
* Install '''ncal package'''&lt;br /&gt;
* View calendars using '''cal '''command&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment,&lt;br /&gt;
&lt;br /&gt;
Open the terminal: Ctrl+Alt+T keys.&lt;br /&gt;
* Type date +%R, press Enter.&lt;br /&gt;
* Type date +%U, press Enter.&lt;br /&gt;
* Type date +%j, press Enter.&lt;br /&gt;
* Type date +%q, press Enter.&lt;br /&gt;
* Type cal 06 2035, press Enter.&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by '''EduPyramids Educational Services Private Limited, SINE, IIT Bombay.'''Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Date-and-Time-Commands/English</id>
		<title>Linux-New/C2/Date-and-Time-Commands/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Date-and-Time-Commands/English"/>
				<updated>2026-01-03T16:46:19Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Date and Time commands.'''  '''Authors: EduPyramids Team'''  '''Keywords: date, cal, ncal, Linux, time, calendar, sudo, man, video tutorial.'''  {| bor...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Date and Time commands.'''&lt;br /&gt;
&lt;br /&gt;
'''Authors: EduPyramids Team'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: date, cal, ncal, Linux, time, calendar, sudo, man, video tutorial.'''&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue '''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the '''Spoken tutorial''' on''' Date and Time Commands '''in '''Linux. '''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial we will learn to,&lt;br /&gt;
* Use Linux commands to display the system date and time&lt;br /&gt;
* Use date command options&lt;br /&gt;
* Install '''ncal package'''&lt;br /&gt;
* View calendars using '''cal '''command&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
Ubuntu OS version 24.04 and &lt;br /&gt;
&lt;br /&gt;
A working''' internet''' connection.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4''' &lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
|| To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
Learners should know the basics of using the Linux terminal.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial&lt;br /&gt;
&lt;br /&gt;
1. dc-commands.txt&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started. &lt;br /&gt;
|-&lt;br /&gt;
|| Screencast:&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl, Alt '''and''' T keys '''on your''' keyboard'''&lt;br /&gt;
|| Open the terminal by pressing '''Ctrl''', '''Alt''', and '''T''' keys.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us check the current system date and time.&lt;br /&gt;
&lt;br /&gt;
For this, we use the '''date''' command with arguments.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''date '''press''' Enter'''&lt;br /&gt;
|| To view the current system date and time, &lt;br /&gt;
&lt;br /&gt;
type '''date''' command and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
It will display the day, date, month, year, time and time zone. &lt;br /&gt;
|- &lt;br /&gt;
|| Point to the output.&lt;br /&gt;
|| The '''date''' command is very versatile and offers many options.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date +%T'''&lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date space plus percent capital T '''press''' Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the output.&lt;br /&gt;
&lt;br /&gt;
hh:mm:ss format.&lt;br /&gt;
|| Time in hours, minutes and seconds format is displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us see a few more examples using the '''date''' command.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date +%h''' press Enter.&lt;br /&gt;
&lt;br /&gt;
Point to the output.&lt;br /&gt;
|| Type''' date space plus percent h '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
The name of the month is displayed.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date +%m '''&lt;br /&gt;
|| Similarly, type&lt;br /&gt;
&lt;br /&gt;
'''date space plus percent m'''&lt;br /&gt;
&lt;br /&gt;
It shows month of the current year.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date +%y'''&lt;br /&gt;
|| Now type '''date space plus percent y''' it shows the last two digits of the current year.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''date +%h%y'''&lt;br /&gt;
|| We can combine these options as well. &lt;br /&gt;
&lt;br /&gt;
Type '''date space plus percent h percent y''' and press '''Enter.''' &lt;br /&gt;
&lt;br /&gt;
The output shows Jan twenty six.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''man date''' Press Enter.&lt;br /&gt;
&lt;br /&gt;
Scroll up to see the commands.&lt;br /&gt;
&lt;br /&gt;
Press '''q'''&lt;br /&gt;
|| Let us learn more about the '''date''' command and its options.&lt;br /&gt;
&lt;br /&gt;
Type''' man space date''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
This opens the manual page for the date command.&lt;br /&gt;
&lt;br /&gt;
Press '''q''' to exit the manual.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''cal '''&lt;br /&gt;
|| Another related command is the '''cal''' command. &lt;br /&gt;
&lt;br /&gt;
Though less commonly used, it displays the calendar of the current month.&lt;br /&gt;
&lt;br /&gt;
Type '''cal''' and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Command 'cal' not found, but can be installed with: sudo apt install ncal'''&lt;br /&gt;
|| In some Ubuntu systems, the '''cal''' command is part of the ncal package.&lt;br /&gt;
&lt;br /&gt;
If the '''cal''' command is not found, we need to install '''ncal.'''&lt;br /&gt;
&lt;br /&gt;
The '''ncal package''' is used to display calendars on the terminal in Linux systems.&lt;br /&gt;
|- &lt;br /&gt;
|| Type:''' sudo apt install ncal'''&lt;br /&gt;
|| Let us install '''ncal'''.&lt;br /&gt;
&lt;br /&gt;
Type the command '''sudo apt install ncal'''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
If prompted enter the system password and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Installation may take some time.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: '''cal''' press Enter&lt;br /&gt;
|| Now type '''cal''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
Here it displays the calendar for the current month and year.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt&lt;br /&gt;
&lt;br /&gt;
'''cal 12 2070'''&lt;br /&gt;
|| Similarly if we want the calendar for a specific month, say for '''December 2070'''.&lt;br /&gt;
&lt;br /&gt;
Then we will type '''cal 12 2070.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Show the output.&lt;br /&gt;
|| This gives the calendar of '''December 2070'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
&lt;br /&gt;
man date&lt;br /&gt;
|| Users can explore the options in the''' date''' command using the '''man date''' command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we have learnt to:&lt;br /&gt;
* Use Linux commands to display the system date and time&lt;br /&gt;
* Use date command options&lt;br /&gt;
* Install '''ncal package'''&lt;br /&gt;
* View calendars using '''cal '''command&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment,&lt;br /&gt;
&lt;br /&gt;
Open the terminal: Ctrl+Alt+T keys.&lt;br /&gt;
* Type date +%R, press Enter.&lt;br /&gt;
* Type date +%U, press Enter.&lt;br /&gt;
* Type date +%j, press Enter.&lt;br /&gt;
* Type date +%q, press Enter.&lt;br /&gt;
* Type cal 06 2035, press Enter.&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by '''EduPyramids Educational Services Private Limited, SINE, IIT Bombay.'''Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Basic-Commands/English</id>
		<title>Linux-New/C2/Basic-Commands/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Basic-Commands/English"/>
				<updated>2026-01-03T13:45:17Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Basic Commands'''  '''Author: EduPyramids Team'''  '''Keywords: linux commands, shell, command interpreter, internal commands, external commands , bash...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Basic Commands'''&lt;br /&gt;
&lt;br /&gt;
'''Author: EduPyramids Team'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: linux commands, shell, command interpreter, internal commands, external commands , bash, type, path, video tutorial.'''&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue '''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the Spoken tutorial on''' Basic Commands''' in Linux.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn about:&lt;br /&gt;
* Linux commands and a command interpreter.&lt;br /&gt;
* Identifying internal and external commands in Linux.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using &lt;br /&gt;
* Ubuntu OS version 24 point zero 4&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
|| To follow this tutorial,&lt;br /&gt;
* Learners should have Ubuntu version 24 point zero 4&lt;br /&gt;
* For the prerequisite Linux tutorials please visit this website.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial&lt;br /&gt;
&lt;br /&gt;
1. bc-commands.txt&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Linux Commands'''&lt;br /&gt;
|| Now let us see what '''Linux''' '''commands''' are?&lt;br /&gt;
* Linux commands are words used to execute tasks.&lt;br /&gt;
* Most commands are short, usually no more than four characters '''(e.g. ls, who, ps).'''&lt;br /&gt;
* Commands are written in lowercase and are case-sensitive.&lt;br /&gt;
|- &lt;br /&gt;
|| Screencast:&lt;br /&gt;
&lt;br /&gt;
Press''' Ctrl, Alt '''and''' T keys '''on your''' keyboard'''&lt;br /&gt;
|| Let us open the terminal by pressing '''Ctrl, Alt, '''and '''T '''keys on the keyboard.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the''' $ prompt '''on the '''terminal '''window.&lt;br /&gt;
|| we can see a prompt ($) and a cursor blinking next to it. &lt;br /&gt;
&lt;br /&gt;
This is where we need to type in a command.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the command prompt:&lt;br /&gt;
&lt;br /&gt;
'''who &amp;gt;&amp;gt; '''press Enter&lt;br /&gt;
|| Type at the prompt '''who''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
We can see the name of the users logged in on the terminal. &lt;br /&gt;
|- &lt;br /&gt;
|| Only Narration&lt;br /&gt;
|| Do you know which entity converts these commands into actual actions?&lt;br /&gt;
&lt;br /&gt;
This job is done by the Command Interpreter called the '''shell'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Shell Program'''&lt;br /&gt;
|| &lt;br /&gt;
* A '''shell''' is a program that acts as an interface between the user and Linux.&lt;br /&gt;
* It allows us to enter commands for the operating system to execute.&lt;br /&gt;
* Linux supports multiple shells, and users can choose their preferred one.&lt;br /&gt;
* The default shell on most Linux systems, including Ubuntu, is bash.&lt;br /&gt;
* Its executable file is located at / bin/bash.&lt;br /&gt;
* Bash stands for GNU Bourne-Again Shell and it is part of the GNU suite of tools.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Shell Program'''&lt;br /&gt;
* Bash is the most popular shell, available on almost all Linux systems.&lt;br /&gt;
* Other shells include Bourne shell (sh), C Shell (csh) and Korn shell(ksh)&lt;br /&gt;
|| &lt;br /&gt;
* Bash is the most popular shell, available on almost all Linux systems.&lt;br /&gt;
* Other shells include Bourne shell , C Shell and Korn shell.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the command prompt&lt;br /&gt;
&lt;br /&gt;
'''echo $SHELL'''&lt;br /&gt;
|| Let us see which shell we are using?&lt;br /&gt;
&lt;br /&gt;
Type '''echo space dollar SHELL '''in capitals and press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to /bin/bash&lt;br /&gt;
|| The output shows '''slash bin slash bash'''( '''/bin/bash)'''&lt;br /&gt;
&lt;br /&gt;
The output shows the''' '''present shell that is being used.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Type at $: type ps'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight the output: ps is /usr/bin/ps'''&lt;br /&gt;
|| Now type: '''type space ps '''and press Enter.&lt;br /&gt;
&lt;br /&gt;
The output is shown as''' ps is /usr/bin/ps'''&lt;br /&gt;
&lt;br /&gt;
This shows that '''ps''' is a file stored in the '''usr/bin '''directory.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the''' type ps '''command.&lt;br /&gt;
|| When a command is entered, the shell searches listed directories for it. If found, the program runs; otherwise, a “command not found” error appears.&lt;br /&gt;
|- &lt;br /&gt;
|| Type '''echo $PATH'''&lt;br /&gt;
|| To see the lists of the directories stored in the PATH environment variable, &lt;br /&gt;
&lt;br /&gt;
type '''echo space dollar''' '''PATH '''in capital.&lt;br /&gt;
&lt;br /&gt;
Press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Based on how commands are executed, Linux commands are classified into two types:&lt;br /&gt;
&lt;br /&gt;
internal commands and external commands.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''External Commands'''&lt;br /&gt;
|| &lt;br /&gt;
* External commands are separate executable files located in the system directories.&lt;br /&gt;
* For example '''slash bin (/bin)''',''' slash u s r slash bin (/usr, or slash s bin. '''&lt;br /&gt;
* When we run a command, the shell searches through the dollar PATH ($PATH) variable to find the file.&lt;br /&gt;
* Then starts a new &amp;quot;child process&amp;quot; to run it.&lt;br /&gt;
* These are independent programs. &lt;br /&gt;
* We can update them or install new ones (like''' git''' or '''python''') without changing the '''shell'''.&lt;br /&gt;
* They take slightly more time and memory to launch.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Internal Commands'''&lt;br /&gt;
|| &lt;br /&gt;
* Internal commands are part of the '''shell''''s source code like '''bash'''.&lt;br /&gt;
* When we type an internal command, the shell executes it directly.&lt;br /&gt;
* They are very fast because no new process needs to be started.&lt;br /&gt;
* They often handle shell-specific tasks like changing directories or managing the environment.&lt;br /&gt;
|- &lt;br /&gt;
|| Type at the prompt: '''type''' '''echo'''&lt;br /&gt;
&lt;br /&gt;
Press Enter.&lt;br /&gt;
|| Type at the prompt, '''type '''space''' echo''' and press '''Enter'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the output.&lt;br /&gt;
|| The output shows '''echo is a shell builtin.'''&lt;br /&gt;
&lt;br /&gt;
It means '''echo''' command is an internal command.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the output.&lt;br /&gt;
&lt;br /&gt;
Type: '''type cd'''&lt;br /&gt;
|| Type, '''type '''space''' cd''' and press Enter. &lt;br /&gt;
&lt;br /&gt;
The output shows '''cd is a shell builtin.'''&lt;br /&gt;
&lt;br /&gt;
So''' cd '''is also an internal command.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| We will learn more about commands in the upcoming tutorials.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt about:&lt;br /&gt;
* Linux commands and a command interpreter.&lt;br /&gt;
* Identifying internal and external commands in Linux&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 12'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment,&lt;br /&gt;
&lt;br /&gt;
Run the following commands and check the output &lt;br /&gt;
* '''type exit'''&lt;br /&gt;
* '''ls '''&lt;br /&gt;
* '''type cp'''&lt;br /&gt;
|| As an Assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 13'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids educational services private limited SINE IIT Bombay. Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Synaptic-Package-Manager/English</id>
		<title>Linux-New/C2/Synaptic-Package-Manager/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Synaptic-Package-Manager/English"/>
				<updated>2026-01-03T11:41:09Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
'''TITLE: Synaptic Package Manager '''&lt;br /&gt;
&lt;br /&gt;
'''Authors:''' EduPyramids Team&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' Ubuntu Linux, synaptic package manager, vlc media player, icons, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue '''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the spoken tutorial on '''Synaptic Package Manager in Linux.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
''' Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Understand what '''Synaptic Package Manager '''is and install it using the terminal&lt;br /&gt;
* Configure '''Synaptic Package Manager'''&lt;br /&gt;
* Install an application using '''Synaptic Package Manager'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu OS '''version 24.04 and&lt;br /&gt;
&lt;br /&gt;
A working '''internet''' connection.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
''' Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
|| To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
learners should be familiar with basic Linux operations.&lt;br /&gt;
&lt;br /&gt;
learners should have Ubuntu version 24.04 installed.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite '''Linux tutorials '''please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5Synaptic Package Manager '''&lt;br /&gt;
|| '''Synaptic Package Manager''' is a graphical front-end for APT(Advanced Package Tool.)&lt;br /&gt;
&lt;br /&gt;
It provides a GUI for package management instead of '''apt-get''' command line.&lt;br /&gt;
|- &lt;br /&gt;
|| Press '''Ctrl, Alt '''and''' T Keys'''&lt;br /&gt;
&lt;br /&gt;
'''Type: sudo apt update '''and press''' enter'''&lt;br /&gt;
&lt;br /&gt;
'''Type: sudo apt install synaptic '''and press '''Enter key.'''&lt;br /&gt;
|| By default, '''Synaptic Package Manager''' is not pre-installed in the system.&lt;br /&gt;
&lt;br /&gt;
Let us install it using the Terminal.Open the '''Terminal. '''&lt;br /&gt;
&lt;br /&gt;
First let’s update the''' local package index'''.&lt;br /&gt;
&lt;br /&gt;
Type '''sudo apt update''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
If prompted, enter the admin password and press Enter.&lt;br /&gt;
&lt;br /&gt;
Type '''sudo apt install synaptic '''and press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the information on the terminal&lt;br /&gt;
&lt;br /&gt;
'''Type y'''&lt;br /&gt;
|| '''Terminal '''displays list of '''packages '''to be installed and more information.&lt;br /&gt;
&lt;br /&gt;
It asks '''Do you want to continue?'''&lt;br /&gt;
&lt;br /&gt;
Type''' y '''and press '''Enter''' to continue.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the installation process on the terminal.&lt;br /&gt;
&lt;br /&gt;
Packages getting downloaded.&lt;br /&gt;
&lt;br /&gt;
Success message on the terminal&lt;br /&gt;
&lt;br /&gt;
Click on X icon.&lt;br /&gt;
|| The installation begins now.&lt;br /&gt;
&lt;br /&gt;
It may take some time to finish.&lt;br /&gt;
&lt;br /&gt;
Now we have successfully installed '''Synaptic Package Manager'''.&lt;br /&gt;
&lt;br /&gt;
Let us close the '''terminal'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight output.Click Show AppsEnter password&lt;br /&gt;
|| Click '''Show Apps''' and search for '''Synaptic Package'''.&lt;br /&gt;
&lt;br /&gt;
Click to open it and enter the '''admin password''' when prompted.&lt;br /&gt;
&lt;br /&gt;
Click on '''Authenticate''' button&lt;br /&gt;
|- &lt;br /&gt;
|| Cursor on '''Synaptic Package Manager '''&lt;br /&gt;
|| '''Synaptic Package Manager '''window opens.&lt;br /&gt;
&lt;br /&gt;
Now let us configure '''Proxy''' and '''Repository'''.We have to do this before installing an '''application''' or '''package'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on Settings Click '''Preferences'''Cursor on '''Preferences'''Click on '''Network'''&lt;br /&gt;
|| From the top '''menu, click '''on '''Settings''' and select '''Preferences'''.'''Preferences '''window opens.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Network Tab''' to configure the''' proxy '''settings.&lt;br /&gt;
|- &lt;br /&gt;
|| Click '''Direct connection to the Internet.Click ApplyClick OK'''&lt;br /&gt;
|| From the '''Proxy Server '''options choose '''Direct connection to the Internet'''.'''Click '''the '''Apply '''button at bottom right corner.&lt;br /&gt;
&lt;br /&gt;
Click '''OK '''to close the '''Preferences '''window.&lt;br /&gt;
|- &lt;br /&gt;
|| Click Settings and select RepositoriesClick on '''Download fromClick Server for India'''Click the '''Close '''button.&lt;br /&gt;
|| Again, click on '''Settings '''and select '''Repositories'''.The '''Software and Updates '''window opens.Click on the '''Download from '''dropdown.&lt;br /&gt;
&lt;br /&gt;
The '''Server for India''' option is selected by default, keep it as it is.This dropdown shows a list of''' Servers '''across the globe.&lt;br /&gt;
&lt;br /&gt;
Click the '''Close '''button.&lt;br /&gt;
|- &lt;br /&gt;
|| At the top left corner, click on '''Reload '''button.&lt;br /&gt;
|| If using '''Synaptic Package Manager '''for the first time, reload the packages.&lt;br /&gt;
&lt;br /&gt;
At the top left corner, click on '''Reload '''button.&lt;br /&gt;
&lt;br /&gt;
We see packages transferring over the internet and updating in real time.&lt;br /&gt;
|- &lt;br /&gt;
|| Type VLCClick Search buttonShow packages &lt;br /&gt;
&lt;br /&gt;
To select the VLC''' package''', right click on the check box.&lt;br /&gt;
|| We will now install '''VLC''' '''Media''' '''Player''' as an example application.&lt;br /&gt;
&lt;br /&gt;
In the '''Search '''window, type '''VLC '''and '''click '''on the '''Search''' button.All the '''VLC '''packages to be downloaded will be listed.&lt;br /&gt;
&lt;br /&gt;
To select the relevant '''VLC package''', right click on the check box.&lt;br /&gt;
|- &lt;br /&gt;
|| From the menu select Mark for Installation.Synaptic pop-up appears.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Mark '''button.Click on the '''Apply''' button on the toolbar.&lt;br /&gt;
|| From the menu select '''Mark for Installation'''.Synaptic pop-up appears, to allow all dependencies to click on the '''Mark '''button.Click on the '''Apply''' button on the '''toolbar'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Cursor on the window.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
Point to the '''Applying Changes '''window.&lt;br /&gt;
&lt;br /&gt;
Click on the Close button.&lt;br /&gt;
|| A '''Summary''' window appears, showing the details of the '''packages''' to be installed.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Apply''' button at the bottom.&lt;br /&gt;
&lt;br /&gt;
It may take some time to install the packages.&lt;br /&gt;
&lt;br /&gt;
The''' Applying Changes '''window will be closed as soon as the installation gets complete.Click on the '''Close''' button.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Go to '''Show Apps''', in the '''search bar,''' Type: '''VLC '''media player and click the icon.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Understand what''' Synaptic Package Manager '''is and install it using the terminal&lt;br /&gt;
* Configure '''Synaptic Package Manager'''&lt;br /&gt;
* Install an application using '''Synaptic Package Manager'''&lt;br /&gt;
|| With this we come to the end of this '''tutorial.''' Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment,'''&lt;br /&gt;
* Install the gedit and Audacity using Synaptic Package Manager&lt;br /&gt;
|| As an Assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This '''Spoken Tutorial''' is brought to you by '''EduPyramids Educational Services Private Limited SINE IIT Bombay.''' Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Linux-New/C2/Synaptic-Package-Manager/English</id>
		<title>Linux-New/C2/Synaptic-Package-Manager/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Linux-New/C2/Synaptic-Package-Manager/English"/>
				<updated>2026-01-03T11:35:03Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
'''TITLE: Synaptic Package Manager '''&lt;br /&gt;
&lt;br /&gt;
'''Authors:''' EduPyramids Team&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' Ubuntu Linux, synaptic package manager, vlc media player, icons, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue '''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the spoken tutorial on '''Synaptic Package Manager in Linux.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
''' Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Understand what '''Synaptic Package Manager '''is and install it using the terminal&lt;br /&gt;
* Configure '''Synaptic Package Manager'''&lt;br /&gt;
* Install an application using '''Synaptic Package Manager'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu OS '''version 24.04 and&lt;br /&gt;
&lt;br /&gt;
A working '''internet''' connection.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4 Pre-requisites'''&lt;br /&gt;
&lt;br /&gt;
[https://edupyramids.org/ https://EduPyramids.org]&lt;br /&gt;
|| To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
learners should be familiar with basic Linux operations.&lt;br /&gt;
&lt;br /&gt;
learners should have Ubuntu version 24.04 installed.&lt;br /&gt;
&lt;br /&gt;
For the prerequisite '''Linux tutorials '''please visit this website.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5Synaptic Package Manager '''&lt;br /&gt;
|| '''Synaptic Package Manager''' is a graphical front-end for APT(Advanced Package Tool.)&lt;br /&gt;
&lt;br /&gt;
It provides a GUI for package management instead of '''apt-get''' command line.&lt;br /&gt;
|- &lt;br /&gt;
|| Press '''Ctrl, Alt '''and''' T Keys'''&lt;br /&gt;
&lt;br /&gt;
'''Type: sudo apt update '''and press''' enter'''&lt;br /&gt;
&lt;br /&gt;
'''Type: sudo apt install synaptic '''and press '''Enter key.'''&lt;br /&gt;
|| By default, '''Synaptic Package Manager''' is not pre-installed in the system.&lt;br /&gt;
&lt;br /&gt;
Let us install it using the Terminal.Open the '''Terminal. '''&lt;br /&gt;
&lt;br /&gt;
First let’s update the''' local package index'''.&lt;br /&gt;
&lt;br /&gt;
Type '''sudo apt update''' and press Enter.&lt;br /&gt;
&lt;br /&gt;
If prompted, enter the admin password and press Enter.&lt;br /&gt;
&lt;br /&gt;
Type '''sudo apt install synaptic '''and press Enter.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the information on the terminal&lt;br /&gt;
&lt;br /&gt;
'''Type y'''&lt;br /&gt;
|| '''Terminal '''displays list of '''packages '''to be installed and more information.&lt;br /&gt;
&lt;br /&gt;
It asks '''Do you want to continue?'''&lt;br /&gt;
&lt;br /&gt;
Type''' y '''and press '''Enter''' to continue.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the installation process on the terminal.&lt;br /&gt;
&lt;br /&gt;
Packages getting downloaded.&lt;br /&gt;
&lt;br /&gt;
Success message on the terminal&lt;br /&gt;
&lt;br /&gt;
Click on X icon.&lt;br /&gt;
|| The installation begins now.&lt;br /&gt;
&lt;br /&gt;
It may take some time to finish.&lt;br /&gt;
&lt;br /&gt;
Now we have successfully installed '''Synaptic Package Manager'''.&lt;br /&gt;
&lt;br /&gt;
Let us close the '''terminal'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight output.Click Show AppsEnter password&lt;br /&gt;
|| Click '''Show Apps''' and search for '''Synaptic Package'''.&lt;br /&gt;
&lt;br /&gt;
Click to open it and enter the '''admin password''' when prompted.&lt;br /&gt;
&lt;br /&gt;
Click on '''Authenticate''' button&lt;br /&gt;
|- &lt;br /&gt;
|| Cursor on '''Synaptic Package Manager '''&lt;br /&gt;
|| '''Synaptic Package Manager '''window opens.&lt;br /&gt;
&lt;br /&gt;
Now let us configure '''Proxy''' and '''Repository'''.We have to do this before installing an '''application''' or '''package'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on Settings Click '''Preferences'''Cursor on '''Preferences'''Click on '''Network'''&lt;br /&gt;
|| From the top '''menu, click '''on '''Settings''' and select '''Preferences'''.'''Preferences '''window opens.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Network Tab''' to configure the''' proxy '''settings.&lt;br /&gt;
|- &lt;br /&gt;
|| Click '''Direct connection to the Internet.Click ApplyClick OK'''&lt;br /&gt;
|| From the '''Proxy Server '''options choose '''Direct connection to the Internet'''.'''Click '''the '''Apply '''button at bottom right corner.&lt;br /&gt;
&lt;br /&gt;
Click '''OK '''to close the '''Preferences '''window.&lt;br /&gt;
|- &lt;br /&gt;
|| Click Settings and select RepositoriesClick on '''Download fromClick Server for India'''Click the '''Close '''button.&lt;br /&gt;
|| Again, click on '''Settings '''and select '''Repositories'''.The '''Software and Updates '''window opens.Click on the '''Download from '''dropdown.&lt;br /&gt;
&lt;br /&gt;
The '''Server for India''' option is selected by default, keep it as it is.This dropdown shows a list of''' Servers '''across the globe.&lt;br /&gt;
&lt;br /&gt;
Click the '''Close '''button.&lt;br /&gt;
|- &lt;br /&gt;
|| At the top left corner, click on '''Reload '''button.&lt;br /&gt;
|| If using '''Synaptic Package Manager '''for the first time, reload the packages.&lt;br /&gt;
&lt;br /&gt;
At the top left corner, click on '''Reload '''button.&lt;br /&gt;
&lt;br /&gt;
We see packages transferring over the internet and updating in real time.&lt;br /&gt;
|- &lt;br /&gt;
|| Type VLCClick Search buttonShow packages &lt;br /&gt;
&lt;br /&gt;
To select the VLC''' package''', right click on the check box.&lt;br /&gt;
|| We will now install '''VLC''' '''Media''' '''Player''' as an example application.&lt;br /&gt;
&lt;br /&gt;
In the '''Search '''window, type '''VLC '''and '''click '''on the '''Search''' button.All the '''VLC '''packages to be downloaded will be listed.&lt;br /&gt;
&lt;br /&gt;
To select the relevant '''VLC package''', right click on the check box.&lt;br /&gt;
|- &lt;br /&gt;
|| From the menu select Mark for Installation.Synaptic pop-up appears.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Mark '''button.Click on the '''Apply''' button on the toolbar.&lt;br /&gt;
|| From the menu select '''Mark for Installation'''.Synaptic pop-up appears, to allow all dependencies to click on the '''Mark '''button.Click on the '''Apply''' button on the '''toolbar'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Cursor on the window.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Apply''' button.&lt;br /&gt;
&lt;br /&gt;
Point to the '''Applying Changes '''window.&lt;br /&gt;
&lt;br /&gt;
Click on the Close button.&lt;br /&gt;
|| A '''Summary''' window appears, showing the details of the '''packages''' to be installed.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Apply''' button at the bottom.&lt;br /&gt;
&lt;br /&gt;
It may take some time to install the packages.&lt;br /&gt;
&lt;br /&gt;
The''' Applying Changes '''window will be closed as soon as the installation gets complete.Click on the '''Close''' button.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Go to '''Show Apps''', in the '''search bar,''' Type: '''VLC '''media player and click the icon.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''In this tutorial, we have learnt to:&lt;br /&gt;
* Understand what''' Synaptic Package Manager '''is and install it using the terminal&lt;br /&gt;
* Configure '''Synaptic Package Manager'''&lt;br /&gt;
* Install an application using '''Synaptic Package Manager'''&lt;br /&gt;
|| With this we come to the end of this '''tutorial.''' Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''As an Assignment,'''&lt;br /&gt;
* Install the gedit and Audacity using Synaptic Package Manager&lt;br /&gt;
|| As an Assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This '''Spoken Tutorial''' is brought to you by '''EduPyramids Educational Services Private Limited SINE IIT Bombay.''' Thank you.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/FreeCAD/C3/Working-with-STL-Files-in-FreeCAD/English</id>
		<title>FreeCAD/C3/Working-with-STL-Files-in-FreeCAD/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/FreeCAD/C3/Working-with-STL-Files-in-FreeCAD/English"/>
				<updated>2025-12-01T06:57:55Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Working with STL Files in FreeCAD.'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Jakub Michalski.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: FreeCAD, STL, mesh, shape, solid, pocket, 3D modeling, video tutorial.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1 '''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Working with STL Files''' in '''FreeCAD'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Export a FreeCAD model to STL format.&lt;br /&gt;
* Import an STL file into FreeCAD.&lt;br /&gt;
* Convert an STL mesh into a solid.&lt;br /&gt;
* Refine the solid and make modifications.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3 '''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
* '''Windows 11'''&lt;br /&gt;
* '''FreeCAD version 1.0.0'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4 '''&lt;br /&gt;
&lt;br /&gt;
'''Prerequisite'''&lt;br /&gt;
|| To follow this tutorial, learners should know the basics of the '''FreeCAD''' interface and navigation. &lt;br /&gt;
|- &lt;br /&gt;
|| Click '''Help''' menu&lt;br /&gt;
&lt;br /&gt;
In the drop down click '''Start'''.&lt;br /&gt;
|| Let’s open FreeCAD.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Help''' menu.&lt;br /&gt;
&lt;br /&gt;
In the drop down click '''Start''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| In the start menu, scroll down.&lt;br /&gt;
&lt;br /&gt;
Under examples, select the PartDesignExample.FCStd file.&lt;br /&gt;
|| Scroll down to see the examples.&lt;br /&gt;
&lt;br /&gt;
Under examples select the '''PartDesignExample.FCStd '''file.&lt;br /&gt;
&lt;br /&gt;
'''PartDesignExample''' model loads in a new file.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the body in the model tree.&lt;br /&gt;
&lt;br /&gt;
Select file and click export.&lt;br /&gt;
|| Now let us export the '''FreeCAD''' file into '''STL '''format.&lt;br /&gt;
&lt;br /&gt;
Select the '''Body''' in the '''Model''' tree. Go to '''File '''and select '''Export''' or press''' Ctrl + E.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Select the Save as type as STL Mesh (*.stl * .ast) format.&lt;br /&gt;
&lt;br /&gt;
Type the File name as Example.stl and click Save.&lt;br /&gt;
|| Export File dialog box opens.&lt;br /&gt;
&lt;br /&gt;
In the dialog box, select the '''Save as type''' as '''STL Mesh '''format.&lt;br /&gt;
&lt;br /&gt;
Type the File name as '''Example''' and click '''Save'''.&lt;br /&gt;
&lt;br /&gt;
Users can save the file with some other name as well. This exports the part as an STL mesh file.&lt;br /&gt;
|- &lt;br /&gt;
|| Select file and click new.&lt;br /&gt;
|| Now, let’s create a new file.Go to '''File''' click '''New'''&lt;br /&gt;
|- &lt;br /&gt;
|| Select file and click import.&lt;br /&gt;
&lt;br /&gt;
Set the file type to '''STL''' Mesh '''(*.stl *.STL *.ast *.AST)'''&lt;br /&gt;
&lt;br /&gt;
Select the '''Example.stl''' file. Click '''Open'''.&lt;br /&gt;
|| In the new file, go to '''File''' and select '''Import'''.&lt;br /&gt;
&lt;br /&gt;
Set the file type to '''STL Mesh.'''&lt;br /&gt;
&lt;br /&gt;
Select the''' Example.stl''' file and click '''Open'''&lt;br /&gt;
|- &lt;br /&gt;
|| STL Model in 3D view&lt;br /&gt;
|| The model is imported into the workspace.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the dropdown next to Draw style.&lt;br /&gt;
&lt;br /&gt;
Select Flat lines option.&lt;br /&gt;
|| By default the draw style is set to '''Shaded'''.&lt;br /&gt;
&lt;br /&gt;
Select the dropdown next to''' Draw style''' and select''' Flat lines''' option.This helps to clearly see the triangular meshes.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to '''Part''' '''Workbench'''&lt;br /&gt;
|| Switch to the '''Part Workbench'''.&lt;br /&gt;
|- &lt;br /&gt;
|| In the model tree select the model mesh.Go to the '''Part''' menu.&lt;br /&gt;
&lt;br /&gt;
Click '''Create shape from mesh''' option.&lt;br /&gt;
|| In the model tree select the model mesh.Go to the '''Part''' menu and click '''Create shape from mesh''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the pop window&lt;br /&gt;
&lt;br /&gt;
Click OK.&lt;br /&gt;
|| '''Shape From Mesh''' pop up window opens.&lt;br /&gt;
&lt;br /&gt;
Let’s leave the settings as default and click '''OK.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Show the model tree.&lt;br /&gt;
&lt;br /&gt;
Click the eye icon to hide the mesh. &lt;br /&gt;
|| A new '''Shape''' object is created in the tree.Hide the old '''Mesh''' object by clicking on its eye icon.&lt;br /&gt;
|- &lt;br /&gt;
|| Show in the model.&lt;br /&gt;
|| This shape now allows selection of faces, edges, and vertices.We can use it for measurements or further modeling. &lt;br /&gt;
|- &lt;br /&gt;
|| Select the shape object from the model tree.&lt;br /&gt;
&lt;br /&gt;
Select part. Click Convert to solid.&lt;br /&gt;
|| To create a solid, select the shape object .&lt;br /&gt;
&lt;br /&gt;
Go to the''' Part''' menu and click''' Convert to solid'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the model tree.&lt;br /&gt;
&lt;br /&gt;
Click the eye icon to hide the Shape object. &lt;br /&gt;
|| A new Solid object appears in the tree.Hide the Shape object as before.&lt;br /&gt;
&lt;br /&gt;
Now we can see only the Solid object&lt;br /&gt;
|- &lt;br /&gt;
|| Select the solid object.&lt;br /&gt;
&lt;br /&gt;
Select the '''Part''' menu. Click '''Check''' '''geometry'''.&lt;br /&gt;
&lt;br /&gt;
Check the box for Advanced shape content and leave others as default.&lt;br /&gt;
&lt;br /&gt;
Click Run Check in the menu.&lt;br /&gt;
&lt;br /&gt;
Select the drop down of the shape content.&lt;br /&gt;
&lt;br /&gt;
Show the solid.&lt;br /&gt;
&lt;br /&gt;
Click '''Close'''.&lt;br /&gt;
|| To check if it’s a valid solid, select the solid object from the model tree.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Part''' menu and select '''Check Geometry'''.&lt;br /&gt;
&lt;br /&gt;
In the left panel, '''Settings''' menu opens with check boxes.&lt;br /&gt;
&lt;br /&gt;
Check the box for '''Advanced '''shape content and leave others as default.Click the''' Run Check''' button in the menu..&lt;br /&gt;
&lt;br /&gt;
Now select the drop down of the shape content.&lt;br /&gt;
&lt;br /&gt;
You can see the shape type as solid.&lt;br /&gt;
&lt;br /&gt;
Now click the '''Close''' button. &lt;br /&gt;
|- &lt;br /&gt;
|| Select the Solid object.&lt;br /&gt;
&lt;br /&gt;
Select the Part menu.&lt;br /&gt;
&lt;br /&gt;
Click create a copy.&lt;br /&gt;
&lt;br /&gt;
Click refine shape.&lt;br /&gt;
|| To remove redundant faces, select the solid object from the model tree.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Part '''menu, click '''Create a copy'''.&lt;br /&gt;
&lt;br /&gt;
From the submenu select '''Refine shape'''.This cleans up planar faces left by the mesh conversion.&lt;br /&gt;
|- &lt;br /&gt;
|| Model showing refined solid&lt;br /&gt;
|| The refined model now appears smoother and cleaner.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to Part Design Workbench&lt;br /&gt;
|| Let’s now switch to the''' Part Design Workbench''' to modify the solid.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the refined solid.&lt;br /&gt;
&lt;br /&gt;
Click '''Create''' '''Body'''.&lt;br /&gt;
|| Select the refined solid in the tree.Click on the '''Create Body''' tool.This converts it into a '''BaseFeature '''under the '''Body.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the workspace.&lt;br /&gt;
&lt;br /&gt;
Set the view to top.&lt;br /&gt;
&lt;br /&gt;
Select the bottom face of the hole. Click '''Create''' '''Sketch'''.&lt;br /&gt;
|| Click on the blank space to deselect the selection.&lt;br /&gt;
&lt;br /&gt;
Set the view to top.&lt;br /&gt;
&lt;br /&gt;
Select the bottom face of the hole and click '''Create Sketch'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the '''Toggle grid '''tool.&lt;br /&gt;
&lt;br /&gt;
Select the '''Toggle snap''' tool. &lt;br /&gt;
&lt;br /&gt;
Select the drop down near the toggle snap tool.&lt;br /&gt;
&lt;br /&gt;
In the drop down enable '''Snap to grid.'''&lt;br /&gt;
|| In the''' Sketcher''', let's draw a circle in the middle of the hole.&lt;br /&gt;
&lt;br /&gt;
Select the''' Toggle grid''' tool.&lt;br /&gt;
&lt;br /&gt;
Select the''' Toggle snap''' tool. &lt;br /&gt;
&lt;br /&gt;
Now select the drop down near the Toggle snap tool.&lt;br /&gt;
&lt;br /&gt;
In the drop down ensure '''Snap to grid''' is enabled.&lt;br /&gt;
|- &lt;br /&gt;
|| Now select toggle construction geometry tool.&lt;br /&gt;
&lt;br /&gt;
Show the tools.&lt;br /&gt;
|| Now select '''Toggle construction geometry''' tool.&lt;br /&gt;
&lt;br /&gt;
Some sketcher tools now appear in blue colour.&lt;br /&gt;
&lt;br /&gt;
This mode is used to draw construction lines.&lt;br /&gt;
&lt;br /&gt;
These construction lines do not appear in the final sketch.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the '''View section''' tool.&lt;br /&gt;
&lt;br /&gt;
Select the '''Create line''' tool.&lt;br /&gt;
&lt;br /&gt;
Zoom in to the hole.&lt;br /&gt;
|| Select the '''View section''' tool.&lt;br /&gt;
&lt;br /&gt;
Select the''' Create line''' tool.&lt;br /&gt;
&lt;br /&gt;
Zoom in to the hole.&lt;br /&gt;
|- &lt;br /&gt;
|| Place the cursor where the left side of the circle touches the grid.&lt;br /&gt;
&lt;br /&gt;
Left click and draw a straight line to the right end of the circle.&lt;br /&gt;
&lt;br /&gt;
Place the cursor where the top side of the circle touches the grid.&lt;br /&gt;
&lt;br /&gt;
Left click and draw a straight line to the bottom of the circle.&lt;br /&gt;
|| Place the cursor where the left side of the circle touches the grid.&lt;br /&gt;
&lt;br /&gt;
Left click and draw a straight line to the right end of the circle.&lt;br /&gt;
&lt;br /&gt;
Do the same to draw a line from top to bottom.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the '''Toggle construction geometry''' tool.&lt;br /&gt;
|| Now select the''' Toggle construction geometry''' tool.&lt;br /&gt;
&lt;br /&gt;
This exits the construction mode.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the create circle tool. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place the cursor near the intersection of the two construction lines. &lt;br /&gt;
|| Select the '''Create circle''' tool. &lt;br /&gt;
&lt;br /&gt;
Place the cursor near the intersection of the two construction lines. &lt;br /&gt;
&lt;br /&gt;
One of the lines will turn yellow in color.&lt;br /&gt;
&lt;br /&gt;
You can see the constrain symmetric symbol appears near the cursor.&lt;br /&gt;
|- &lt;br /&gt;
|| Draw a circle.&lt;br /&gt;
&lt;br /&gt;
Select the '''dimension''' tool.&lt;br /&gt;
&lt;br /&gt;
Set the '''Diameter''' to 25mm.&lt;br /&gt;
&lt;br /&gt;
Click close.&lt;br /&gt;
|| Left click in the middle and draw a circle.&lt;br /&gt;
&lt;br /&gt;
Set the diameter to 25 mm using the '''Dimension''' tool.&lt;br /&gt;
&lt;br /&gt;
Close the sketcher.&lt;br /&gt;
|- &lt;br /&gt;
|| Select Pocket tool.&lt;br /&gt;
&lt;br /&gt;
Select the type as through all.&lt;br /&gt;
&lt;br /&gt;
Click ok.&lt;br /&gt;
|| With the sketch selected, click on the '''Pocket''' tool.In the dialog box, set the Type to '''Through All'''.Click '''OK'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the model.&lt;br /&gt;
|| A hole is now created through the solid.This shows how we can edit '''STL''' models in '''FreeCAD''' after conversion.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the file and click '''Save As.'''&lt;br /&gt;
&lt;br /&gt;
Enter the name as '''Example_edited.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save'''.&lt;br /&gt;
|| To save the file, go to '''File''' and click '''Save As'''.Enter the file name as '''Example_edited.FCStd''' and click '''Save'''.&lt;br /&gt;
&lt;br /&gt;
Users may save the file with a different name.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt to:&lt;br /&gt;
* Export a FreeCAD model to STL format.&lt;br /&gt;
* Import an STL file into FreeCAD.&lt;br /&gt;
* Convert an STL mesh to a solid.&lt;br /&gt;
* Refine the solid and modify it in Part Design.&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
# Import '''Example.stl''' file into '''FreeCAD'''.&lt;br /&gt;
# Convert it to a solid and refine it.&lt;br /&gt;
# Create a circle of 30 mm in the center of the hole&lt;br /&gt;
# Extrude the sketch 70 mm.&lt;br /&gt;
|| As an '''assignment''', please do the following:&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Thank You'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private limited SINE IIT Bombay&lt;br /&gt;
&lt;br /&gt;
Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/FreeCAD/C3/Working-with-STL-Files-in-FreeCAD/English</id>
		<title>FreeCAD/C3/Working-with-STL-Files-in-FreeCAD/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/FreeCAD/C3/Working-with-STL-Files-in-FreeCAD/English"/>
				<updated>2025-12-01T06:57:01Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Working with STL Files in FreeCAD''' '''Author: Jakub Michalski''' '''Keywords: FreeCAD, STL, mesh, shape, solid, pocket, 3D modeling, video tutorial.'...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Working with STL Files in FreeCAD'''&lt;br /&gt;
'''Author: Jakub Michalski'''&lt;br /&gt;
'''Keywords: FreeCAD, STL, mesh, shape, solid, pocket, 3D modeling, video tutorial.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1 '''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Working with STL Files''' in '''FreeCAD'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Export a FreeCAD model to STL format.&lt;br /&gt;
* Import an STL file into FreeCAD.&lt;br /&gt;
* Convert an STL mesh into a solid.&lt;br /&gt;
* Refine the solid and make modifications.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3 '''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
* '''Windows 11'''&lt;br /&gt;
* '''FreeCAD version 1.0.0'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4 '''&lt;br /&gt;
&lt;br /&gt;
'''Prerequisite'''&lt;br /&gt;
|| To follow this tutorial, learners should know the basics of the '''FreeCAD''' interface and navigation. &lt;br /&gt;
|- &lt;br /&gt;
|| Click '''Help''' menu&lt;br /&gt;
&lt;br /&gt;
In the drop down click '''Start'''.&lt;br /&gt;
|| Let’s open FreeCAD.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Help''' menu.&lt;br /&gt;
&lt;br /&gt;
In the drop down click '''Start''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| In the start menu, scroll down.&lt;br /&gt;
&lt;br /&gt;
Under examples, select the PartDesignExample.FCStd file.&lt;br /&gt;
|| Scroll down to see the examples.&lt;br /&gt;
&lt;br /&gt;
Under examples select the '''PartDesignExample.FCStd '''file.&lt;br /&gt;
&lt;br /&gt;
'''PartDesignExample''' model loads in a new file.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the body in the model tree.&lt;br /&gt;
&lt;br /&gt;
Select file and click export.&lt;br /&gt;
|| Now let us export the '''FreeCAD''' file into '''STL '''format.&lt;br /&gt;
&lt;br /&gt;
Select the '''Body''' in the '''Model''' tree. Go to '''File '''and select '''Export''' or press''' Ctrl + E.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Select the Save as type as STL Mesh (*.stl * .ast) format.&lt;br /&gt;
&lt;br /&gt;
Type the File name as Example.stl and click Save.&lt;br /&gt;
|| Export File dialog box opens.&lt;br /&gt;
&lt;br /&gt;
In the dialog box, select the '''Save as type''' as '''STL Mesh '''format.&lt;br /&gt;
&lt;br /&gt;
Type the File name as '''Example''' and click '''Save'''.&lt;br /&gt;
&lt;br /&gt;
Users can save the file with some other name as well. This exports the part as an STL mesh file.&lt;br /&gt;
|- &lt;br /&gt;
|| Select file and click new.&lt;br /&gt;
|| Now, let’s create a new file.Go to '''File''' click '''New'''&lt;br /&gt;
|- &lt;br /&gt;
|| Select file and click import.&lt;br /&gt;
&lt;br /&gt;
Set the file type to '''STL''' Mesh '''(*.stl *.STL *.ast *.AST)'''&lt;br /&gt;
&lt;br /&gt;
Select the '''Example.stl''' file. Click '''Open'''.&lt;br /&gt;
|| In the new file, go to '''File''' and select '''Import'''.&lt;br /&gt;
&lt;br /&gt;
Set the file type to '''STL Mesh.'''&lt;br /&gt;
&lt;br /&gt;
Select the''' Example.stl''' file and click '''Open'''&lt;br /&gt;
|- &lt;br /&gt;
|| STL Model in 3D view&lt;br /&gt;
|| The model is imported into the workspace.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the dropdown next to Draw style.&lt;br /&gt;
&lt;br /&gt;
Select Flat lines option.&lt;br /&gt;
|| By default the draw style is set to '''Shaded'''.&lt;br /&gt;
&lt;br /&gt;
Select the dropdown next to''' Draw style''' and select''' Flat lines''' option.This helps to clearly see the triangular meshes.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to '''Part''' '''Workbench'''&lt;br /&gt;
|| Switch to the '''Part Workbench'''.&lt;br /&gt;
|- &lt;br /&gt;
|| In the model tree select the model mesh.Go to the '''Part''' menu.&lt;br /&gt;
&lt;br /&gt;
Click '''Create shape from mesh''' option.&lt;br /&gt;
|| In the model tree select the model mesh.Go to the '''Part''' menu and click '''Create shape from mesh''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the pop window&lt;br /&gt;
&lt;br /&gt;
Click OK.&lt;br /&gt;
|| '''Shape From Mesh''' pop up window opens.&lt;br /&gt;
&lt;br /&gt;
Let’s leave the settings as default and click '''OK.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Show the model tree.&lt;br /&gt;
&lt;br /&gt;
Click the eye icon to hide the mesh. &lt;br /&gt;
|| A new '''Shape''' object is created in the tree.Hide the old '''Mesh''' object by clicking on its eye icon.&lt;br /&gt;
|- &lt;br /&gt;
|| Show in the model.&lt;br /&gt;
|| This shape now allows selection of faces, edges, and vertices.We can use it for measurements or further modeling. &lt;br /&gt;
|- &lt;br /&gt;
|| Select the shape object from the model tree.&lt;br /&gt;
&lt;br /&gt;
Select part. Click Convert to solid.&lt;br /&gt;
|| To create a solid, select the shape object .&lt;br /&gt;
&lt;br /&gt;
Go to the''' Part''' menu and click''' Convert to solid'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the model tree.&lt;br /&gt;
&lt;br /&gt;
Click the eye icon to hide the Shape object. &lt;br /&gt;
|| A new Solid object appears in the tree.Hide the Shape object as before.&lt;br /&gt;
&lt;br /&gt;
Now we can see only the Solid object&lt;br /&gt;
|- &lt;br /&gt;
|| Select the solid object.&lt;br /&gt;
&lt;br /&gt;
Select the '''Part''' menu. Click '''Check''' '''geometry'''.&lt;br /&gt;
&lt;br /&gt;
Check the box for Advanced shape content and leave others as default.&lt;br /&gt;
&lt;br /&gt;
Click Run Check in the menu.&lt;br /&gt;
&lt;br /&gt;
Select the drop down of the shape content.&lt;br /&gt;
&lt;br /&gt;
Show the solid.&lt;br /&gt;
&lt;br /&gt;
Click '''Close'''.&lt;br /&gt;
|| To check if it’s a valid solid, select the solid object from the model tree.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Part''' menu and select '''Check Geometry'''.&lt;br /&gt;
&lt;br /&gt;
In the left panel, '''Settings''' menu opens with check boxes.&lt;br /&gt;
&lt;br /&gt;
Check the box for '''Advanced '''shape content and leave others as default.Click the''' Run Check''' button in the menu..&lt;br /&gt;
&lt;br /&gt;
Now select the drop down of the shape content.&lt;br /&gt;
&lt;br /&gt;
You can see the shape type as solid.&lt;br /&gt;
&lt;br /&gt;
Now click the '''Close''' button. &lt;br /&gt;
|- &lt;br /&gt;
|| Select the Solid object.&lt;br /&gt;
&lt;br /&gt;
Select the Part menu.&lt;br /&gt;
&lt;br /&gt;
Click create a copy.&lt;br /&gt;
&lt;br /&gt;
Click refine shape.&lt;br /&gt;
|| To remove redundant faces, select the solid object from the model tree.&lt;br /&gt;
&lt;br /&gt;
Go to the '''Part '''menu, click '''Create a copy'''.&lt;br /&gt;
&lt;br /&gt;
From the submenu select '''Refine shape'''.This cleans up planar faces left by the mesh conversion.&lt;br /&gt;
|- &lt;br /&gt;
|| Model showing refined solid&lt;br /&gt;
|| The refined model now appears smoother and cleaner.&lt;br /&gt;
|- &lt;br /&gt;
|| Switch to Part Design Workbench&lt;br /&gt;
|| Let’s now switch to the''' Part Design Workbench''' to modify the solid.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the refined solid.&lt;br /&gt;
&lt;br /&gt;
Click '''Create''' '''Body'''.&lt;br /&gt;
|| Select the refined solid in the tree.Click on the '''Create Body''' tool.This converts it into a '''BaseFeature '''under the '''Body.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the workspace.&lt;br /&gt;
&lt;br /&gt;
Set the view to top.&lt;br /&gt;
&lt;br /&gt;
Select the bottom face of the hole. Click '''Create''' '''Sketch'''.&lt;br /&gt;
|| Click on the blank space to deselect the selection.&lt;br /&gt;
&lt;br /&gt;
Set the view to top.&lt;br /&gt;
&lt;br /&gt;
Select the bottom face of the hole and click '''Create Sketch'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the '''Toggle grid '''tool.&lt;br /&gt;
&lt;br /&gt;
Select the '''Toggle snap''' tool. &lt;br /&gt;
&lt;br /&gt;
Select the drop down near the toggle snap tool.&lt;br /&gt;
&lt;br /&gt;
In the drop down enable '''Snap to grid.'''&lt;br /&gt;
|| In the''' Sketcher''', let's draw a circle in the middle of the hole.&lt;br /&gt;
&lt;br /&gt;
Select the''' Toggle grid''' tool.&lt;br /&gt;
&lt;br /&gt;
Select the''' Toggle snap''' tool. &lt;br /&gt;
&lt;br /&gt;
Now select the drop down near the Toggle snap tool.&lt;br /&gt;
&lt;br /&gt;
In the drop down ensure '''Snap to grid''' is enabled.&lt;br /&gt;
|- &lt;br /&gt;
|| Now select toggle construction geometry tool.&lt;br /&gt;
&lt;br /&gt;
Show the tools.&lt;br /&gt;
|| Now select '''Toggle construction geometry''' tool.&lt;br /&gt;
&lt;br /&gt;
Some sketcher tools now appear in blue colour.&lt;br /&gt;
&lt;br /&gt;
This mode is used to draw construction lines.&lt;br /&gt;
&lt;br /&gt;
These construction lines do not appear in the final sketch.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the '''View section''' tool.&lt;br /&gt;
&lt;br /&gt;
Select the '''Create line''' tool.&lt;br /&gt;
&lt;br /&gt;
Zoom in to the hole.&lt;br /&gt;
|| Select the '''View section''' tool.&lt;br /&gt;
&lt;br /&gt;
Select the''' Create line''' tool.&lt;br /&gt;
&lt;br /&gt;
Zoom in to the hole.&lt;br /&gt;
|- &lt;br /&gt;
|| Place the cursor where the left side of the circle touches the grid.&lt;br /&gt;
&lt;br /&gt;
Left click and draw a straight line to the right end of the circle.&lt;br /&gt;
&lt;br /&gt;
Place the cursor where the top side of the circle touches the grid.&lt;br /&gt;
&lt;br /&gt;
Left click and draw a straight line to the bottom of the circle.&lt;br /&gt;
|| Place the cursor where the left side of the circle touches the grid.&lt;br /&gt;
&lt;br /&gt;
Left click and draw a straight line to the right end of the circle.&lt;br /&gt;
&lt;br /&gt;
Do the same to draw a line from top to bottom.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the '''Toggle construction geometry''' tool.&lt;br /&gt;
|| Now select the''' Toggle construction geometry''' tool.&lt;br /&gt;
&lt;br /&gt;
This exits the construction mode.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the create circle tool. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place the cursor near the intersection of the two construction lines. &lt;br /&gt;
|| Select the '''Create circle''' tool. &lt;br /&gt;
&lt;br /&gt;
Place the cursor near the intersection of the two construction lines. &lt;br /&gt;
&lt;br /&gt;
One of the lines will turn yellow in color.&lt;br /&gt;
&lt;br /&gt;
You can see the constrain symmetric symbol appears near the cursor.&lt;br /&gt;
|- &lt;br /&gt;
|| Draw a circle.&lt;br /&gt;
&lt;br /&gt;
Select the '''dimension''' tool.&lt;br /&gt;
&lt;br /&gt;
Set the '''Diameter''' to 25mm.&lt;br /&gt;
&lt;br /&gt;
Click close.&lt;br /&gt;
|| Left click in the middle and draw a circle.&lt;br /&gt;
&lt;br /&gt;
Set the diameter to 25 mm using the '''Dimension''' tool.&lt;br /&gt;
&lt;br /&gt;
Close the sketcher.&lt;br /&gt;
|- &lt;br /&gt;
|| Select Pocket tool.&lt;br /&gt;
&lt;br /&gt;
Select the type as through all.&lt;br /&gt;
&lt;br /&gt;
Click ok.&lt;br /&gt;
|| With the sketch selected, click on the '''Pocket''' tool.In the dialog box, set the Type to '''Through All'''.Click '''OK'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Show the model.&lt;br /&gt;
|| A hole is now created through the solid.This shows how we can edit '''STL''' models in '''FreeCAD''' after conversion.&lt;br /&gt;
|- &lt;br /&gt;
|| Select the file and click '''Save As.'''&lt;br /&gt;
&lt;br /&gt;
Enter the name as '''Example_edited.'''&lt;br /&gt;
&lt;br /&gt;
Click '''Save'''.&lt;br /&gt;
|| To save the file, go to '''File''' and click '''Save As'''.Enter the file name as '''Example_edited.FCStd''' and click '''Save'''.&lt;br /&gt;
&lt;br /&gt;
Users may save the file with a different name.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt to:&lt;br /&gt;
* Export a FreeCAD model to STL format.&lt;br /&gt;
* Import an STL file into FreeCAD.&lt;br /&gt;
* Convert an STL mesh to a solid.&lt;br /&gt;
* Refine the solid and modify it in Part Design.&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
# Import '''Example.stl''' file into '''FreeCAD'''.&lt;br /&gt;
# Convert it to a solid and refine it.&lt;br /&gt;
# Create a circle of 30 mm in the center of the hole&lt;br /&gt;
# Extrude the sketch 70 mm.&lt;br /&gt;
|| As an '''assignment''', please do the following:&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Thank You'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private limited SINE IIT Bombay&lt;br /&gt;
&lt;br /&gt;
Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Conversational-AI-Tools/C2/Debugging-with-AI/English</id>
		<title>Conversational-AI-Tools/C2/Debugging-with-AI/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Conversational-AI-Tools/C2/Debugging-with-AI/English"/>
				<updated>2025-11-22T13:15:09Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Debugging with AI '''  '''Author: Sudhakar Kumar and EduPyramids Team.'''  '''Keywords''': debugging, errors, messages, optimize, ai, video tutorial....&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Debugging with AI '''&lt;br /&gt;
&lt;br /&gt;
'''Author: Sudhakar Kumar and EduPyramids Team.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords''': debugging, errors, messages, optimize, ai, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide '''&lt;br /&gt;
|| Welcome to the spoken tutorial on '''Debugging with AI.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn how to use ChatGPT to&lt;br /&gt;
* Decode the error messages shown by the compiler&lt;br /&gt;
* Detect edge cases &lt;br /&gt;
* Optimize and improve code&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using&lt;br /&gt;
* Ubuntu Linux OS v22.04 &lt;br /&gt;
* Firefox web browser v141.0.4&lt;br /&gt;
* Linux Terminal and g++ compiler &lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4 '''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of:&lt;br /&gt;
* Using internet, and&lt;br /&gt;
* Programming in C/C++ &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
The following code files are required to practice this tutorial.&lt;br /&gt;
# '''con.cpp'''&lt;br /&gt;
# '''sumOfElems.cpp'''&lt;br /&gt;
# '''primeNums.cpp'''&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
These files are provided in the''' Code Files''' link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| To open the text editor, type the command in the terminal.&lt;br /&gt;
&lt;br /&gt;
Type: '''gedit con.cpp &amp;amp;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;#include &amp;lt;iostream&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''int main() {'''&lt;br /&gt;
&lt;br /&gt;
'''const int x = 5;'''&lt;br /&gt;
&lt;br /&gt;
'''int* ptr = &amp;amp;x; '''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;*ptr = 10;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''std::cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; std::endl;'''&lt;br /&gt;
&lt;br /&gt;
'''return 0;'''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
&lt;br /&gt;
Type:''' g++ con.cpp -o output '''to compile the code.&lt;br /&gt;
&lt;br /&gt;
Highlight the error message in the compiler&lt;br /&gt;
|| Open the Linux terminal and type this command to open con.cpp file.&lt;br /&gt;
&lt;br /&gt;
Let us compile the code in the linux terminal. &lt;br /&gt;
&lt;br /&gt;
For that type this command and press Enter&lt;br /&gt;
&lt;br /&gt;
We can see an error in the code. &lt;br /&gt;
&lt;br /&gt;
The error message states the invalid conversion from 'const int*' to 'int*' &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| This error message may not clearly indicate the actual issue in the code.&lt;br /&gt;
&lt;br /&gt;
Let us take help from ChatGPT. &lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''Projects '''icon in the left panel.''' '''&lt;br /&gt;
&lt;br /&gt;
In the '''Project name '''box,''' '''type the name as '''Debugging with AI'''. &lt;br /&gt;
&lt;br /&gt;
Click on the Create''' project''' button.&lt;br /&gt;
|| Create a New Project with the name of '''Debugging with AI'''. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight''' Debugging with AI'''&lt;br /&gt;
|| For this tutorial, we will use this project workspace. &lt;br /&gt;
|- &lt;br /&gt;
|| Cursor on Chat window &lt;br /&gt;
&lt;br /&gt;
Here is my code: &lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;#include &amp;lt;iostream&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''int main() {'''&lt;br /&gt;
&lt;br /&gt;
'''const int x = 5;'''&lt;br /&gt;
&lt;br /&gt;
'''int* ptr = &amp;amp;x; '''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;*ptr = 10;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''std::cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; std::endl;'''&lt;br /&gt;
&lt;br /&gt;
'''return 0;'''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
&lt;br /&gt;
'''I have a C++ code that gives the following compilation error:'''&lt;br /&gt;
&lt;br /&gt;
'''The error message states the invalid conversion from 'const int*' to 'int*' Explain why this error occurs and how to fix it. '''&lt;br /&gt;
|| In the Chat window, copy paste the code.&lt;br /&gt;
&lt;br /&gt;
Type the following prompt and &lt;br /&gt;
&lt;br /&gt;
Press Enter. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the generated response in the Chat window&lt;br /&gt;
&lt;br /&gt;
Highlight Copy Code in the Chat window.&lt;br /&gt;
&lt;br /&gt;
Click on the copy code button.&lt;br /&gt;
&lt;br /&gt;
Copy paste the corrected code and click on Save button.&lt;br /&gt;
&lt;br /&gt;
To compile type: '''g++ con.cpp -o output.'''&lt;br /&gt;
&lt;br /&gt;
Type '''./output'''Highlight the corrected output.&lt;br /&gt;
|| It first goes through the code and explains why the error is happening.&lt;br /&gt;
&lt;br /&gt;
Next, it suggests how to fix it and gives the corrected code.&lt;br /&gt;
&lt;br /&gt;
We can copy the code by clicking the Copy code icon. &lt;br /&gt;
&lt;br /&gt;
Open the text editor and paste the copied code.&lt;br /&gt;
&lt;br /&gt;
Save the file.&lt;br /&gt;
&lt;br /&gt;
Let’s go back to the terminal and compile the corrected code.&lt;br /&gt;
&lt;br /&gt;
Compilation is done, let's see the output.&lt;br /&gt;
&lt;br /&gt;
Here the output is shown successfully.&lt;br /&gt;
|- &lt;br /&gt;
|| Open file '''sumOfElems.cpp''' in the text editor.&lt;br /&gt;
&lt;br /&gt;
Type: '''gedit sumOfElems.cpp &amp;amp;'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''int sumVector(const std::vector&amp;lt;int&amp;gt;&amp;amp; nums) {'''&lt;br /&gt;
&lt;br /&gt;
'''int sum = 0;'''&lt;br /&gt;
&lt;br /&gt;
'''for (int num : nums) {'''&lt;br /&gt;
&lt;br /&gt;
'''sum += num; '''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
&lt;br /&gt;
'''return sum;'''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
|| Let’s see another code.&lt;br /&gt;
&lt;br /&gt;
Open file '''sumOfElems.cpp''' in the text editor.&lt;br /&gt;
&lt;br /&gt;
We have a function '''sumVector'''.&lt;br /&gt;
&lt;br /&gt;
It prints, sum of the elements present in the vector. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the following piece of code&lt;br /&gt;
&lt;br /&gt;
'''std::cout &amp;lt;&amp;lt; &amp;quot;Sum of small numbers: &amp;quot; &amp;lt;&amp;lt; sumVector(smallNumbers) &amp;lt;&amp;lt; std::endl;'''&lt;br /&gt;
&lt;br /&gt;
'''std::cout &amp;lt;&amp;lt; &amp;quot;Sum of large numbers: &amp;quot; &amp;lt;&amp;lt; sumVector(largeNumbers) &amp;lt;&amp;lt; std::endl;'''&lt;br /&gt;
|| The first cout statement should print Sum of small numbers: 15&lt;br /&gt;
&lt;br /&gt;
And, the second cout statement should print:&lt;br /&gt;
&lt;br /&gt;
Sum of large numbers:&lt;br /&gt;
&lt;br /&gt;
That is forty-five followed by eight zeros.&lt;br /&gt;
|- &lt;br /&gt;
|| To compile type: '''g++ sumOfElems.cpp -o output'''&lt;br /&gt;
&lt;br /&gt;
'''Type:./output'''&lt;br /&gt;
&lt;br /&gt;
To run the code.&lt;br /&gt;
&lt;br /&gt;
Highlight the output&lt;br /&gt;
|| Let’s compile the code in the terminal &lt;br /&gt;
&lt;br /&gt;
For that type this command and press enter.After the compilation, Type this command to run the code.&lt;br /&gt;
&lt;br /&gt;
The output for the first cout statement is given correctly.&lt;br /&gt;
&lt;br /&gt;
However, the output for the second cout statement is incorrect. &lt;br /&gt;
&lt;br /&gt;
It means that our code works fine for small numbers but not for large numbers. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us ask ChatGPT to help out. &lt;br /&gt;
|- &lt;br /&gt;
|| Point to the file &lt;br /&gt;
&lt;br /&gt;
Click''' New Chat'''&lt;br /&gt;
&lt;br /&gt;
Type the following in ChatGPT and press Enter. I have attached a file named '''sumOfElems.cpp. '''&lt;br /&gt;
&lt;br /&gt;
'''Analyze this code and find any potential bugs or edge cases. '''&lt;br /&gt;
&lt;br /&gt;
'''Explain why each issue occurs and suggest fixes.'''&lt;br /&gt;
|| I have saved the program as '''sumOfElems.cpp''' on my system.&lt;br /&gt;
&lt;br /&gt;
Go to the workspace of the project '''Debugging with AI'''.&lt;br /&gt;
&lt;br /&gt;
In a '''New chat''', click on Add files and upload the file '''sumOfElems.cpp'''. &lt;br /&gt;
&lt;br /&gt;
type the following prompt to analyze this code. &lt;br /&gt;
&lt;br /&gt;
And, press Enter. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the generated response &lt;br /&gt;
|| ChatGPT points out that the code may not work for large numbers. &lt;br /&gt;
&lt;br /&gt;
ChatGPT suggests alternate corrected code.Users may compile the corrected code on their own.&lt;br /&gt;
|- &lt;br /&gt;
|| Open '''primeNums.cpp''' in text editorType''': gedit primeNums.cpp &amp;amp;Highlight''': &lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;#include &amp;lt;iostream&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''vector&amp;lt;int&amp;gt; numbers = { 2, 15, 17, 20, 23, 30 };'''&lt;br /&gt;
&lt;br /&gt;
'''cout &amp;lt;&amp;lt; &amp;quot;Prime numbers : &amp;quot; &amp;lt;&amp;lt; endl;'''&lt;br /&gt;
&lt;br /&gt;
'''for (int i = 0; i &amp;lt; numbers.size(); i++) {'''&lt;br /&gt;
&lt;br /&gt;
'''if (isPrime(numbers[i])) {'''&lt;br /&gt;
&lt;br /&gt;
'''cout &amp;lt;&amp;lt; numbers[i] &amp;lt;&amp;lt; &amp;quot; &amp;quot;;'''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
&lt;br /&gt;
Type:''' g++ primeNums.cpp -o output '''to compile the code.&lt;br /&gt;
&lt;br /&gt;
Type:''' ./output'''&lt;br /&gt;
|| Now, let’s see the next code about Prime Numbers. &lt;br /&gt;
&lt;br /&gt;
For each element in a vector, the program checks if it is a prime number or not. &lt;br /&gt;
&lt;br /&gt;
Then prints it if it is a prime number. &lt;br /&gt;
&lt;br /&gt;
Let’s compile the code.&lt;br /&gt;
&lt;br /&gt;
Compilation is successful. Now let us run the code.&lt;br /&gt;
&lt;br /&gt;
We can see that the prime numbers are correctly printed. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us ask ChatGPT whether this program can be further optimized. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the Chat window in the project workspace &lt;br /&gt;
&lt;br /&gt;
Refer to the attached code '''primeNums.cpp.'''&lt;br /&gt;
&lt;br /&gt;
It prints the prime numbers present in a vector. &lt;br /&gt;
&lt;br /&gt;
Review and optimize this code.&lt;br /&gt;
&lt;br /&gt;
'''Explain any changes or improvements to make.'''&lt;br /&gt;
|| Go to the workspace of the project Debugging with AI.&lt;br /&gt;
&lt;br /&gt;
Click on Add files and upload '''primeNums.cpp '''file&lt;br /&gt;
&lt;br /&gt;
In a New chat, type the following and press Enter. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the corresponding terms in the generated response &lt;br /&gt;
|| ChatGPT offers a few suggestions that we can optimize in our code.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| To know more about debugging with AI, refer to the Additional reading Material available on this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt how to use ChatGPT to&lt;br /&gt;
* Decode the error messages shown by the compiler&lt;br /&gt;
* Detect edge cases &lt;br /&gt;
* Optimize and improve code&lt;br /&gt;
|| With this, we come to the end of this tutorial. Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment '''&lt;br /&gt;
&lt;br /&gt;
Given a positive integer n, write a C++ code to find the nth Fibonacci number. &lt;br /&gt;
&lt;br /&gt;
Give this code to ChatGPT and get it reviewed for improvements. &lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by '''EduPyramids Educational Services Private Limited''', '''SINE, IIT Bombay.'''Thank you for joining! &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Conversational-AI-Tools/C2/Coding-with-AI/English</id>
		<title>Conversational-AI-Tools/C2/Coding-with-AI/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Conversational-AI-Tools/C2/Coding-with-AI/English"/>
				<updated>2025-11-22T10:10:29Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script''': '''Coding with AI'''  '''Author''': '''Sudhakar Kumar and EduPyramids Team.'''  '''Keywords''': chatgpt, ai, assistant, code, review, video tutorial...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script''': '''Coding with AI'''&lt;br /&gt;
&lt;br /&gt;
'''Author''': '''Sudhakar Kumar and EduPyramids Team.'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords''': chatgpt, ai, assistant, code, review, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide '''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Coding with AI'''. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn how to use ChatGPT to&lt;br /&gt;
* Explain programming concepts and&lt;br /&gt;
* Get our code reviewed &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using &lt;br /&gt;
* Ubuntu Linux OS v22.04 &lt;br /&gt;
* Firefox web browser v141.0.4&lt;br /&gt;
* Visual Studio Code v1.100.3&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4 '''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of:&lt;br /&gt;
* Using internet, and&lt;br /&gt;
* Programming in C/C++ &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
The following code files are required to practice this tutorial.&lt;br /&gt;
# '''strReverse.cpp'''&lt;br /&gt;
# '''abstractCls.cpp'''&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code files are required to practice this tutorial. &lt;br /&gt;
&lt;br /&gt;
These files are provided in the''' Code Files''' link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Significance of Conversational AI'''&lt;br /&gt;
|| * Tools like ChatGPT can serve as a reliable coding assistant. &lt;br /&gt;
* It can help with syntax, explain tricky concepts, review your code, and suggest optimizations. &lt;br /&gt;
* It is like a knowledgeable&lt;br /&gt;
&lt;br /&gt;
Colleague you can ask anytime for guidance. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Suppose I forgot how to use '''typedef '''in C programming. &lt;br /&gt;
&lt;br /&gt;
Let us go to ChatGPT and ask how to use '''typedef'''. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Go to the left Panel and Click on New Project.'''&lt;br /&gt;
|| First, let us create a New project. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight Projects on the left side of the pageClick on Projects.&lt;br /&gt;
&lt;br /&gt;
Type name:''' C/C++ Programming'''&lt;br /&gt;
&lt;br /&gt;
Click on Create Project button. &lt;br /&gt;
|| Projects help us organize our work better. &lt;br /&gt;
&lt;br /&gt;
Projects keep chats, files, and custom instructions in one place.&lt;br /&gt;
&lt;br /&gt;
Click on '''Projects''' and enter a name of your choice. &lt;br /&gt;
&lt;br /&gt;
I will add the name, '''C/C++ Programming'''. &lt;br /&gt;
&lt;br /&gt;
Click on '''Create Project'''. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight C/C++ Programming under Projects&lt;br /&gt;
|| Observe that the project is created. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the name C/C++ Programming above Ask Anything&lt;br /&gt;
|| The name of the project appears above the Chat window. &lt;br /&gt;
&lt;br /&gt;
It indicates that we are now in the workspace of our project. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the Chat window in the project workspace&lt;br /&gt;
|| Let us now ask our queries here.&lt;br /&gt;
|- &lt;br /&gt;
|| Type: &lt;br /&gt;
&lt;br /&gt;
'''Explain how to use typedef in C programming with some examples.''' Press Enter. &lt;br /&gt;
|| Type,&lt;br /&gt;
&lt;br /&gt;
'''Explain how to use typedef in C programming with some examples.''' Press Enter. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the generated response in the Chat window&lt;br /&gt;
|| ChatGPT first explains what a '''typedef '''is, followed by its syntax and usage. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Now, suppose I have written some code. &lt;br /&gt;
&lt;br /&gt;
I want ChatGPT to review it. &lt;br /&gt;
|- &lt;br /&gt;
|| '''&amp;lt;nowiki&amp;gt;#include &amp;lt;iostream&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;#include &amp;lt;string&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''using namespace std;'''&lt;br /&gt;
&lt;br /&gt;
'''int main() {'''&lt;br /&gt;
&lt;br /&gt;
'''string str = &amp;quot;Spoken Tutorial&amp;quot;;'''&lt;br /&gt;
&lt;br /&gt;
'''string rev = &amp;quot;&amp;quot;;'''&lt;br /&gt;
&lt;br /&gt;
'''for (int i = str.size() - 1; i &amp;gt;= 0; i--) {'''&lt;br /&gt;
&lt;br /&gt;
'''rev += str[i];'''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
&lt;br /&gt;
'''cout &amp;lt;&amp;lt; &amp;quot;Reversed: &amp;quot; &amp;lt;&amp;lt; rev &amp;lt;&amp;lt; endl;'''&lt;br /&gt;
&lt;br /&gt;
'''return 0;'''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
|| I have written a C++ code to reverse a string. &lt;br /&gt;
&lt;br /&gt;
The code works fine, but I want ChatGPT to suggest improvements. &lt;br /&gt;
&lt;br /&gt;
For that, we can directly copy and paste the code in the Chat window.&lt;br /&gt;
&lt;br /&gt;
Then give the prompt. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight Chat under C/C++ Programming&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Type''': You are a C++ software engineer. &lt;br /&gt;
&lt;br /&gt;
I have written a code, strReverse.cpp which reverses a string. &lt;br /&gt;
&lt;br /&gt;
Please review it for correctness, readability, and best practices.&lt;br /&gt;
|| Type this promptPress Enter. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight the generated response in the Chat window&lt;br /&gt;
|| Observe that it first confirms the correctness of the program. &lt;br /&gt;
&lt;br /&gt;
Next, it checks for readability, best practices, and improvements.&lt;br /&gt;
&lt;br /&gt;
If needed, we can ask follow-up questions. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| We can ask ChatGPT to explain some code as well. &lt;br /&gt;
|- &lt;br /&gt;
|| Open '''abstractCls.cpp''' in visual studio code editor and highlight the following part  &lt;br /&gt;
&lt;br /&gt;
'''class Shape {'''&lt;br /&gt;
&lt;br /&gt;
'''public:'''&lt;br /&gt;
&lt;br /&gt;
'''virtual double area() const = 0;'''&lt;br /&gt;
&lt;br /&gt;
'''};'''&lt;br /&gt;
|| I have a class-based code that uses an abstract class. &lt;br /&gt;
&lt;br /&gt;
I want to understand why an abstract class is being used in this code. &lt;br /&gt;
|- &lt;br /&gt;
|| Highlight abstractCls.cpp on the Desktop&lt;br /&gt;
|| I have saved this program as '''abstractCls.cpp''' on my '''system'''. &lt;br /&gt;
&lt;br /&gt;
Let us add this file to the project workspace. &lt;br /&gt;
&lt;br /&gt;
Click on the project titled C/C++ Programming. &lt;br /&gt;
|- &lt;br /&gt;
|| Click''' File icon '''and upload &lt;br /&gt;
|| Click on the Add Files icon and upload '''abstractCls.cpp '''file&lt;br /&gt;
|- &lt;br /&gt;
|| Type the command in the ChatGPT:&lt;br /&gt;
&lt;br /&gt;
'''You are a C++ software engineer. &lt;br /&gt;
&lt;br /&gt;
I have attached a file abstractCls.cpp which has an abstract class. &lt;br /&gt;
&lt;br /&gt;
Go through the code and explain why an abstract class is needed in this code.'''&lt;br /&gt;
|| In the Chat window, type the following prompt.&lt;br /&gt;
&lt;br /&gt;
Press Enter and observe the response. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt how to use ChatGPT to&lt;br /&gt;
* Explain programming concepts&lt;br /&gt;
* Get our code reviewed &lt;br /&gt;
|| With this, we come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment '''&lt;br /&gt;
&lt;br /&gt;
As an assignment, &lt;br /&gt;
* Create a new project and give the C++ code that reverses a string to ChatGPT. &lt;br /&gt;
* Ask it to write an equivalent Python code. &lt;br /&gt;
* Ensure that both programs produce the same results.&lt;br /&gt;
|| As an assignment, please do the following. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Private limited SINE IIT BombayThank you for joining! &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Freeplane/C2/Creating-a-Mind-Map/English</id>
		<title>Freeplane/C2/Creating-a-Mind-Map/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Freeplane/C2/Creating-a-Mind-Map/English"/>
				<updated>2025-11-22T09:13:26Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title: Creating a Mind Map'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Saisudha Sugavanam and Madhuri Ganapathi'''&lt;br /&gt;
&lt;br /&gt;
'''Graphics by: Anjali Satdive'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords''': Mind map,  photosynthesis, requirements, process, products, EduPyramids, Spoken Tutorial, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide '''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on '''Creating a Mind Map'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will,&lt;br /&gt;
&lt;br /&gt;
Explore how to create a '''mind map''' through simple step-by-step instructions.&lt;br /&gt;
&lt;br /&gt;
Build 4 to 6 main branches from the central idea.&lt;br /&gt;
&lt;br /&gt;
Apply the method using Photosynthesis as an example.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Person thinking with colourful branches&lt;br /&gt;
|| What exactly is a '''mind map'''?A '''mind map''' is a picture of how our brain thinks.&lt;br /&gt;
&lt;br /&gt;
It starts from an idea in the centre and expands in all directions.&lt;br /&gt;
&lt;br /&gt;
Our brain loves colour, pictures and patterns.It doesn’t like long lists.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Example- “Holiday Planning” '''mind map'''&lt;br /&gt;
|| Let us see Riya in action. Riya uses '''mind map'''s to plan, take&amp;amp;nbsp; notes or brainstorm ideas.&lt;br /&gt;
&lt;br /&gt;
For example, planning a trip, executing a trip and enjoying the planned holiday.&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Notebook and coloured pens&lt;br /&gt;
|| Now it's time to create a map by hand. &lt;br /&gt;
&lt;br /&gt;
All we need is a sheet of paper and coloured pens or pencils. &lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Blank page with circle in centre&lt;br /&gt;
|| Now let’s write the main idea in the centre of the page.&lt;br /&gt;
&lt;br /&gt;
Draw a circle or bubble around it.&lt;br /&gt;
&lt;br /&gt;
Let’s write photosynthesis. This is our central idea.So, what is photosynthesis?&lt;br /&gt;
&lt;br /&gt;
It is the process by which green plants, algae, and some bacteria use sunlight, carbon dioxide, and water to produce glucose and release oxygen. &lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Three main branches grow outward&lt;br /&gt;
|| Step 2: Draw thick, curved branches from the centre.&lt;br /&gt;
&lt;br /&gt;
Each branch represents a key idea.&lt;br /&gt;
&lt;br /&gt;
For Photosynthesis, let’s add Requirements, Process and Products.&lt;br /&gt;
&lt;br /&gt;
Use a different colour for each branch.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add smaller branches under Requirements&lt;br /&gt;
|| Step 3: Let us add smaller branches for supporting details.Under Requirements, let’s add Sunlight, Water, CO₂ and Chlorophyll.&lt;br /&gt;
&lt;br /&gt;
We will use one keyword per branch.This will keep ideas flexible.Add little drawings such as sun, a leaf, a drop of water.&amp;amp;nbsp;Our brain loves images!&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add branches under ProcessShow arrows to indicate flow and cause and effect.&lt;br /&gt;
|| Under Process, let’s add Light Reaction and Dark Reaction.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add branches under Products&lt;br /&gt;
|| Under Products, let’s write Glucose and Oxygen. &lt;br /&gt;
&lt;br /&gt;
Now connect Glucose to Energy for Plant Growth.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: '''Mind map''' growing radiantly&lt;br /&gt;
|| Step 4: Let's keep expanding. Don’t worry about neatness.&lt;br /&gt;
&lt;br /&gt;
Every '''mind map''' is unique. &lt;br /&gt;
&lt;br /&gt;
Pause here and think, what other ideas can you add?&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add colour and doodles&lt;br /&gt;
|| Step 5: Let us use colours and shapes to make it memorable. &lt;br /&gt;
&lt;br /&gt;
Colours stimulate memory and keep both sides of our brain active.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Completed '''mind map''' displayed&lt;br /&gt;
|| And that’s it!&amp;amp;nbsp; Photosynthesis '''mind map''' is ready. &lt;br /&gt;
&lt;br /&gt;
Here we can see the entire process in one glance.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Teacher with students creating maps&lt;br /&gt;
|| '''Mind map'''s aren’t only for study; they’re for life! &lt;br /&gt;
&lt;br /&gt;
Teachers can use them to introduce new topics or summarise lessons. &lt;br /&gt;
&lt;br /&gt;
Students can create their own maps as a classroom activity. &lt;br /&gt;
&lt;br /&gt;
It encourages imagination, critical thinking and creativity.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Benefits list appears&lt;br /&gt;
|| '''Mind map'''s help us to: &lt;br /&gt;
&lt;br /&gt;
1. Connect ideas visually &lt;br /&gt;
&lt;br /&gt;
2. Recall concepts quickly &lt;br /&gt;
&lt;br /&gt;
3. Engage in active learning instead of rote memorisation &lt;br /&gt;
&lt;br /&gt;
4. Stimulate creative thinking and long-term memory&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Everyday uses – goal setting, planning, decisions&lt;br /&gt;
|| We can use '''mind map'''s to plan our week, set goals or make decisions. &lt;br /&gt;
&lt;br /&gt;
The same method works for any topic from science to self-growth.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Hand-drawn map fades into digital version&lt;br /&gt;
|| When hand-drawing becomes easy, try Freeplane to create and share maps.&lt;br /&gt;
&lt;br /&gt;
Let’s learn to create maps using Freeplane in our next tutorial- Introduction to Freeplane.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Radiant brain image expanding outward&lt;br /&gt;
|| Please remember: Every '''mind map''' begins with one idea and radiates outward. &lt;br /&gt;
&lt;br /&gt;
That’s exactly how our brain thinks- radiantly and creatively!&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''Summary Slide'''&lt;br /&gt;
|| Let’s summarise.A '''mind map''' is&amp;amp;nbsp; a visual tool that shows connections between ideas.&lt;br /&gt;
&lt;br /&gt;
We created a '''mind map''' using Photosynthesis as an example.&lt;br /&gt;
&lt;br /&gt;
We used keywords, colours and images to make it clear and memorable.&lt;br /&gt;
&lt;br /&gt;
'''Mind map'''s help anyone learn, teach, plan and think more creatively.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment Slide'''&lt;br /&gt;
|| Here’s an assignment for you.Choose a topic you know well like, Healthy Eating or Time Management.Create a '''mind map''' using these steps.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Use keywords, colours and drawings.&lt;br /&gt;
&lt;br /&gt;
Share it with a friend or classmate and compare your maps.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Pvt. Ltd. SIN E, IIT Bombay. Thank you for learning radiantly with us! &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Classroom-Skills/C2/Creating-a-Lesson-Plan/English</id>
		<title>Classroom-Skills/C2/Creating-a-Lesson-Plan/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Classroom-Skills/C2/Creating-a-Lesson-Plan/English"/>
				<updated>2025-11-22T09:02:52Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: Creating a Lesson Plan.'''  '''Author: Saisudha Sugavanam and Madhuri Ganapathi'''  '''Graphics by: Ketki Bhamble'''  '''Keywords:''' lesson plan, gene...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Creating a Lesson Plan.'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Saisudha Sugavanam and Madhuri Ganapathi'''&lt;br /&gt;
&lt;br /&gt;
'''Graphics by: Ketki Bhamble'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' lesson plan, general information, learning outcomes, action verbs, lesson activities, teacher role, student role, duration, resources, assessment for learning, formative assessment, summative assessment, key competencies, collaboration, communication, critical thinking, reversible and irreversible changes, observation table, peer review, assignment, edupyramids, spoken tutorial, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide '''&lt;br /&gt;
|| Hello and welcome to the Spoken tutorial on '''Creating a Lesson Plan.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn to create a '''lesson plan'''. &lt;br /&gt;
&lt;br /&gt;
This '''lesson plan''' is based on the format prescribed by CBSE&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| By the end of this tutorial, the teacher will be able to: &lt;br /&gt;
* Identify the key components of a '''lesson plan''' and&lt;br /&gt;
* Write each part with clear details &lt;br /&gt;
|-&lt;br /&gt;
|| Teacher entering class without notes&lt;br /&gt;
|| Have you ever entered a class with ideas in your head but no written plan? &lt;br /&gt;
&lt;br /&gt;
Things can quickly go off track.&lt;br /&gt;
&lt;br /&gt;
Important points get missed, and the lesson doesn’t finish on time.&lt;br /&gt;
|-&lt;br /&gt;
|| Teacher holding a written '''lesson plan'''&lt;br /&gt;
|| That’s why we need a '''lesson plan'''.&lt;br /&gt;
&lt;br /&gt;
A '''lesson plan''' is like a roadmap. &lt;br /&gt;
&lt;br /&gt;
It tells us what to teach and how to teach a topic.&lt;br /&gt;
&lt;br /&gt;
It helps confirm if students have actually learned the concept.&lt;br /&gt;
|-&lt;br /&gt;
|| 1: '''General Information'''&lt;br /&gt;
&lt;br /&gt;
2: '''Learning Outcomes'''&lt;br /&gt;
&lt;br /&gt;
3: '''Lesson Activities'''&lt;br /&gt;
&lt;br /&gt;
4: '''Assessment for Learning''' and&lt;br /&gt;
&lt;br /&gt;
5: '''Key Competencies'''&lt;br /&gt;
|| A good '''lesson plan''' should have all these five key components. &lt;br /&gt;
&lt;br /&gt;
We will link each step to one example and show how to adapt it. &lt;br /&gt;
|-&lt;br /&gt;
|| Teacher with class&lt;br /&gt;
|| Imagine you are a Grade 6 Science teacher. &lt;br /&gt;
&lt;br /&gt;
The topic is '''Reversible and Irreversible Changes'''. &lt;br /&gt;
&lt;br /&gt;
We will use this as our running example in every step. &lt;br /&gt;
&lt;br /&gt;
Please remember: this is just one example.&lt;br /&gt;
&lt;br /&gt;
Please adapt each step for your own subject and class.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight: '''General Information'''&lt;br /&gt;
&lt;br /&gt;
Images of ice cubes, matchsticks, clay, rubber band, paper, candle and observation sheets. &lt;br /&gt;
|| Step 1 is '''general information'''. We need to write the following:&lt;br /&gt;
&lt;br /&gt;
Subject, Class/Grade, Chapter/Topic, Duration in minutes, and Resources.&lt;br /&gt;
&lt;br /&gt;
Please add only what you will realistically use in the class. &lt;br /&gt;
&lt;br /&gt;
For this example: Subject is Science. &lt;br /&gt;
&lt;br /&gt;
Class is VI.&lt;br /&gt;
&lt;br /&gt;
Duration is 30 minutes.&lt;br /&gt;
&lt;br /&gt;
Resources are ice cubes, matchsticks, clay, rubber band, paper, candle and observation sheets. &lt;br /&gt;
&lt;br /&gt;
Why is this step important?&lt;br /&gt;
&lt;br /&gt;
It sets the context and time needed, helping you manage the class well.&lt;br /&gt;
&lt;br /&gt;
The resources list ensures you are fully prepared for the class.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Step 2 is '''Learning Outcomes'''. &lt;br /&gt;
&lt;br /&gt;
Write 1 or 2 measurable outcomes with strong '''action verbs'''. &lt;br /&gt;
&lt;br /&gt;
For example identify, describe, classify, compare, explain, apply, create, etc.&lt;br /&gt;
&lt;br /&gt;
Using '''action verbs''' makes the '''learning outcomes''' measurable.&lt;br /&gt;
&lt;br /&gt;
Please avoid using vague verbs like know or understand. &lt;br /&gt;
&lt;br /&gt;
Can you measure how much a student has understood?&lt;br /&gt;
&lt;br /&gt;
Or&lt;br /&gt;
&lt;br /&gt;
How much do they know? &lt;br /&gt;
&lt;br /&gt;
That’s why we avoid these verbs.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight: '''Learning Outcomes'''&lt;br /&gt;
|| For this example, the learning outcome can be:&lt;br /&gt;
&lt;br /&gt;
By the end of the class, the students will be able to:&lt;br /&gt;
&lt;br /&gt;
Differentiate between reversible and irreversible changes.&lt;br /&gt;
&lt;br /&gt;
Give examples of reversible or irreversible changes.&lt;br /&gt;
&lt;br /&gt;
Why is this step important? &lt;br /&gt;
&lt;br /&gt;
Clear outcomes guide your teaching and make assessment straightforward.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Step 3 is writing lesson activities.&lt;br /&gt;
&lt;br /&gt;
Activities make learning active and ensure time is used well. &lt;br /&gt;
&lt;br /&gt;
For each activity, specify: &lt;br /&gt;
&lt;br /&gt;
Duration, Objective, Materials, Teacher actions and Student actions.&lt;br /&gt;
&lt;br /&gt;
Also include an assessment check.&lt;br /&gt;
&lt;br /&gt;
Keep the total timing within the lesson duration.&lt;br /&gt;
|-&lt;br /&gt;
|| Activity 1 (Teacher lights match)&lt;br /&gt;
|| For activity 1:&lt;br /&gt;
&lt;br /&gt;
The objective is to introduce the concept and spark curiosity.&lt;br /&gt;
&lt;br /&gt;
Duration is 10 minutes.&lt;br /&gt;
&lt;br /&gt;
Materials needed: matchsticks for demo. &lt;br /&gt;
&lt;br /&gt;
Teacher’s action: Lighting a match stick.&lt;br /&gt;
&lt;br /&gt;
The teacher asks, Can this change be reversed? &lt;br /&gt;
&lt;br /&gt;
Why or why not? and probe with follow-ups.&lt;br /&gt;
&lt;br /&gt;
You could ask students: 'What is happening to the match stick?' &lt;br /&gt;
&lt;br /&gt;
Write Student actions: &lt;br /&gt;
&lt;br /&gt;
What will the students do when you are performing the above action?&lt;br /&gt;
&lt;br /&gt;
Observe, share ideas, and listen to peers.&lt;br /&gt;
&lt;br /&gt;
Assessment check: Note initial ideas/misconceptions. &lt;br /&gt;
&lt;br /&gt;
Why this step is important: Writing these details makes it clear.&lt;br /&gt;
&lt;br /&gt;
You will know what will happen and how long it will take.&lt;br /&gt;
|-&lt;br /&gt;
|| Activity 2 (Students in groups)&lt;br /&gt;
|| Activity 2 &lt;br /&gt;
&lt;br /&gt;
Duration: 20 minutes. &lt;br /&gt;
&lt;br /&gt;
Objective: explore '''reversible and irreversible changes'''. &lt;br /&gt;
&lt;br /&gt;
Materials per group: ice cubes, clay, paper. (optionally: copper sulphate or Zinc oxide), and observation sheets. &lt;br /&gt;
&lt;br /&gt;
Teacher’s action: &lt;br /&gt;
&lt;br /&gt;
Form groups of 4 to 5 students.&lt;br /&gt;
&lt;br /&gt;
Issue materials to the groups.&lt;br /&gt;
&lt;br /&gt;
Remind students about safety while using the materials.&lt;br /&gt;
&lt;br /&gt;
Demonstration: how to test a material by heating, stretching, or tearing.&lt;br /&gt;
&lt;br /&gt;
Go around the class and ask 'What do you see before and after?'&lt;br /&gt;
&lt;br /&gt;
Can we reverse this change?&lt;br /&gt;
&lt;br /&gt;
Hand out sheets to students and ask them to record the observations.&lt;br /&gt;
&lt;br /&gt;
Student action: Work in groups&lt;br /&gt;
&lt;br /&gt;
Perform the assigned tasks.&lt;br /&gt;
&lt;br /&gt;
Record observations in a tabular form.&lt;br /&gt;
&lt;br /&gt;
Discuss with group mates and share ideas. &lt;br /&gt;
&lt;br /&gt;
Assessment check: Listen for evidence‑based justifications of 'reversible/irreversible.'&lt;br /&gt;
&lt;br /&gt;
The sample observation sheet is available as a code file.&lt;br /&gt;
|-&lt;br /&gt;
|| How to check learning?&lt;br /&gt;
|| Step 4 is '''Assessment for Learning'''. &lt;br /&gt;
&lt;br /&gt;
It is important to check progress during and after the lesson. &lt;br /&gt;
&lt;br /&gt;
Teacher can do that by building small checks into each activity.&lt;br /&gt;
&lt;br /&gt;
The checks can be questions, observations or peer feedback. &lt;br /&gt;
&lt;br /&gt;
For Example: Ask 'Why do you think so?' during activities.&lt;br /&gt;
&lt;br /&gt;
Ask the students to use a thumbs‑up/thumbs‑down to respond for the given activity.&lt;br /&gt;
&lt;br /&gt;
End the class with a homework or post-class reflection.&lt;br /&gt;
&lt;br /&gt;
For example: 'Write one reversible change you observed today.'&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Step 5 is listing '''key competencies'''. &lt;br /&gt;
&lt;br /&gt;
What are '''key competencies'''?:&lt;br /&gt;
&lt;br /&gt;
They are abilities and attitudes developed while learning.&lt;br /&gt;
&lt;br /&gt;
For example: '''Collaboration''', '''Communication''' and '''Critical Thinking'''.&lt;br /&gt;
&lt;br /&gt;
You may also add Creativity, Problem‑solving, etc. &lt;br /&gt;
&lt;br /&gt;
Why are these important?&lt;br /&gt;
&lt;br /&gt;
They prepare students for real‑life situations beyond academics. &lt;br /&gt;
&lt;br /&gt;
How do we incorporate competencies in students? &lt;br /&gt;
&lt;br /&gt;
Plan activities where students must talk, work in groups, solve problems, or present ideas. &lt;br /&gt;
&lt;br /&gt;
This is how you can document your plan. &lt;br /&gt;
&lt;br /&gt;
Note the competency next to each activity.&lt;br /&gt;
&lt;br /&gt;
For example, Activity 1 develops Curiosity and '''Critical Thinking'''. &lt;br /&gt;
&lt;br /&gt;
Activity 2 develops '''Collaboration''' and '''Communication'''.&lt;br /&gt;
&lt;br /&gt;
By documenting you show that you are intentionally building skills.&lt;br /&gt;
|-&lt;br /&gt;
|| Completed '''Lesson Plan''' shown&lt;br /&gt;
&lt;br /&gt;
outcomes,activities, assessment, with timing and roles&lt;br /&gt;
|| Now you can see how Steps 1 to 5 connect. &lt;br /&gt;
&lt;br /&gt;
Keep reviewing your '''learning outcomes''' to stay on track.&lt;br /&gt;
&lt;br /&gt;
The sample '''lesson plan''' is available as a code file.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment, choose a topic from your subject. &lt;br /&gt;
&lt;br /&gt;
Create a full '''lesson plan''' for the topic by applying the below five steps:&lt;br /&gt;
* '''General Information'''&lt;br /&gt;
* '''Learning Outcomes'''&lt;br /&gt;
* '''Lesson Activities''' &lt;br /&gt;
* '''Assessment for Learning''' &lt;br /&gt;
* '''Key Competencies'''.&lt;br /&gt;
&lt;br /&gt;
Share your plan with a colleague and refine it with feedback.&lt;br /&gt;
|| As an assignment, choose a topic from your subject. &lt;br /&gt;
&lt;br /&gt;
Create a full '''lesson plan''' for the topic by applying the below five steps:&lt;br /&gt;
&lt;br /&gt;
Then share your plan with a colleague and refine it with feedback.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you.'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Pvt. Ltd. SINE IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for joining!&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Freeplane/C2/Creating-a-Mind-Map/English</id>
		<title>Freeplane/C2/Creating-a-Mind-Map/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Freeplane/C2/Creating-a-Mind-Map/English"/>
				<updated>2025-11-22T08:02:15Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title: Creating a Mind Map'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Saisudha Sugavanam and Madhuri Ganapathi'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords''': Mind map,photosynthesis,video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide '''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on '''Creating a Mind Map'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will,&lt;br /&gt;
&lt;br /&gt;
Explore how to create a '''mind map''' through simple step-by-step instructions.&lt;br /&gt;
&lt;br /&gt;
Build 4 to 6 main branches from the central idea.&lt;br /&gt;
&lt;br /&gt;
Apply the method using Photosynthesis as an example.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Person thinking with colourful branches&lt;br /&gt;
|| What exactly is a '''mind map'''?A '''mind map''' is a picture of how our brain thinks.&lt;br /&gt;
&lt;br /&gt;
It starts from an idea in the centre and expands in all directions.&lt;br /&gt;
&lt;br /&gt;
Our brain loves colour, pictures and patterns.It doesn’t like long lists.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Example- “Holiday Planning” '''mind map'''&lt;br /&gt;
|| Let us see Riya in action. Riya uses '''mind map'''s to plan, take&amp;amp;nbsp; notes or brainstorm ideas.&lt;br /&gt;
&lt;br /&gt;
For example, planning a trip, executing a trip and enjoying the planned holiday.&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Notebook and coloured pens&lt;br /&gt;
|| Now it's time to create a map by hand. &lt;br /&gt;
&lt;br /&gt;
All we need is a sheet of paper and coloured pens or pencils. &lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Blank page with circle in centre&lt;br /&gt;
|| Now let’s write the main idea in the centre of the page.&lt;br /&gt;
&lt;br /&gt;
Draw a circle or bubble around it.&lt;br /&gt;
&lt;br /&gt;
Let’s write photosynthesis. This is our central idea.So, what is photosynthesis?&lt;br /&gt;
&lt;br /&gt;
It is the process by which green plants, algae, and some bacteria use sunlight, carbon dioxide, and water to produce glucose and release oxygen. &lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Three main branches grow outward&lt;br /&gt;
|| Step 2: Draw thick, curved branches from the centre.&lt;br /&gt;
&lt;br /&gt;
Each branch represents a key idea.&lt;br /&gt;
&lt;br /&gt;
For Photosynthesis, let’s add Requirements, Process and Products.&lt;br /&gt;
&lt;br /&gt;
Use a different colour for each branch.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add smaller branches under Requirements&lt;br /&gt;
|| Step 3: Let us add smaller branches for supporting details.Under Requirements, let’s add Sunlight, Water, CO₂ and Chlorophyll.&lt;br /&gt;
&lt;br /&gt;
We will use one keyword per branch.This will keep ideas flexible.Add little drawings such as sun, a leaf, a drop of water.&amp;amp;nbsp;Our brain loves images!&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add branches under ProcessShow arrows to indicate flow and cause and effect.&lt;br /&gt;
|| Under Process, let’s add Light Reaction and Dark Reaction.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add branches under Products&lt;br /&gt;
|| Under Products, let’s write Glucose and Oxygen. &lt;br /&gt;
&lt;br /&gt;
Now connect Glucose to Energy for Plant Growth.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: '''Mind map''' growing radiantly&lt;br /&gt;
|| Step 4: Let's keep expanding. Don’t worry about neatness.&lt;br /&gt;
&lt;br /&gt;
Every '''mind map''' is unique. &lt;br /&gt;
&lt;br /&gt;
Pause here and think, what other ideas can you add?&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add colour and doodles&lt;br /&gt;
|| Step 5: Let us use colours and shapes to make it memorable. &lt;br /&gt;
&lt;br /&gt;
Colours stimulate memory and keep both sides of our brain active.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Completed '''mind map''' displayed&lt;br /&gt;
|| And that’s it!&amp;amp;nbsp; Photosynthesis '''mind map''' is ready. &lt;br /&gt;
&lt;br /&gt;
Here we can see the entire process in one glance.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Teacher with students creating maps&lt;br /&gt;
|| '''Mind map'''s aren’t only for study; they’re for life! &lt;br /&gt;
&lt;br /&gt;
Teachers can use them to introduce new topics or summarise lessons. &lt;br /&gt;
&lt;br /&gt;
Students can create their own maps as a classroom activity. &lt;br /&gt;
&lt;br /&gt;
It encourages imagination, critical thinking and creativity.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Benefits list appears&lt;br /&gt;
|| '''Mind map'''s help us to: &lt;br /&gt;
&lt;br /&gt;
1. Connect ideas visually &lt;br /&gt;
&lt;br /&gt;
2. Recall concepts quickly &lt;br /&gt;
&lt;br /&gt;
3. Engage in active learning instead of rote memorisation &lt;br /&gt;
&lt;br /&gt;
4. Stimulate creative thinking and long-term memory&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Everyday uses – goal setting, planning, decisions&lt;br /&gt;
|| We can use '''mind map'''s to plan our week, set goals or make decisions. &lt;br /&gt;
&lt;br /&gt;
The same method works for any topic from science to self-growth.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Hand-drawn map fades into digital version&lt;br /&gt;
|| When hand-drawing becomes easy, try Freeplane to create and share maps.&lt;br /&gt;
&lt;br /&gt;
Let’s learn to create maps using Freeplane in our next tutorial- Introduction to Freeplane.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Radiant brain image expanding outward&lt;br /&gt;
|| Please remember: Every '''mind map''' begins with one idea and radiates outward. &lt;br /&gt;
&lt;br /&gt;
That’s exactly how our brain thinks- radiantly and creatively!&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''Summary Slide'''&lt;br /&gt;
|| Let’s summarise.A '''mind map''' is&amp;amp;nbsp; a visual tool that shows connections between ideas.&lt;br /&gt;
&lt;br /&gt;
We created a '''mind map''' using Photosynthesis as an example.&lt;br /&gt;
&lt;br /&gt;
We used keywords, colours and images to make it clear and memorable.&lt;br /&gt;
&lt;br /&gt;
'''Mind map'''s help anyone learn, teach, plan and think more creatively.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment Slide'''&lt;br /&gt;
|| Here’s an assignment for you.Choose a topic you know well like, Healthy Eating or Time Management.Create a '''mind map''' using these steps.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Use keywords, colours and drawings.&lt;br /&gt;
&lt;br /&gt;
Share it with a friend or classmate and compare your maps.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Pvt. Ltd. SIN E, IIT Bombay. Thank you for learning radiantly with us! &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Freeplane/C2/Creating-a-Mind-Map/English</id>
		<title>Freeplane/C2/Creating-a-Mind-Map/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Freeplane/C2/Creating-a-Mind-Map/English"/>
				<updated>2025-11-22T07:59:41Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title: Creating a Mind Map'''  '''Author: Saisudha Sugavanam and Madhuri Ganapathi'''  '''Keywords: Mind map''',&amp;amp;nbsp; photosynthesis, video tutorial.   {|border=1 |- || ''...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title: Creating a Mind Map'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Saisudha Sugavanam and Madhuri Ganapathi'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: Mind map''',&amp;amp;nbsp; photosynthesis, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide '''&lt;br /&gt;
|| Welcome to this Spoken Tutorial on '''Creating a Mind Map'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will,&lt;br /&gt;
&lt;br /&gt;
Explore how to create a '''mind map''' through simple step-by-step instructions.&lt;br /&gt;
&lt;br /&gt;
Build 4 to 6 main branches from the central idea.&lt;br /&gt;
&lt;br /&gt;
Apply the method using Photosynthesis as an example.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Person thinking with colourful branches&lt;br /&gt;
|| What exactly is a '''mind map'''?A '''mind map''' is a picture of how our brain thinks.&lt;br /&gt;
&lt;br /&gt;
It starts from an idea in the centre and expands in all directions.&lt;br /&gt;
&lt;br /&gt;
Our brain loves colour, pictures and patterns.It doesn’t like long lists.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Example- “Holiday Planning” '''mind map'''&lt;br /&gt;
|| Let us see Riya in action. Riya uses '''mind map'''s to plan, take&amp;amp;nbsp; notes or brainstorm ideas.&lt;br /&gt;
&lt;br /&gt;
For example, planning a trip, executing a trip and enjoying the planned holiday.&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Notebook and coloured pens&lt;br /&gt;
|| Now it's time to create a map by hand. &lt;br /&gt;
&lt;br /&gt;
All we need is a sheet of paper and coloured pens or pencils. &lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Blank page with circle in centre&lt;br /&gt;
|| Now let’s write the main idea in the centre of the page.&lt;br /&gt;
&lt;br /&gt;
Draw a circle or bubble around it.&lt;br /&gt;
&lt;br /&gt;
Let’s write photosynthesis. This is our central idea.So, what is photosynthesis?&lt;br /&gt;
&lt;br /&gt;
It is the process by which green plants, algae, and some bacteria use sunlight, carbon dioxide, and water to produce glucose and release oxygen. &lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Three main branches grow outward&lt;br /&gt;
|| Step 2: Draw thick, curved branches from the centre.&lt;br /&gt;
&lt;br /&gt;
Each branch represents a key idea.&lt;br /&gt;
&lt;br /&gt;
For Photosynthesis, let’s add Requirements, Process and Products.&lt;br /&gt;
&lt;br /&gt;
Use a different colour for each branch.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add smaller branches under Requirements&lt;br /&gt;
|| Step 3: Let us add smaller branches for supporting details.Under Requirements, let’s add Sunlight, Water, CO₂ and Chlorophyll.&lt;br /&gt;
&lt;br /&gt;
We will use one keyword per branch.This will keep ideas flexible.Add little drawings such as sun, a leaf, a drop of water.&amp;amp;nbsp;Our brain loves images!&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add branches under ProcessShow arrows to indicate flow and cause and effect.&lt;br /&gt;
|| Under Process, let’s add Light Reaction and Dark Reaction.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add branches under Products&lt;br /&gt;
|| Under Products, let’s write Glucose and Oxygen. &lt;br /&gt;
&lt;br /&gt;
Now connect Glucose to Energy for Plant Growth.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: '''Mind map''' growing radiantly&lt;br /&gt;
|| Step 4: Let's keep expanding. Don’t worry about neatness.&lt;br /&gt;
&lt;br /&gt;
Every '''mind map''' is unique. &lt;br /&gt;
&lt;br /&gt;
Pause here and think, what other ideas can you add?&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Add colour and doodles&lt;br /&gt;
|| Step 5: Let us use colours and shapes to make it memorable. &lt;br /&gt;
&lt;br /&gt;
Colours stimulate memory and keep both sides of our brain active.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Completed '''mind map''' displayed&lt;br /&gt;
|| And that’s it!&amp;amp;nbsp; Photosynthesis '''mind map''' is ready. &lt;br /&gt;
&lt;br /&gt;
Here we can see the entire process in one glance.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Teacher with students creating maps&lt;br /&gt;
|| '''Mind map'''s aren’t only for study; they’re for life! &lt;br /&gt;
&lt;br /&gt;
Teachers can use them to introduce new topics or summarise lessons. &lt;br /&gt;
&lt;br /&gt;
Students can create their own maps as a classroom activity. &lt;br /&gt;
&lt;br /&gt;
It encourages imagination, critical thinking and creativity.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Benefits list appears&lt;br /&gt;
|| '''Mind map'''s help us to: &lt;br /&gt;
&lt;br /&gt;
1. Connect ideas visually &lt;br /&gt;
&lt;br /&gt;
2. Recall concepts quickly &lt;br /&gt;
&lt;br /&gt;
3. Engage in active learning instead of rote memorisation &lt;br /&gt;
&lt;br /&gt;
4. Stimulate creative thinking and long-term memory&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Everyday uses – goal setting, planning, decisions&lt;br /&gt;
|| We can use '''mind map'''s to plan our week, set goals or make decisions. &lt;br /&gt;
&lt;br /&gt;
The same method works for any topic from science to self-growth.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Hand-drawn map fades into digital version&lt;br /&gt;
|| When hand-drawing becomes easy, try Freeplane to create and share maps.&lt;br /&gt;
&lt;br /&gt;
Let’s learn to create maps using Freeplane in our next tutorial- Introduction to Freeplane.&lt;br /&gt;
|-&lt;br /&gt;
|| Graphic: Radiant brain image expanding outward&lt;br /&gt;
|| Please remember: Every '''mind map''' begins with one idea and radiates outward. &lt;br /&gt;
&lt;br /&gt;
That’s exactly how our brain thinks- radiantly and creatively!&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''Summary Slide'''&lt;br /&gt;
|| Let’s summarise.A '''mind map''' is&amp;amp;nbsp; a visual tool that shows connections between ideas.&lt;br /&gt;
&lt;br /&gt;
We created a '''mind map''' using Photosynthesis as an example.&lt;br /&gt;
&lt;br /&gt;
We used keywords, colours and images to make it clear and memorable.&lt;br /&gt;
&lt;br /&gt;
'''Mind map'''s help anyone learn, teach, plan and think more creatively.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment Slide'''&lt;br /&gt;
|| Here’s an assignment for you.Choose a topic you know well like, Healthy Eating or Time Management.Create a '''mind map''' using these steps.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Use keywords, colours and drawings.&lt;br /&gt;
&lt;br /&gt;
Share it with a friend or classmate and compare your maps.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by EduPyramids Educational Services Pvt. Ltd. SIN E, IIT Bombay. Thank you for learning radiantly with us! &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Conversational-AI-Tools/C2/Prompt-Engineering/English</id>
		<title>Conversational-AI-Tools/C2/Prompt-Engineering/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Conversational-AI-Tools/C2/Prompt-Engineering/English"/>
				<updated>2025-11-21T06:25:24Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Prompt Engineering'''  '''Author: Sudhakar Kumar'''  '''Keywords''': prompt, engineering, context, background, few-shot, video tutorial.    {|border=1...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Prompt Engineering'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Sudhakar Kumar'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords''': prompt, engineering, context, background, few-shot, video tutorial. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration '''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1 '''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide '''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Prompt Engineering'''. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn about&lt;br /&gt;
* Prompt engineering&lt;br /&gt;
* Importance of context and background&lt;br /&gt;
* Few-shot prompting &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using &lt;br /&gt;
* Ubuntu Linux OS version 22.04 &lt;br /&gt;
* Firefox web browser version 141.0.4&lt;br /&gt;
* Visual Studio Code version 1.100.3&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4 '''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of:&lt;br /&gt;
* Using internet, and&lt;br /&gt;
* Programming in C/C++ &lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial.&lt;br /&gt;
# '''prompt-engineering.cpp'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''What is Prompt Engineering?'''&lt;br /&gt;
|| Let us learn about Prompt engineering.&lt;br /&gt;
* It is a skill of writing and refining prompts for AI tools like ChatGPT.&lt;br /&gt;
* It means designing clear instructions, questions, or context.&lt;br /&gt;
* Good prompts guide the AI tool to give accurate, useful, or creative answers.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight the address bar in Google Chrome'''&lt;br /&gt;
|| Open ChatGPT on any browser.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us give a prompt to ChatGPT.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight''' &lt;br /&gt;
&lt;br /&gt;
'''Ask anything in the middle of the page'''&lt;br /&gt;
&lt;br /&gt;
'''Type:''' You are a C++ tutor.&lt;br /&gt;
&lt;br /&gt;
Explain the difference between function overloading and function overriding in C++ with examples. Press Enter. &lt;br /&gt;
|| You are a C++ tutor. Explain the difference between function overloading and function overriding in C++ with examples.Press Enter. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight the generated response in the chat window'''&lt;br /&gt;
|| ChatGPT first defines function overloading, followed by an example. &lt;br /&gt;
&lt;br /&gt;
Similarly, for function overriding. &lt;br /&gt;
&lt;br /&gt;
Then tabulates the differences between the two. &lt;br /&gt;
&lt;br /&gt;
Note that the content of the response may differ at your end, even with the exact same prompt. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight compile-time polymorphism in the generated response'''&lt;br /&gt;
|| Suppose I am unfamiliar with compile-time polymorphism. &lt;br /&gt;
&lt;br /&gt;
I can ask ChatGPT to provide further explanation. &lt;br /&gt;
&lt;br /&gt;
Highlight this term. &lt;br /&gt;
&lt;br /&gt;
Observe that an option of “Ask ChatGPT” appears. &lt;br /&gt;
&lt;br /&gt;
Click this option and type your query.&lt;br /&gt;
&lt;br /&gt;
I will type, explain this term, and press Enter. &lt;br /&gt;
&lt;br /&gt;
ChatGPT now explains compile-time polymorphism. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight some terms in the generated response such that the Ask ChatGPT option appears '''&lt;br /&gt;
|| “Ask ChatGPT” is a built-in feature of ChatGPT’s web app. &lt;br /&gt;
&lt;br /&gt;
Think of it like a shortcut for quickly asking “What does this mean?” &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us try another prompt.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| I am a first-year Computer Science student, and I know the concepts of variables and functions.&lt;br /&gt;
&lt;br /&gt;
I want ChatGPT to explain references in C++. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Click New Chat '''&lt;br /&gt;
|| Click on New chat to open a new chat. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Type: '''Explain the concept of references in C++ to a first-year CS student who only knows variables and functions. Press Enter.&lt;br /&gt;
&lt;br /&gt;
'''Highlight the few lines of response'''&lt;br /&gt;
|| Type the following&lt;br /&gt;
&lt;br /&gt;
And, press Enter.&lt;br /&gt;
&lt;br /&gt;
Observe the response.&lt;br /&gt;
&lt;br /&gt;
ChatGPT explains the concept of references in C++. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Next, I want to teach the concept of dangling pointers in C with some funny analogy. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Click New chat'''&lt;br /&gt;
&lt;br /&gt;
'''Type: '''Explain the concept of dangling pointers in C in a way that a beginner can understand, using a funny or relatable real-life analogy.&lt;br /&gt;
|| Click New chat to start a new conversation.&lt;br /&gt;
&lt;br /&gt;
In the new chat, type the following. &lt;br /&gt;
&lt;br /&gt;
And, press Enter. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight the Funny analogy in the generated response'''&lt;br /&gt;
&lt;br /&gt;
'''Scroll and show'''&lt;br /&gt;
&lt;br /&gt;
'''Cursor on previous chat'''&lt;br /&gt;
|| See how ChatGPT adds a funny analogy in its response.&lt;br /&gt;
&lt;br /&gt;
All my previous chats appear under Chats in the sidebar.&lt;br /&gt;
&lt;br /&gt;
I can click on any of them to open and continue that conversation.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us now learn about few-shot prompting. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Few-shot Prompting '''&lt;br /&gt;
|| If we give ChatGPT a few inputs with examples, it will resolve the issues.&lt;br /&gt;
&lt;br /&gt;
This technique helps the tool recognize patterns and apply them to similar unseen problems.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Show the code in the visual studio code editor.'''&lt;br /&gt;
|| Let us try out a few-shot prompt with an example. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have a C++ code, and I want ChatGPT to identify the error in a particular format. &lt;br /&gt;
|- &lt;br /&gt;
|| Type&lt;br /&gt;
&lt;br /&gt;
'''Identify the error in the following C++ code.'''&lt;br /&gt;
&lt;br /&gt;
'''Code:'''&lt;br /&gt;
&lt;br /&gt;
'''int main() {'''&lt;br /&gt;
&lt;br /&gt;
'''int a = &amp;quot;hello&amp;quot;;'''&lt;br /&gt;
&lt;br /&gt;
'''return 0;'''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
&lt;br /&gt;
'''Error:'''&lt;br /&gt;
&lt;br /&gt;
'''Assigning a string literal to an int variable is invalid.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Code:'''&lt;br /&gt;
&lt;br /&gt;
'''int main() {'''&lt;br /&gt;
&lt;br /&gt;
'''cout &amp;lt;&amp;lt; &amp;quot;Hello&amp;quot;;'''&lt;br /&gt;
&lt;br /&gt;
'''return 0'''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
&lt;br /&gt;
'''Error:'''&lt;br /&gt;
&lt;br /&gt;
'''Missing semicolon after return 0.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Code:'''&lt;br /&gt;
&lt;br /&gt;
'''int main() {'''&lt;br /&gt;
&lt;br /&gt;
'''int arr[3] = {1, 2, 3, 4};'''&lt;br /&gt;
&lt;br /&gt;
'''return 0;'''&lt;br /&gt;
&lt;br /&gt;
'''}'''&lt;br /&gt;
&lt;br /&gt;
'''Error:'''&lt;br /&gt;
|| Go to ChatGPT and start a new chat. &lt;br /&gt;
&lt;br /&gt;
Type the code at the prompt: &lt;br /&gt;
&lt;br /&gt;
And press Enter. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight Error: in the generated response '''&lt;br /&gt;
|| Observe that ChatGPT prints the error with Error semicolon.&lt;br /&gt;
&lt;br /&gt;
Then the error message, followed by an explanation. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| More information on prompt engineering and few-shot prompting, is provided in the Additional Reading Material available on this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt&lt;br /&gt;
* Prompt Engineering&lt;br /&gt;
* Importance of Context and Background &lt;br /&gt;
* Few-shot Prompting &lt;br /&gt;
|| With this, we come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment '''&lt;br /&gt;
&lt;br /&gt;
Give ChatGPT the same programming question using two scenarios: &lt;br /&gt;
# Without role or context, and &lt;br /&gt;
# With role and context. &lt;br /&gt;
&lt;br /&gt;
Compare how the answers differ.&lt;br /&gt;
|| As an assignment, &lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by '''EduPyramids Educational Services Private Limited''', '''SINE, IIT Bombay.'''&lt;br /&gt;
&lt;br /&gt;
Thank you for joining! &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/Conversational-AI-Tools/C2/Introduction-to-Conversational-AI/English</id>
		<title>Conversational-AI-Tools/C2/Introduction-to-Conversational-AI/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Conversational-AI-Tools/C2/Introduction-to-Conversational-AI/English"/>
				<updated>2025-11-20T13:14:35Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script''': Introduction to Conversational AI  '''Author''': Sudhakar Kumar and EduPyramids Team.  '''Keywords''': chatgpt, llms, ai, static, dynamic, prompt, v...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script''': Introduction to Conversational AI&lt;br /&gt;
&lt;br /&gt;
'''Author''': Sudhakar Kumar and EduPyramids Team.&lt;br /&gt;
&lt;br /&gt;
'''Keywords''': chatgpt, llms, ai, static, dynamic, prompt, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide '''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Introduction to Conversational AI'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial, we will learn about:&lt;br /&gt;
* Introduction to conversational AI tools&lt;br /&gt;
* How AI tools work &lt;br /&gt;
* Customizing ChatGPT&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using &lt;br /&gt;
* Ubuntu Linux OS version 22.04 &lt;br /&gt;
* Firefox web browser version 141.0.4&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4 '''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites '''&lt;br /&gt;
|| To follow this tutorial, learners should know &lt;br /&gt;
* Basics of using internet, and&lt;br /&gt;
* How to frame simple sentences in English&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5Conversational AI Tools'''&lt;br /&gt;
|| Conversational AI software tools:&lt;br /&gt;
* They interact with users using natural language through text or voice&lt;br /&gt;
* Understanding its intent and give the response&lt;br /&gt;
* AI tools are powered and rely on '''Large Language Models''' as its core technology&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''AI Tools'''&lt;br /&gt;
|| We will focus on using conversational AI tools to code efficiently. &lt;br /&gt;
* I will use ChatGPT throughout this series. &lt;br /&gt;
* Learners are welcome to explore other AI tools as well. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us explore the web interface of ChatGPT. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Open Google Chrome and highlight the address bar'''&lt;br /&gt;
&lt;br /&gt;
'''Type [http://chatgpt.com/ chatgpt.com] and press Enter.'''&lt;br /&gt;
|| Open a browser on your computer.&lt;br /&gt;
&lt;br /&gt;
I am using Firefox web browser. &lt;br /&gt;
&lt;br /&gt;
In the address bar, type [http://chatgpt.com/ chatgpt.com] and press Enter. &lt;br /&gt;
&lt;br /&gt;
Log in by entering the required credentials if not done before. &lt;br /&gt;
&lt;br /&gt;
I am already logged in. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: various options on the left side panel of the page'''&lt;br /&gt;
|| Once I am logged in, various options are available to use. &lt;br /&gt;
&lt;br /&gt;
For example, on the left side panel, options such as New chat, Search chats, Library, and Projects are available.&lt;br /&gt;
&lt;br /&gt;
This is the interface of ChatGPT as of October 2025. However, it may change in the near future. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: the user name in the bottom left of the page '''&lt;br /&gt;
|| At the bottom left, my username appears, and it says Free as of now. &lt;br /&gt;
&lt;br /&gt;
It means that I am using the Free version of ChatGPT. &lt;br /&gt;
&lt;br /&gt;
I will use the Free version throughout this series. &lt;br /&gt;
&lt;br /&gt;
Note that the free version may have certain limitations, such as message usage caps. &lt;br /&gt;
&lt;br /&gt;
Click on the username to view additional options, including Help, Settings, Personalization, etc.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: Settings in the pop-up when clicking on the user name'''&lt;br /&gt;
|| Click on '''Settings''' to view the various options available. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: Personalization in the left corner of Settings'''&lt;br /&gt;
|| Let us click on '''Personalization'''. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Scroll down in Personalization'''&lt;br /&gt;
&lt;br /&gt;
Nickname: enter your own name.Occupation: Service&lt;br /&gt;
&lt;br /&gt;
Click on Save&lt;br /&gt;
|| Here, I can share details like my nickname, occupation, and more. &lt;br /&gt;
&lt;br /&gt;
Pause the tutorial and enter the details as shown.&lt;br /&gt;
&lt;br /&gt;
Click on Save.&lt;br /&gt;
&lt;br /&gt;
Once I do, ChatGPT uses them to personalize its responses for future conversations.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: Advanced in the Personalization '''&lt;br /&gt;
&lt;br /&gt;
'''Click the corresponding dropdown'''&lt;br /&gt;
|| Scroll down to see the '''Advanced '''option. &lt;br /&gt;
&lt;br /&gt;
Click on the dropdown to see the various fields. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: Web search and Code '''&lt;br /&gt;
|| By default, web search is enabled. &lt;br /&gt;
&lt;br /&gt;
This lets ChatGPT automatically search the web for answers.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us ask a few questions to see when ChatGPT searches the web. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: The X symbol in the left corner'''&lt;br /&gt;
|| Close the '''Personalization''' tab. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: Ask Anything in the middle of the page'''&lt;br /&gt;
&lt;br /&gt;
'''Type: '''Who is the current prime minister of India? Press Enter.&lt;br /&gt;
|| Type the following prompt: Who is the current prime minister of India? And, press Enter. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: searching the web message'''&lt;br /&gt;
|| Since web search is on, ChatGPT performs a live search while drafting the response.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: the generated response in the chat window'''&lt;br /&gt;
|| In its response, it says that &lt;br /&gt;
&lt;br /&gt;
The current Prime Minister of India is Narendra Modi. &lt;br /&gt;
&lt;br /&gt;
Note that the content of the response may differ, even if you repeat the same questions.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: Wikipedia and other references in the generated response'''&lt;br /&gt;
|| ChatGPT also provides link to the websites from which it retrieved this information. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us ask something related to C++ programming. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: New chat in the top left'''&lt;br /&gt;
|| Click on New chat. A new chat window opens.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: Current Prime Minister of India under Chats'''&lt;br /&gt;
|| My previous chat appears here at the bottom left corner. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: Ask Anything'''&lt;br /&gt;
&lt;br /&gt;
'''Type: '''Explain the difference between std::vector and std::array in C++ with examples. Press Enter. &lt;br /&gt;
|| In the new chat, type the following. Explain the difference between std::vector and std::array in C++ with examples.&lt;br /&gt;
&lt;br /&gt;
Press Enter. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: '''&lt;br /&gt;
&lt;br /&gt;
'''The generated response'''&lt;br /&gt;
|| ChatGPT will not search the web for this. &lt;br /&gt;
&lt;br /&gt;
So, web search is not needed for static knowledge. &lt;br /&gt;
&lt;br /&gt;
For example, programming concepts, historical facts, etc.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: '''&lt;br /&gt;
&lt;br /&gt;
'''Current Prime Minister of India under Chats'''&lt;br /&gt;
|| On the other hand, web search is needed for dynamic knowledge. &lt;br /&gt;
&lt;br /&gt;
For example, news, stock prices, etc. &lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| To know more about AI tools and '''ChatGPT,''' refer to the Additional Material available on this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt:&lt;br /&gt;
* Introduction to conversational AI tools&lt;br /&gt;
* How AI tools work &lt;br /&gt;
* Customizing ChatGPT&lt;br /&gt;
|| With this, we come to the end of this tutorial. Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment '''&lt;br /&gt;
&lt;br /&gt;
As an assignment, &lt;br /&gt;
&lt;br /&gt;
Try a few prompts that require dynamic knowledge, with web search on and off. &lt;br /&gt;
&lt;br /&gt;
Observe the difference in the responses.&lt;br /&gt;
|| As an assignment, please do the following.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| This Spoken Tutorial is brought to you by '''EduPyramids Educational Services Private Limited''', '''SINE, IIT Bombay.'''&lt;br /&gt;
&lt;br /&gt;
Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/LaTeX/C3/Defining-Colours-and-Environments/English</id>
		<title>LaTeX/C3/Defining-Colours-and-Environments/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/LaTeX/C3/Defining-Colours-and-Environments/English"/>
				<updated>2025-11-12T11:06:00Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Defining Colours and Environments '''  '''Authors: Ambika Vanchinathan'''  '''Keywords: '''LaTeX, xcolor package, colorbox, fcolorbox, definecolor, row...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Defining Colours and Environments '''&lt;br /&gt;
&lt;br /&gt;
'''Authors: Ambika Vanchinathan'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''LaTeX, xcolor package, colorbox, fcolorbox, definecolor, rowcolors, RGB, CMYK, HTML color, video tutoria&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on '''Defining Colours and Environments'''.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Create boxes with colours and borders&lt;br /&gt;
* Define custom colors using '''RGB''', '''CMYK''', '''HTML''', and other models and&lt;br /&gt;
* Apply colours to table rows&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
* '''Linux Mint OS version 21.3'''&lt;br /&gt;
* '''TeXworks version 0.6.6'''&lt;br /&gt;
|| To record this tutorial I’m using the following setup. &lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of''' LaTeX'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
&lt;br /&gt;
1. '''xcolor-eg.tex'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
&lt;br /&gt;
Let us see how to get a framed box with colours.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 27&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
show the output&lt;br /&gt;
|| Uncomment line 27.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
Output shows a boxed text in yellow and some random text in it.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: '''&lt;br /&gt;
&lt;br /&gt;
'''line 27'''&lt;br /&gt;
|| The command '''\colorbox '''takes 2 arguments.&lt;br /&gt;
&lt;br /&gt;
The first one is the colour of the box.&lt;br /&gt;
&lt;br /&gt;
And the second one is the text that is inside the box.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 31&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
show the output&lt;br /&gt;
|| Uncomment line 31.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
Output shows some text enclosed in a box.&lt;br /&gt;
&lt;br /&gt;
The color of the frame is red and&lt;br /&gt;
&lt;br /&gt;
box filled with green colour.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''line 31'''&lt;br /&gt;
|| This command creates a framed box.&lt;br /&gt;
&lt;br /&gt;
The command '''\fcolorbox '''takes 3 arguments.&lt;br /&gt;
&lt;br /&gt;
First one is the frame colour.&lt;br /&gt;
&lt;br /&gt;
Second one is the colour to be filled in the box.&lt;br /&gt;
&lt;br /&gt;
Third is the actual text that goes inside the framed box.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 33&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
show the output&lt;br /&gt;
|| Uncomment line 33.&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
Output shows another framed box with a black frame filled with lime colour.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us now see how to define new colours.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 35&lt;br /&gt;
&lt;br /&gt;
'''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''line 35'''&lt;br /&gt;
&lt;br /&gt;
Point to the defined colour.&lt;br /&gt;
&lt;br /&gt;
Show the options shown as reference, &lt;br /&gt;
|| Uncomment line 35.&lt;br /&gt;
&lt;br /&gt;
The command '''\definecolor''' defines a new colour. &lt;br /&gt;
&lt;br /&gt;
It takes 3 arguments.&lt;br /&gt;
&lt;br /&gt;
1. name of the new colour to be defined&lt;br /&gt;
&lt;br /&gt;
2. model – '''rgb, cmyk''' etc.&lt;br /&gt;
&lt;br /&gt;
3. colour definition – Each number shows how much red, green, and blue are mixed to get a new color.&lt;br /&gt;
&lt;br /&gt;
Here we have defined a colour called '''myOrange''' in rgb model .&lt;br /&gt;
&lt;br /&gt;
Complete options are given at the end of the '''TeX''' file for reference.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us apply the newly defined '''myOrange '''colour to the text.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 37&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 37&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
Output shows the text in '''myOrange''' colour from the section heading onwards.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let’s see how to colour the rows in the table.&lt;br /&gt;
|- &lt;br /&gt;
|| Comment line 4&lt;br /&gt;
&lt;br /&gt;
Uncomment the line 41, 5&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Comment line 4.&lt;br /&gt;
&lt;br /&gt;
Uncomment lines 5 and 41.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
The output shows the table rows in yellow and lime colour.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''lines 41, 5'''&lt;br /&gt;
|| The command '''\rowcolors''' painted the rows in the table.&lt;br /&gt;
&lt;br /&gt;
We also need to load the package''' xcolor''' with''' [table]''' option to use this command.&lt;br /&gt;
&lt;br /&gt;
The '''\rowcolors''' command takes 3 arguments:&lt;br /&gt;
&lt;br /&gt;
1. The row number from which coloring should begin&lt;br /&gt;
&lt;br /&gt;
2. color for odd-numbered rows&lt;br /&gt;
&lt;br /&gt;
3. color for even-numbered rows&lt;br /&gt;
&lt;br /&gt;
Here, it starts colouring from row 1.&lt;br /&gt;
&lt;br /&gt;
Odd rows are colored in yellow and even rows in lime colour.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to the table.&lt;br /&gt;
|| Let us see how changing the starting row number affects the coloring.&lt;br /&gt;
|- &lt;br /&gt;
|| Comment the line 41&lt;br /&gt;
&lt;br /&gt;
Uncomment the line 43&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Comment line 41&lt;br /&gt;
&lt;br /&gt;
Uncomment line 43.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
Output shows colouring of the rows starting from the second row.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight line 43&lt;br /&gt;
|| Here the''' \rowcolors '''command is defined with argument 2.&lt;br /&gt;
&lt;br /&gt;
This means the coloring starts from row two.&lt;br /&gt;
&lt;br /&gt;
The first row is not coloured.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt:&lt;br /&gt;
* Creating boxes with colours and borders&lt;br /&gt;
* Defining custom colors using RGB, CMYK, HTML, and other models&lt;br /&gt;
* Applying colours to table rows&lt;br /&gt;
|| With this we come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an assignment,&lt;br /&gt;
&lt;br /&gt;
Define a new colour maroon using the '''RGB''' model mixing as (0.9, 0, 0).&lt;br /&gt;
&lt;br /&gt;
Use it as text colour of the document&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/LaTeX/C3/Adding-Colour-to-LaTeX-Documents/English</id>
		<title>LaTeX/C3/Adding-Colour-to-LaTeX-Documents/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/LaTeX/C3/Adding-Colour-to-LaTeX-Documents/English"/>
				<updated>2025-11-12T06:48:19Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Adding Colour to LaTeX Documents'''  '''Authors: Ambika Vanchinathan'''  '''Keywords:''' LaTeX, xcolor package, background color, textcolor, pagecolor,...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Adding Colour to LaTeX Documents'''&lt;br /&gt;
&lt;br /&gt;
'''Authors: Ambika Vanchinathan'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' LaTeX, xcolor package, background color, textcolor, pagecolor, nopagecolor, fcolorbox, video tutorial&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on ''' Adding Colour to LaTeX Documents.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to&lt;br /&gt;
* Use the '''xcolor''' package&lt;br /&gt;
* Apply colour to text and page background&lt;br /&gt;
* Colour a specific text and&lt;br /&gt;
* Colour Math equations&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
* Linux Mint OS version 21.3&lt;br /&gt;
* TeXworks Editor version 0.6.6&lt;br /&gt;
|| To record this tutorial I am using the following setup.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of LaTeX.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
&lt;br /&gt;
1. xcolor-eg.tex&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight :'''&lt;br /&gt;
&lt;br /&gt;
\usepackage{xcolor}&lt;br /&gt;
|| This command imports the '''xcolor''' package.&lt;br /&gt;
|- &lt;br /&gt;
|| Click the green Typeset button to run the code&lt;br /&gt;
&lt;br /&gt;
Use '''XeLatex '''to typeset.&lt;br /&gt;
&lt;br /&gt;
Show the output&lt;br /&gt;
|| Click the green '''Typeset''' button to run the code. &lt;br /&gt;
&lt;br /&gt;
The output shows text, table and math equation in black colour.&lt;br /&gt;
&lt;br /&gt;
Let us add colour to the text.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 11&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 11.&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
Output shows text, math equation and section heading in blue colour.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight :'''&lt;br /&gt;
&lt;br /&gt;
line 11&lt;br /&gt;
|| To colour the text, we use the '''\color{} '''command.&lt;br /&gt;
&lt;br /&gt;
'''color''' command takes the color name as its argument.&lt;br /&gt;
&lt;br /&gt;
Here we have given blue.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 13&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 13.&lt;br /&gt;
&lt;br /&gt;
Run the code. &lt;br /&gt;
&lt;br /&gt;
Output shows text and section title in lime colour.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
'''Highlight :'''&lt;br /&gt;
&lt;br /&gt;
'''line 13'''&lt;br /&gt;
&lt;br /&gt;
click the typeset button&lt;br /&gt;
&lt;br /&gt;
Show the output&lt;br /&gt;
|| This command changes the colour to lime.&lt;br /&gt;
&lt;br /&gt;
The previous line remains in blue colour. &lt;br /&gt;
&lt;br /&gt;
This command takes effect for all the text from here onwards.&lt;br /&gt;
&lt;br /&gt;
Let us see how to change the background colour.&lt;br /&gt;
|- &lt;br /&gt;
|| uncomment the line 15&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 15.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
Output shows gray coloured background for the entire document. &lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 15&lt;br /&gt;
|| '''\pagecolor''' command changes the background colour of the page.&lt;br /&gt;
&lt;br /&gt;
This command takes the colour name as its argument.&lt;br /&gt;
&lt;br /&gt;
Here it is specified as gray.&lt;br /&gt;
&lt;br /&gt;
Let us see some more options.&lt;br /&gt;
|- &lt;br /&gt;
|| uncomment line 17&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
show the output&lt;br /&gt;
|| Uncomment line 17.&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
We see some text in violet colour in the output.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 17&lt;br /&gt;
|| The command '''\textcolor''' takes 2 arguments.&lt;br /&gt;
&lt;br /&gt;
The first one is color''' '''and the second one is the''' '''actual text to apply the color.&lt;br /&gt;
&lt;br /&gt;
Here violet is chosen for the given text.&lt;br /&gt;
&lt;br /&gt;
Scope of the '''textcolor''' command is only for the text that is within the braces.&lt;br /&gt;
&lt;br /&gt;
So, the text outside the braces will be in its original colour.&lt;br /&gt;
|- &lt;br /&gt;
|| point to the output in lime colour&lt;br /&gt;
|| Here it is shown in lime colour.&lt;br /&gt;
&lt;br /&gt;
Let us see how to remove the background colour of the page.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 19&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
show the output&lt;br /&gt;
|| Uncomment line 19.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
Now we see that the background colour is removed in the output.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: line 19'''&lt;br /&gt;
|| '''\nopagecolor''' command removes the page colour or gives no pagecolor to the background.&lt;br /&gt;
&lt;br /&gt;
This takes effect from the current page.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 21, 25&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
show the output&lt;br /&gt;
|| Uncomment lines 21 and 25.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
The output shows the text colour changing to teal.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: line 21'''&lt;br /&gt;
|| Here we have changed the text colour to teal.&lt;br /&gt;
|- &lt;br /&gt;
|| show the output&lt;br /&gt;
|| The math equation has also changed to teal colour.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight: '''&lt;br /&gt;
&lt;br /&gt;
line 21, 23&lt;br /&gt;
|| '''\color{teal } '''command has changed the text and math equation to teal colour.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Use the '''xcolor''' package&lt;br /&gt;
* Apply colour to text and page background&lt;br /&gt;
* Colour a specific text and&lt;br /&gt;
* Colour Math equations&lt;br /&gt;
|| With this we come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an Assignment,&lt;br /&gt;
&lt;br /&gt;
Create a page with background colour blue and text in white colour.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/LaTeX/C3/Typesetting-Text-in-Multiple-Columns/English</id>
		<title>LaTeX/C3/Typesetting-Text-in-Multiple-Columns/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/LaTeX/C3/Typesetting-Text-in-Multiple-Columns/English"/>
				<updated>2025-11-11T07:33:56Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script:''' '''Typesetting Text in Multiple Columns'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Ambika Vanchinathan'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' LaTeX,&amp;amp;nbsp; multicols, columnbreak, column seprule,&amp;amp;nbsp; multicols*, column seprulecolor,&amp;amp;nbsp; two-column, video tutorial&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the spoken tutorial on '''Typesetting Text in Multiple Columns.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to&lt;br /&gt;
* Create multi-column text layouts&lt;br /&gt;
* Add and customize column separation lines&lt;br /&gt;
* Implement unbalanced columns using '''multicols*'''&lt;br /&gt;
* Insert manual column breaks&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
* '''Linux Mint OS v21.3'''&lt;br /&gt;
* '''Texworks v0.6.6'''&lt;br /&gt;
|| To record this tutorial I’m using the following setup.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of LaTeX.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
&lt;br /&gt;
'''1. multicols-eg.tex'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:''' Line 5&lt;br /&gt;
&lt;br /&gt;
'''\usepackage{multicol}'''&lt;br /&gt;
|| This command imports the multicol package.It allows us to typeset text in multiple columns within a page.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:''' Line 14&lt;br /&gt;
&lt;br /&gt;
'''{mutlicols}'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:''' lines 14 to 17&lt;br /&gt;
&lt;br /&gt;
'''Highlight: \section'''&lt;br /&gt;
&lt;br /&gt;
Point to the parameters and the optional bracket&lt;br /&gt;
|| The '''multicols''' environment accepts two parameters:&lt;br /&gt;
* The number of columns (up to 10)&lt;br /&gt;
* An optional header text&lt;br /&gt;
&lt;br /&gt;
Here, we used''' \section '''command and a paragraph inside the optional brackets.&lt;br /&gt;
|-&lt;br /&gt;
|| Click the green Typeset button and show the output&lt;br /&gt;
|| Click the green '''Typeset''' button to run the code.&lt;br /&gt;
&lt;br /&gt;
Here is the output.&lt;br /&gt;
&lt;br /&gt;
The text in the document is typeset using the multicols environment as: &lt;br /&gt;
* a single paragraph, &lt;br /&gt;
* two columns and&lt;br /&gt;
* three columns simultaneously&lt;br /&gt;
|-&lt;br /&gt;
|| Uncomment the line 8&lt;br /&gt;
|| Let’s uncomment line 8.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:''' Line 8&lt;br /&gt;
|| '''\columnseprule''' separates the columns using lines. &lt;br /&gt;
|-&lt;br /&gt;
|| Run the code and show the outputPoint the cursor on black column separation lines.&lt;br /&gt;
|| Let’s run the code&lt;br /&gt;
&lt;br /&gt;
The output shows column separation lines in black.&lt;br /&gt;
|-&lt;br /&gt;
|| Uncomment the lines 6, 9&lt;br /&gt;
|| Uncomment lines 6 and 9.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight: &lt;br /&gt;
&lt;br /&gt;
'''Line 9'''&lt;br /&gt;
&lt;br /&gt;
'''\def\columnseprulecolor{\color{red}}'''&lt;br /&gt;
&lt;br /&gt;
'''\usepackage{color}'''&lt;br /&gt;
|| This command generates the column separation lines in red colour.&lt;br /&gt;
&lt;br /&gt;
We have loaded the '''\usepackage{color}''' in the preamble.&lt;br /&gt;
|-&lt;br /&gt;
|| Run the code and show the output&lt;br /&gt;
|| Run the code.&lt;br /&gt;
&lt;br /&gt;
We can see that the colour of the lines has changed to red.&lt;br /&gt;
|-&lt;br /&gt;
|| Change '''{3}''' to '''{5}''' in line 28.&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
|| Change {3} to {5} in line 28&lt;br /&gt;
&lt;br /&gt;
Run the codeWe see five columns instead of 3 columns.&lt;br /&gt;
|-&lt;br /&gt;
|| Change 5 to 3 in line 28&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
|| Revert back to 3 in line 28&lt;br /&gt;
&lt;br /&gt;
Run the codeIt is now back to the original 3 columns&lt;br /&gt;
|-&lt;br /&gt;
|| Comment the lines 28, 41&lt;br /&gt;
&lt;br /&gt;
Uncomment the lines 29, 40&lt;br /&gt;
|| Comment lines 28 and 41.&lt;br /&gt;
&lt;br /&gt;
Uncomment lines 29 and 40.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
Lines 29, 40 &lt;br /&gt;
&lt;br /&gt;
'''Highlight:''' &lt;br /&gt;
&lt;br /&gt;
line 14.&lt;br /&gt;
|| '''multicols*''' environment fills each column completely.&lt;br /&gt;
&lt;br /&gt;
Here columns are not adjusted to the same height. &lt;br /&gt;
&lt;br /&gt;
Whereas, '''multicols''' environment fills all the columns simultaneously to the same height.&lt;br /&gt;
|-&lt;br /&gt;
|| Run the code and show the output&lt;br /&gt;
|| Run the code.&lt;br /&gt;
&lt;br /&gt;
The output shows that the columns are not filled to the same height. &lt;br /&gt;
|-&lt;br /&gt;
|| Uncomment the line 33&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 33&lt;br /&gt;
&lt;br /&gt;
Run the code to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:''' line 33&lt;br /&gt;
|| '''\columnbreak''' forces text to break manually at that point.&lt;br /&gt;
&lt;br /&gt;
The text continues in the next column.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to&lt;br /&gt;
* Create multi-column text layouts&lt;br /&gt;
* Add and customize column separation lines&lt;br /&gt;
* Implement unbalanced columns using '''multicols*'''&lt;br /&gt;
* Insert manual column breaks&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
Create a document with&lt;br /&gt;
* One 2-column section with a header &lt;br /&gt;
* One 3-column section without a header&lt;br /&gt;
* Colour the separation lines using the color of your choice.&lt;br /&gt;
|| As an '''Assignment''', please do the following&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/LaTeX/C3/Typesetting-Text-in-Multiple-Columns/English</id>
		<title>LaTeX/C3/Typesetting-Text-in-Multiple-Columns/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/LaTeX/C3/Typesetting-Text-in-Multiple-Columns/English"/>
				<updated>2025-11-11T07:32:27Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script:''' '''Typesetting Text in Multiple Columns''' '''Author: Ambika Vanchinathan''' '''Keywords:''' LaTeX,&amp;amp;nbsp; multicols, columnbreak, column seprule,&amp;amp;nb...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script:''' '''Typesetting Text in Multiple Columns'''&lt;br /&gt;
'''Author: Ambika Vanchinathan'''&lt;br /&gt;
'''Keywords:''' LaTeX,&amp;amp;nbsp; multicols, columnbreak, column seprule,&amp;amp;nbsp; multicols*, column seprulecolor,&amp;amp;nbsp; two-column, video tutorial&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the spoken tutorial on '''Typesetting Text in Multiple Columns.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to&lt;br /&gt;
* Create multi-column text layouts&lt;br /&gt;
* Add and customize column separation lines&lt;br /&gt;
* Implement unbalanced columns using '''multicols*'''&lt;br /&gt;
* Insert manual column breaks&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
* '''Linux Mint OS v21.3'''&lt;br /&gt;
* '''Texworks v0.6.6'''&lt;br /&gt;
|| To record this tutorial I’m using the following setup.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of LaTeX.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
&lt;br /&gt;
'''1. multicols-eg.tex'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:''' Line 5&lt;br /&gt;
&lt;br /&gt;
'''\usepackage{multicol}'''&lt;br /&gt;
|| This command imports the multicol package.It allows us to typeset text in multiple columns within a page.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:''' Line 14&lt;br /&gt;
&lt;br /&gt;
'''{mutlicols}'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:''' lines 14 to 17&lt;br /&gt;
&lt;br /&gt;
'''Highlight: \section'''&lt;br /&gt;
&lt;br /&gt;
Point to the parameters and the optional bracket&lt;br /&gt;
|| The '''multicols''' environment accepts two parameters:&lt;br /&gt;
* The number of columns (up to 10)&lt;br /&gt;
* An optional header text&lt;br /&gt;
&lt;br /&gt;
Here, we used''' \section '''command and a paragraph inside the optional brackets.&lt;br /&gt;
|-&lt;br /&gt;
|| Click the green Typeset button and show the output&lt;br /&gt;
|| Click the green '''Typeset''' button to run the code.&lt;br /&gt;
&lt;br /&gt;
Here is the output.&lt;br /&gt;
&lt;br /&gt;
The text in the document is typeset using the multicols environment as: &lt;br /&gt;
* a single paragraph, &lt;br /&gt;
* two columns and&lt;br /&gt;
* three columns simultaneously&lt;br /&gt;
|-&lt;br /&gt;
|| Uncomment the line 8&lt;br /&gt;
|| Let’s uncomment line 8.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:''' Line 8&lt;br /&gt;
|| '''\columnseprule''' separates the columns using lines. &lt;br /&gt;
|-&lt;br /&gt;
|| Run the code and show the outputPoint the cursor on black column separation lines.&lt;br /&gt;
|| Let’s run the code&lt;br /&gt;
&lt;br /&gt;
The output shows column separation lines in black.&lt;br /&gt;
|-&lt;br /&gt;
|| Uncomment the lines 6, 9&lt;br /&gt;
|| Uncomment lines 6 and 9.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight: &lt;br /&gt;
&lt;br /&gt;
'''Line 9'''&lt;br /&gt;
&lt;br /&gt;
'''\def\columnseprulecolor{\color{red}}'''&lt;br /&gt;
&lt;br /&gt;
'''\usepackage{color}'''&lt;br /&gt;
|| This command generates the column separation lines in red colour.&lt;br /&gt;
&lt;br /&gt;
We have loaded the '''\usepackage{color}''' in the preamble.&lt;br /&gt;
|-&lt;br /&gt;
|| Run the code and show the output&lt;br /&gt;
|| Run the code.&lt;br /&gt;
&lt;br /&gt;
We can see that the colour of the lines has changed to red.&lt;br /&gt;
|-&lt;br /&gt;
|| Change '''{3}''' to '''{5}''' in line 28.&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
|| Change {3} to {5} in line 28&lt;br /&gt;
&lt;br /&gt;
Run the codeWe see five columns instead of 3 columns.&lt;br /&gt;
|-&lt;br /&gt;
|| Change 5 to 3 in line 28&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
|| Revert back to 3 in line 28&lt;br /&gt;
&lt;br /&gt;
Run the codeIt is now back to the original 3 columns&lt;br /&gt;
|-&lt;br /&gt;
|| Comment the lines 28, 41&lt;br /&gt;
&lt;br /&gt;
Uncomment the lines 29, 40&lt;br /&gt;
|| Comment lines 28 and 41.&lt;br /&gt;
&lt;br /&gt;
Uncomment lines 29 and 40.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
Lines 29, 40 &lt;br /&gt;
&lt;br /&gt;
'''Highlight:''' &lt;br /&gt;
&lt;br /&gt;
line 14.&lt;br /&gt;
|| '''multicols*''' environment fills each column completely.&lt;br /&gt;
&lt;br /&gt;
Here columns are not adjusted to the same height. &lt;br /&gt;
&lt;br /&gt;
Whereas, '''multicols''' environment fills all the columns simultaneously to the same height.&lt;br /&gt;
|-&lt;br /&gt;
|| Run the code and show the output&lt;br /&gt;
|| Run the code.&lt;br /&gt;
&lt;br /&gt;
The output shows that the columns are not filled to the same height. &lt;br /&gt;
|-&lt;br /&gt;
|| Uncomment the line 33&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 33&lt;br /&gt;
&lt;br /&gt;
Run the code to see the output.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:''' line 33&lt;br /&gt;
|| '''\columnbreak''' forces text to break manually at that point.&lt;br /&gt;
&lt;br /&gt;
The text continues in the next column.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
In this tutorial, we have learnt to&lt;br /&gt;
* Create multi-column text layouts&lt;br /&gt;
* Add and customize column separation lines&lt;br /&gt;
* Implement unbalanced columns using '''multicols*'''&lt;br /&gt;
* Insert manual column breaks&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
Create a document with&lt;br /&gt;
* One 2-column section with a header &lt;br /&gt;
* One 3-column section without a header&lt;br /&gt;
* Colour the separation lines using the color of your choice.&lt;br /&gt;
|| As an '''Assignment''', please do the following&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/LaTeX/C3/Framing-texts-and-Fancybox/English</id>
		<title>LaTeX/C3/Framing-texts-and-Fancybox/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/LaTeX/C3/Framing-texts-and-Fancybox/English"/>
				<updated>2025-11-10T05:56:19Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: Framing texts and Fancybox'''  '''Author: Ambika Vanchinathan'''  '''Keywords: '''LaTeX, fancybox, shadowbox, doublebox, ovalbox, Ovalbox, fbox, video...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Framing texts and Fancybox'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Ambika Vanchinathan'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''LaTeX, fancybox, shadowbox, doublebox, ovalbox, Ovalbox, fbox, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the Spoken tutorial on '''Framing Texts and Fancybox.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial , we will learn to&lt;br /&gt;
* Use the fancybox package&lt;br /&gt;
* Add a frame using shadowbox, doublebox, ovalbox, and fbox&lt;br /&gt;
* Frame the text paragraphs and&lt;br /&gt;
* Add a frame to the single and multiline equations&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
* Linux Mint version 21.3&lt;br /&gt;
* Texworks version 0.6.6&lt;br /&gt;
|| To record this tutorial I’m using the following setup.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of LaTeX&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
&lt;br /&gt;
1. fancybox-eg.tex&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''Line 4'''&lt;br /&gt;
&lt;br /&gt;
'''\usepackage{fancybox}'''&lt;br /&gt;
&lt;br /&gt;
'''{fancybox}'''&lt;br /&gt;
|| '''\usepackage{fancybox}''' imports the '''fancybox''' '''package'''.&lt;br /&gt;
&lt;br /&gt;
'''fancybox''' allows us to create decorative boxes around text or images.&lt;br /&gt;
&lt;br /&gt;
Boxes can have shadows, double lines, or rounded corners.&lt;br /&gt;
&lt;br /&gt;
They can be used for highlighting important sections, notes, or headings.&lt;br /&gt;
&lt;br /&gt;
This makes the content visually appealing.&lt;br /&gt;
|- &lt;br /&gt;
|| Click the '''Green Typeset '''button to run the code.&lt;br /&gt;
&lt;br /&gt;
Select XeLaTeX from the drop down&lt;br /&gt;
|| Let us run the code to see the output.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment line 31&lt;br /&gt;
|| Uncomment line 31.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 31&lt;br /&gt;
|| The command '''\shadowbox '''creates a box with a shadow effect around the given text&lt;br /&gt;
|- &lt;br /&gt;
|| Click the green Typeset button and show the output&lt;br /&gt;
|| Let’s run the code.&lt;br /&gt;
&lt;br /&gt;
Here is the output.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the line 35&lt;br /&gt;
|| Uncomment line 35.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 35&lt;br /&gt;
|| The command '''\doublebox''' creates a double lined box around the given text.&lt;br /&gt;
|- &lt;br /&gt;
|| Click the green Typeset button and show the output&lt;br /&gt;
|| Let’s run the code.&lt;br /&gt;
&lt;br /&gt;
The output shows a double lined box around the text.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 40&lt;br /&gt;
|| The command '''\ovalbox '''creates an oval box around the given text&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment line 40&lt;br /&gt;
&lt;br /&gt;
Click the green Typeset button and show the output&lt;br /&gt;
|| Uncomment line 40.&lt;br /&gt;
&lt;br /&gt;
Let us run the code&lt;br /&gt;
&lt;br /&gt;
Here is the output&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment line 44&lt;br /&gt;
&lt;br /&gt;
Click the green Typeset button and show the output&lt;br /&gt;
|| Uncomment line 44.&lt;br /&gt;
&lt;br /&gt;
Let us run the code.&lt;br /&gt;
&lt;br /&gt;
Here is the output.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 44&lt;br /&gt;
|| The command \'''Ovalbox''' creates a thick oval box around the given text.&lt;br /&gt;
&lt;br /&gt;
Observe the capital '''O '''in the command.&lt;br /&gt;
|- &lt;br /&gt;
|| Comment line 46&lt;br /&gt;
&lt;br /&gt;
Uncomment line 55&lt;br /&gt;
&lt;br /&gt;
Click the green Typeset button and show the output&lt;br /&gt;
&lt;br /&gt;
Point to the paragraph text.&lt;br /&gt;
|| Now, let us add a minipage about '''fancybox'''.&lt;br /&gt;
&lt;br /&gt;
Comment line 46&lt;br /&gt;
&lt;br /&gt;
Uncomment line 55&lt;br /&gt;
&lt;br /&gt;
Let us run the code&lt;br /&gt;
&lt;br /&gt;
Output shows a paragraph text.&lt;br /&gt;
&lt;br /&gt;
Let us add a box around this paragraph.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment lines 48 and 52&lt;br /&gt;
|| Uncomment lines 48 and 52.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
lines 48 to 52&lt;br /&gt;
|| The \fbox command draws a box around the contents of the minipage.&lt;br /&gt;
&lt;br /&gt;
This command allows us to frame multiple paragraphs.&lt;br /&gt;
|- &lt;br /&gt;
|| Run the code&lt;br /&gt;
|| Let us run the code.&lt;br /&gt;
&lt;br /&gt;
The output now shows a box around the mini paragraph text.&lt;br /&gt;
|- &lt;br /&gt;
|| Comment line 55&lt;br /&gt;
&lt;br /&gt;
Uncomment line 61&lt;br /&gt;
|| Comment line 55.&lt;br /&gt;
&lt;br /&gt;
Uncomment line 61.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
lines 57 to 59&lt;br /&gt;
|| Observe the '''$ '''inside''' \fbox command.'''&lt;br /&gt;
&lt;br /&gt;
'''$...$ '''is''' '''used to show the equation in math mode.&lt;br /&gt;
&lt;br /&gt;
The \'''fbox''' command creates a box around the equation.&lt;br /&gt;
|- &lt;br /&gt;
|| Click the green Typeset button and show the output&lt;br /&gt;
|| Let us run the code.&lt;br /&gt;
&lt;br /&gt;
Here, only a single line of the equation can be enclosed in a frame.&lt;br /&gt;
|- &lt;br /&gt;
|| Comment line 61&lt;br /&gt;
&lt;br /&gt;
Uncomment line 74&lt;br /&gt;
|| Comment line 61&lt;br /&gt;
&lt;br /&gt;
Uncomment line 74&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
lines 63 to 71&lt;br /&gt;
&lt;br /&gt;
'''\begin{equation}'''&lt;br /&gt;
&lt;br /&gt;
'''\fbox{$'''&lt;br /&gt;
&lt;br /&gt;
'''\begin{array}{rcl}'''&lt;br /&gt;
&lt;br /&gt;
'''a&amp;amp;=&amp;amp;b+c\\'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;=&amp;amp;x+y\\&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;=&amp;amp;z&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
'''\end{array}'''&lt;br /&gt;
&lt;br /&gt;
'''$}'''&lt;br /&gt;
&lt;br /&gt;
'''\end{equation'''&lt;br /&gt;
|| The command '''\fbox '''is used with an '''array''' environment.&lt;br /&gt;
&lt;br /&gt;
This creates a box around multiple equations.&lt;br /&gt;
&lt;br /&gt;
So a multiple lined equation is framed using an '''array '''inside the '''\fbox '''command .&lt;br /&gt;
|- &lt;br /&gt;
|| Click the green Typeset button and show the output&lt;br /&gt;
|| Let us run the code.&lt;br /&gt;
&lt;br /&gt;
Here is the output.&lt;br /&gt;
&lt;br /&gt;
A frame is added around the multiple lined equation.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to&lt;br /&gt;
* Use the fancybox package&lt;br /&gt;
* Add a frame using shadowbox, doublebox, ovalbox, and fbox&lt;br /&gt;
* Frame the text paragraphs&lt;br /&gt;
* Add a frame to the single and multiline equations&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an '''Assignment'''&lt;br /&gt;
|| As an Assignment,&lt;br /&gt;
&lt;br /&gt;
Create a section called '''Algebra Practice'''&lt;br /&gt;
* Use '''\shadowbox '''for headings like '''Solve the following equations'''&lt;br /&gt;
* Use''' \ovalbox '''for short tips or reminders&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/FreeCAD/C3/Working-with-Imported-STEP-Files/English</id>
		<title>FreeCAD/C3/Working-with-Imported-STEP-Files/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/FreeCAD/C3/Working-with-Imported-STEP-Files/English"/>
				<updated>2025-10-16T06:45:56Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script : Working with Imported STEP Files in FreeCAD'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Jakub Michalski and Chitra Balaji'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords :''' FreeCAD, 3D drawing, Import, Defeaturing, pocket, Video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1 '''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Working with Imported STEP Files''' in '''FreeCAD.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Import a''' STEP''' file in '''FreeCAD'''&lt;br /&gt;
* Understand why '''File''' '''Import''' is preferred over '''Open''' option.&lt;br /&gt;
* Use the '''Defeaturing''' tool to remove unwanted features.&lt;br /&gt;
* Create a '''sketch '''and make a''' Pocket '''in the model.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3 '''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
* '''Windows 11''' &lt;br /&gt;
* '''FreeCAD version 1.0.0'''&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4 '''&lt;br /&gt;
&lt;br /&gt;
'''Prerequisite'''&lt;br /&gt;
|| To follow this tutorial, learners should know the basics of '''FreeCAD '''interface.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
The following code files are required to practice this tutorial.&lt;br /&gt;
# '''Pin.step'''&lt;br /&gt;
# '''Hole.step'''&lt;br /&gt;
# '''Example.step'''&lt;br /&gt;
# '''Sample.step'''&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
These files are provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| Right click on the Freecad app image, Select '''Run'''.&lt;br /&gt;
|| Let’s open the '''FreeCAD''' interface.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the New(+) icon.&lt;br /&gt;
|| Let us open a new file.&lt;br /&gt;
|-&lt;br /&gt;
|| Narration&lt;br /&gt;
&lt;br /&gt;
Click on the File menu and select the Open menu option.&lt;br /&gt;
&lt;br /&gt;
Select a step file.&lt;br /&gt;
&lt;br /&gt;
Click open.&lt;br /&gt;
|| We can open the '''STEP''' file using either Open or Import options.&lt;br /&gt;
&lt;br /&gt;
Lets open a step file. &lt;br /&gt;
|-&lt;br /&gt;
|| STEP Import Options dialog box opens.&lt;br /&gt;
&lt;br /&gt;
Tick the''' Enable STEP compound merge '''and '''Import invisible objects.'''&lt;br /&gt;
&lt;br /&gt;
Then click OK in the dialog box.&lt;br /&gt;
|| After clicking the Open button, the STEP dialog box opens &lt;br /&gt;
&lt;br /&gt;
Check the check boxes for:&lt;br /&gt;
&lt;br /&gt;
'''Enable STEP compound merge '''and '''Import invisible objects.'''&lt;br /&gt;
&lt;br /&gt;
Let us leave the other check boxes as default.&lt;br /&gt;
&lt;br /&gt;
Click the '''OK''' button in the dialog box to proceed.&lt;br /&gt;
|-&lt;br /&gt;
|| Click on the File menu and select the Open menu option.&lt;br /&gt;
&lt;br /&gt;
Select a step file.&lt;br /&gt;
&lt;br /&gt;
Click open.&lt;br /&gt;
&lt;br /&gt;
Show the tabs in the bottom.&lt;br /&gt;
&lt;br /&gt;
Switch to first tab.&lt;br /&gt;
|| Let's open another step file.&lt;br /&gt;
&lt;br /&gt;
'''Open''' option loads the file in a new tab.&lt;br /&gt;
|-&lt;br /&gt;
|| Narration&lt;br /&gt;
&lt;br /&gt;
Narration&lt;br /&gt;
&lt;br /&gt;
Click on the File menu and select the Import menu option.&lt;br /&gt;
&lt;br /&gt;
Select a step file.&lt;br /&gt;
&lt;br /&gt;
Click open.&lt;br /&gt;
&lt;br /&gt;
Click the imported part and select the move tool.&lt;br /&gt;
&lt;br /&gt;
Enter the value and click enter.&lt;br /&gt;
|| The '''Import '''option''' '''is preferred when you want to combine several files together.&lt;br /&gt;
&lt;br /&gt;
Let’s import a step file.&lt;br /&gt;
&lt;br /&gt;
We can see that the step file is imported in the already existing model.&lt;br /&gt;
&lt;br /&gt;
We can also move the models.&lt;br /&gt;
|- &lt;br /&gt;
|| Go to '''File''' and click '''New'''.&lt;br /&gt;
|| Let us open a new file.&lt;br /&gt;
|-&lt;br /&gt;
|| Go to''' File''' menu and Select '''Import''' menu option.&lt;br /&gt;
&lt;br /&gt;
Point to the Import file dialog box.&lt;br /&gt;
&lt;br /&gt;
Select the '''Example.step''' file from the Code files folder. &lt;br /&gt;
&lt;br /&gt;
Click on the''' Open '''button at the bottom right corner.&lt;br /&gt;
|| Now let’s import a step file and edit the model.&lt;br /&gt;
&lt;br /&gt;
Let’s go to''' File '''and select '''Import.'''&lt;br /&gt;
&lt;br /&gt;
'''Import File '''dialog box opens.&lt;br /&gt;
&lt;br /&gt;
Select the '''Example.step''' file.&lt;br /&gt;
&lt;br /&gt;
Click the '''Open''' button in the dialog box.&lt;br /&gt;
|-&lt;br /&gt;
|| STEP Import Options dialog box opens.&lt;br /&gt;
&lt;br /&gt;
Then click OK in the dialog box.&lt;br /&gt;
|| While importing, the '''STEP''' dialog box opens.&lt;br /&gt;
&lt;br /&gt;
Click OK.&lt;br /&gt;
|-&lt;br /&gt;
|| Model tree shows imported part.&lt;br /&gt;
&lt;br /&gt;
Cursor on the model.&lt;br /&gt;
&lt;br /&gt;
Narration&lt;br /&gt;
&lt;br /&gt;
Narration&lt;br /&gt;
|| The imported part now appears in the 3D view and in the '''Model''' tree.&lt;br /&gt;
&lt;br /&gt;
A''' STEP''' file is a standard 3D model format.&lt;br /&gt;
&lt;br /&gt;
It allows to import designs from other '''CAD''' software and edit them in '''FreeCAD'''.&lt;br /&gt;
&lt;br /&gt;
We can edit this imported step file in different workbenches.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Part workbench.&lt;br /&gt;
|| Let's switch to the''' Part '''workbench.&lt;br /&gt;
|-&lt;br /&gt;
|| Select the top face of the projected box&lt;br /&gt;
&lt;br /&gt;
Select the defeaturing tool.&lt;br /&gt;
&lt;br /&gt;
Move the cursor and highlight it.&lt;br /&gt;
|| Let’s now remove a part or face in the given model.&lt;br /&gt;
&lt;br /&gt;
Select the top face and side face of the projected box.&lt;br /&gt;
&lt;br /&gt;
Select the '''Defeaturing''' tool.&lt;br /&gt;
&lt;br /&gt;
You can see that the selected part is removed now.&lt;br /&gt;
|-&lt;br /&gt;
|| Show the new copy of the object that appears in the model tree.&lt;br /&gt;
&lt;br /&gt;
Move the cursor to show the original object.&lt;br /&gt;
&lt;br /&gt;
Highlight the booleans operations.&lt;br /&gt;
|| A new copy of the part is created after removing the selected features.&lt;br /&gt;
&lt;br /&gt;
Note that the original object is still seen in the tree.&lt;br /&gt;
&lt;br /&gt;
The part operations like Booleans can also be applied to '''STEP''' files directly.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Part Design workbench&lt;br /&gt;
|| Now let us create a pocket in the model.&lt;br /&gt;
&lt;br /&gt;
For this we will switch to the''' Part Design''' workbench.&lt;br /&gt;
|-&lt;br /&gt;
|| Select defeatured part.Click''' Create body '''tool on the toolbar.&lt;br /&gt;
&lt;br /&gt;
Move the cursor to show the base feature in model tree.&lt;br /&gt;
|| Select the defeatured object.Then click '''Create''' '''Body''' tool.&lt;br /&gt;
&lt;br /&gt;
The defeatured object becomes the BaseFeature of the Body.&lt;br /&gt;
|-&lt;br /&gt;
|| Select the create a datum plane tool.&lt;br /&gt;
&lt;br /&gt;
Select the top face.&lt;br /&gt;
&lt;br /&gt;
Click OK.&lt;br /&gt;
&lt;br /&gt;
In the reference pop up, select the Make independent copy and click OK.&lt;br /&gt;
|| Select the '''create a datum plane''' tool.&lt;br /&gt;
&lt;br /&gt;
A new datum plane is created to draw on the top face.&lt;br /&gt;
&lt;br /&gt;
Select the top face and click '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Select Create Sketch tool.&lt;br /&gt;
|| Click '''Create Sketch tool.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Narration&lt;br /&gt;
&lt;br /&gt;
Select the circle tool in sketcher&lt;br /&gt;
&lt;br /&gt;
Close the sketch&lt;br /&gt;
|| In Sketcher, let us draw the pocket profile.&lt;br /&gt;
&lt;br /&gt;
Select the circle tool and draw a circle on the top face.Close the sketch.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight the '''Pocket '''tool in sketch&lt;br /&gt;
|| Select the sketch and the '''Pocket '''tool.&lt;br /&gt;
|-&lt;br /&gt;
|| Enter the depth as 10mm&lt;br /&gt;
|| Enter the depth as 10 mm.Then click OK.&lt;br /&gt;
|-&lt;br /&gt;
|| 3D view showing pocket cut into the defeatured part&lt;br /&gt;
|| The pocket is now created in the defeatured part.&lt;br /&gt;
|-&lt;br /&gt;
|| Go to File → Save As&lt;br /&gt;
&lt;br /&gt;
Enter the file name as '''Edited example''' and click OK.&lt;br /&gt;
|| To save the file, go to '''File '''and click '''Save'''.&lt;br /&gt;
&lt;br /&gt;
Enter the file name as '''Edited example''' and click Save.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we learnt to &lt;br /&gt;
* Import a''' STEP''' file in '''FreeCAD'''&lt;br /&gt;
* Understand why File '''Import''' is preferred over '''Open '''option.&lt;br /&gt;
* Use the '''Defeaturing''' tool to remove unwanted features.&lt;br /&gt;
* Create a '''sketch '''and make a''' pocket''' in the model.&lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6 '''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
* Import a '''Sample.step''' file into '''FreeCAD.'''&lt;br /&gt;
* '''Defeature''' it by removing both the rectangle protrusions.&lt;br /&gt;
* Add a''' Body''' and '''BaseFeature.'''&lt;br /&gt;
* Create a circular''' sketch''' on a face and '''pocket '''it by 10 mm.&lt;br /&gt;
|| As an assignment, please do the following:&lt;br /&gt;
&lt;br /&gt;
Here is the output of the assignment.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7 '''&lt;br /&gt;
&lt;br /&gt;
'''Thank You'''&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/FreeCAD/C3/Working-with-Imported-STEP-Files/English</id>
		<title>FreeCAD/C3/Working-with-Imported-STEP-Files/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/FreeCAD/C3/Working-with-Imported-STEP-Files/English"/>
				<updated>2025-10-16T05:57:45Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script : Working with Imported STEP Files in FreeCAD'''  '''Author: Jakub Michalski and Chitra Balaji'''  '''Keywords :''' FreeCAD, 3D drawing, Import, Defeatu...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script : Working with Imported STEP Files in FreeCAD'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Jakub Michalski and Chitra Balaji'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords :''' FreeCAD, 3D drawing, Import, Defeaturing, pocket, Video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1 '''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Working with Imported STEP Files''' in '''FreeCAD.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2 '''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to:&lt;br /&gt;
* Import a''' STEP''' file in '''FreeCAD'''&lt;br /&gt;
* Understand why '''File''' '''Import''' is preferred over '''Open''' option.&lt;br /&gt;
* Use the '''Defeaturing''' tool to remove unwanted features.&lt;br /&gt;
* Create a '''sketch '''and make a''' Pocket '''in the model.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3 '''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
* '''Windows 11''' &lt;br /&gt;
* '''FreeCAD version 1.0.0'''&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4 '''&lt;br /&gt;
&lt;br /&gt;
'''Prerequisite'''&lt;br /&gt;
|| To follow this tutorial, learners should know the basics of '''FreeCAD '''interface.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code Files'''&lt;br /&gt;
&lt;br /&gt;
The following code files are required to practice this tutorial.&lt;br /&gt;
# '''Pin.step'''&lt;br /&gt;
# '''Hole.step'''&lt;br /&gt;
# '''Example.step'''&lt;br /&gt;
# '''Sample.step'''&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
These files are provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
|| Right click on the Freecad app image, Select '''Run'''.&lt;br /&gt;
|| Let’s open the '''FreeCAD''' interface.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the New(+) icon.&lt;br /&gt;
|| Let us open a new file.&lt;br /&gt;
|-&lt;br /&gt;
|| Narration&lt;br /&gt;
&lt;br /&gt;
Click on the File menu and select the Open menu option.&lt;br /&gt;
&lt;br /&gt;
Select a step file.&lt;br /&gt;
&lt;br /&gt;
Click open.&lt;br /&gt;
|| We can open the '''STEP''' file using either Open or Import options.&lt;br /&gt;
&lt;br /&gt;
Lets open a step file. &lt;br /&gt;
|-&lt;br /&gt;
|| STEP Import Options dialog box opens.&lt;br /&gt;
&lt;br /&gt;
Tick the''' Enable STEP compound merge '''and '''Import invisible objects.'''&lt;br /&gt;
&lt;br /&gt;
Then click OK in the dialog box.&lt;br /&gt;
|| After clicking the Open button, the STEP dialog box opens &lt;br /&gt;
&lt;br /&gt;
Check the check boxes for:&lt;br /&gt;
&lt;br /&gt;
'''Enable STEP compound merge '''and '''Import invisible objects.'''&lt;br /&gt;
&lt;br /&gt;
Let us leave the other check boxes as default.&lt;br /&gt;
&lt;br /&gt;
Click the '''OK''' button in the dialog box to proceed.&lt;br /&gt;
|-&lt;br /&gt;
|| Click on the File menu and select the Open menu option.&lt;br /&gt;
&lt;br /&gt;
Select a step file.&lt;br /&gt;
&lt;br /&gt;
Click open.&lt;br /&gt;
&lt;br /&gt;
Show the tabs in the bottom.&lt;br /&gt;
&lt;br /&gt;
Switch to first tab.&lt;br /&gt;
|| Let's open another step file.&lt;br /&gt;
&lt;br /&gt;
'''Open''' option loads the file in a new tab.&lt;br /&gt;
|-&lt;br /&gt;
|| Narration&lt;br /&gt;
&lt;br /&gt;
Narration&lt;br /&gt;
&lt;br /&gt;
Click on the File menu and select the Import menu option.&lt;br /&gt;
&lt;br /&gt;
Select a step file.&lt;br /&gt;
&lt;br /&gt;
Click open.&lt;br /&gt;
&lt;br /&gt;
Click the imported part and select the move tool.&lt;br /&gt;
&lt;br /&gt;
Enter the value and click enter.&lt;br /&gt;
|| The '''Import '''option''' '''is preferred when you want to combine several files together.&lt;br /&gt;
&lt;br /&gt;
Let’s import a step file.&lt;br /&gt;
&lt;br /&gt;
We can see that the step file is imported in the already existing model.&lt;br /&gt;
&lt;br /&gt;
We can also move the models.&lt;br /&gt;
|- &lt;br /&gt;
|| Go to '''File''' and click '''New'''.&lt;br /&gt;
|| Let us open a new file.&lt;br /&gt;
|-&lt;br /&gt;
|| Go to''' File''' menu and Select '''Import''' menu option.&lt;br /&gt;
&lt;br /&gt;
Point to the Import file dialog box.&lt;br /&gt;
&lt;br /&gt;
Select the '''Example.step''' file from the Code files folder. &lt;br /&gt;
&lt;br /&gt;
Click on the''' Open '''button at the bottom right corner.&lt;br /&gt;
|| Now let’s import a step file and edit the model.&lt;br /&gt;
&lt;br /&gt;
Let’s go to''' File '''and select '''Import.'''&lt;br /&gt;
&lt;br /&gt;
'''Import File '''dialog box opens.&lt;br /&gt;
&lt;br /&gt;
Select the '''Example.step''' file.&lt;br /&gt;
&lt;br /&gt;
Click the '''Open''' button in the dialog box.&lt;br /&gt;
|-&lt;br /&gt;
|| STEP Import Options dialog box opens.&lt;br /&gt;
&lt;br /&gt;
Then click OK in the dialog box.&lt;br /&gt;
|| While importing, the '''STEP''' dialog box opens.&lt;br /&gt;
&lt;br /&gt;
Click OK.&lt;br /&gt;
|-&lt;br /&gt;
|| Model tree shows imported part.&lt;br /&gt;
&lt;br /&gt;
Cursor on the model.&lt;br /&gt;
&lt;br /&gt;
Narration&lt;br /&gt;
&lt;br /&gt;
Narration&lt;br /&gt;
|| The imported part now appears in the 3D view and in the '''Model''' tree.&lt;br /&gt;
&lt;br /&gt;
A''' STEP''' file is a standard 3D model format.&lt;br /&gt;
&lt;br /&gt;
It allows to import designs from other '''CAD''' software and edit them in '''FreeCAD'''.&lt;br /&gt;
&lt;br /&gt;
We can edit this imported step file in different workbenches.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Part workbench.&lt;br /&gt;
|| Let's switch to the''' Part '''workbench.&lt;br /&gt;
|-&lt;br /&gt;
|| Select the top face of the projected box&lt;br /&gt;
&lt;br /&gt;
Select the defeaturing tool.&lt;br /&gt;
&lt;br /&gt;
Move the cursor and highlight it.&lt;br /&gt;
|| Let’s now remove a part or face in the given model.&lt;br /&gt;
&lt;br /&gt;
Select the top face and side face of the projected box.&lt;br /&gt;
&lt;br /&gt;
Select the '''Defeaturing''' tool.&lt;br /&gt;
&lt;br /&gt;
You can see that the selected part is removed now.&lt;br /&gt;
|-&lt;br /&gt;
|| Show the new copy of the object that appears in the model tree.&lt;br /&gt;
&lt;br /&gt;
Move the cursor to show the original object.&lt;br /&gt;
&lt;br /&gt;
Highlight the booleans operations.&lt;br /&gt;
|| A new copy of the part is created after removing the selected features.&lt;br /&gt;
&lt;br /&gt;
Note that the original object is still seen in the tree.&lt;br /&gt;
&lt;br /&gt;
The part operations like Booleans can also be applied to '''STEP''' files directly.&lt;br /&gt;
|-&lt;br /&gt;
|| Switch to Part Design workbench&lt;br /&gt;
|| Now let us create a pocket in the model.&lt;br /&gt;
&lt;br /&gt;
For this we will switch to the''' Part Design''' workbench.&lt;br /&gt;
|-&lt;br /&gt;
|| Select defeatured part.Click''' Create body '''tool on the toolbar.&lt;br /&gt;
&lt;br /&gt;
Move the cursor to show the base feature in model tree.&lt;br /&gt;
|| Select the defeatured object.Then click '''Create''' '''Body''' tool.&lt;br /&gt;
&lt;br /&gt;
The defeatured object becomes the BaseFeature of the Body.&lt;br /&gt;
|-&lt;br /&gt;
|| Select the create a datum plane tool.&lt;br /&gt;
&lt;br /&gt;
Select the top face.&lt;br /&gt;
&lt;br /&gt;
Click OK.&lt;br /&gt;
&lt;br /&gt;
In the reference pop up, select the Make independent copy and click OK.&lt;br /&gt;
|| Select the '''create a datum plane''' tool.&lt;br /&gt;
&lt;br /&gt;
A new datum plane is created to draw on the top face.&lt;br /&gt;
&lt;br /&gt;
Select the top face and click '''OK'''.&lt;br /&gt;
|-&lt;br /&gt;
|| Select Create Sketch tool.&lt;br /&gt;
|| Click '''Create Sketch tool.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Narration&lt;br /&gt;
&lt;br /&gt;
Select the circle tool in sketcher&lt;br /&gt;
&lt;br /&gt;
Close the sketch&lt;br /&gt;
|| In Sketcher, let us draw the pocket profile.&lt;br /&gt;
&lt;br /&gt;
Select the circle tool and draw a circle on the top face.Close the sketch.&lt;br /&gt;
|-&lt;br /&gt;
|| Highlight the '''Pocket '''tool in sketch&lt;br /&gt;
|| Select the sketch and the '''Pocket '''tool.&lt;br /&gt;
|-&lt;br /&gt;
|| Enter the depth as 10mm&lt;br /&gt;
|| Enter the depth as 10 mm.Then click OK.&lt;br /&gt;
|-&lt;br /&gt;
|| 3D view showing pocket cut into the defeatured part&lt;br /&gt;
|| The pocket is now created in the defeatured part.&lt;br /&gt;
|-&lt;br /&gt;
|| Go to File → Save As&lt;br /&gt;
&lt;br /&gt;
Enter the file name as '''Edited example''' and click OK.&lt;br /&gt;
|| To save the file, go to '''File '''and click '''Save'''.&lt;br /&gt;
&lt;br /&gt;
Enter the file name as '''Edited example''' and click Save.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial we learnt to &lt;br /&gt;
* Import a''' STEP''' file in '''FreeCAD'''&lt;br /&gt;
* Understand why File '''Import''' is preferred over '''Open '''option.&lt;br /&gt;
* Use the '''Defeaturing''' tool to remove unwanted features.&lt;br /&gt;
* Create a '''sketch '''and make a''' pocket''' in the model.&lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6 '''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
* Import a '''Sample.step''' file into '''FreeCAD.'''&lt;br /&gt;
* '''Defeature''' it by removing both the rectangle protrusions.&lt;br /&gt;
* Add a''' Body''' and '''BaseFeature.'''&lt;br /&gt;
* Create a circular''' sketch''' on a face and '''pocket '''it by 10 mm.&lt;br /&gt;
* The final output''' Edited Sample.png''' is provided in code files.&lt;br /&gt;
|| As an assignment, please do the following:&lt;br /&gt;
&lt;br /&gt;
Here is the output of the assignment.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7 '''&lt;br /&gt;
&lt;br /&gt;
'''Thank You'''&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/LaTeX/C3/Wrap-Text-Around-an-Image/English</id>
		<title>LaTeX/C3/Wrap-Text-Around-an-Image/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/LaTeX/C3/Wrap-Text-Around-an-Image/English"/>
				<updated>2025-10-15T08:53:24Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Wrap Text Around an Image.'''  '''Authors: Ambika Vanchinathan'''  '''Keywords:''' LaTeX, wrapfig, wrapfigure, text wrapping, figure placement, floatin...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Wrap Text Around an Image.'''&lt;br /&gt;
&lt;br /&gt;
'''Authors: Ambika Vanchinathan'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' LaTeX, wrapfig, wrapfigure, text wrapping, figure placement, floating figures, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this spoken tutorial on ''' Wrap Text Around an Image.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn how to&lt;br /&gt;
* Use the '''wrapfig''' package&lt;br /&gt;
* Write the syntax and set placement in '''wrapfigure'''&lt;br /&gt;
* Adjust the width and spacing between the image and text&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
&lt;br /&gt;
To record this tutorial, I am using:&lt;br /&gt;
* Linux Mint OS version 21.3&lt;br /&gt;
* TeXworks Editor version 0.6.6&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of LaTeX&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5: '''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code files are required to practice this tutorial:&lt;br /&gt;
&lt;br /&gt;
1. wrapfig-eg.tex&lt;br /&gt;
&lt;br /&gt;
2. Free-Stock-Photos.jpg&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
These files are provided in the '''Code Files''' link of this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight :'''&lt;br /&gt;
&lt;br /&gt;
'''\usepackage{wrapfig}'''&lt;br /&gt;
&lt;br /&gt;
'''\usepackage{graphicx}'''&lt;br /&gt;
|| The''' wrapfig '''package allows text to wrap around the figures.&lt;br /&gt;
&lt;br /&gt;
We load the '''graphicx '''package to include images in our document.&lt;br /&gt;
|-&lt;br /&gt;
|| Click the green Typeset button&lt;br /&gt;
&lt;br /&gt;
Show the output&lt;br /&gt;
|| Click the green Typeset button to run the code.&lt;br /&gt;
&lt;br /&gt;
Output shows images placed normally with some white space around them.&lt;br /&gt;
&lt;br /&gt;
Let us see wrapping text around the figures.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Uncomment the lines 12, 14, 35, 41'''&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
Show the output&lt;br /&gt;
|| Uncomment the lines 12, 14, 35, and 41&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
We see the '''text wrapped '''around the figures&lt;br /&gt;
&lt;br /&gt;
Let us see how the code works.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight :'''&lt;br /&gt;
&lt;br /&gt;
'''lines 12 to 14'''&lt;br /&gt;
|| The environment '''wrapfigure''' is used to wrap the text around the figure.&lt;br /&gt;
&lt;br /&gt;
'''Wrapfigure''' environment has 2 arguments in line 12.&lt;br /&gt;
&lt;br /&gt;
The argument '''{r}''' next to '''wrapfigure''' is used to position the figure to the right.&lt;br /&gt;
&lt;br /&gt;
Next argument '''{.4\textwidth}''' specifies the allotted width for the figure.&lt;br /&gt;
&lt;br /&gt;
The text will be wrapped around this width.&lt;br /&gt;
&lt;br /&gt;
Note that \'''includegraphics '''command is inside the '''wrapfigure''' environment.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight :'''&lt;br /&gt;
&lt;br /&gt;
'''lines 35, 39, 41'''&lt;br /&gt;
|| Here '''{L} '''positions the figure to the left side.&lt;br /&gt;
&lt;br /&gt;
'''Width '''is '''.6\textwidth.'''&lt;br /&gt;
&lt;br /&gt;
The output shows one figure on the right and the other on the left side.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us see the width specifications in detail.&lt;br /&gt;
|-&lt;br /&gt;
|| Comment the line 35&lt;br /&gt;
&lt;br /&gt;
Uncomment the line 36&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Comment line 35.&lt;br /&gt;
&lt;br /&gt;
Uncomment line 36.&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
Here is the output of the code.&lt;br /&gt;
&lt;br /&gt;
We see some white space to the right of the second figure.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''line 36, 39'''&lt;br /&gt;
|| Here the width of the actual figure '''(.6\textwidth) '''is much smaller than the allotted wrapfigure width '''(.8\textwidth)'''.&lt;br /&gt;
&lt;br /&gt;
So, we see the white space&lt;br /&gt;
|-&lt;br /&gt;
|| Comment the line 36&lt;br /&gt;
&lt;br /&gt;
Uncomment the line 37&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Comment the line 36&lt;br /&gt;
&lt;br /&gt;
Uncomment line 37.&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
Output shows, figure''' '''is''' '''overwritten by text.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''line 37, 39'''&lt;br /&gt;
&lt;br /&gt;
click the typeset button and show the output&lt;br /&gt;
|| Here the width of the actual figure '''(.6\textwidth) '''is bigger than the allotted '''wrap figure''' width '''(.4\textwidth)'''.&lt;br /&gt;
&lt;br /&gt;
So we get the undesirable output.&lt;br /&gt;
&lt;br /&gt;
It is important to allocate proper space for wrapping based on the figure’s width.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt how to:&lt;br /&gt;
* Use the wrapfig package&lt;br /&gt;
* Write the syntax and set placement in wrapfigure&lt;br /&gt;
* Adjust the width and spacing between the image and text&lt;br /&gt;
|| With this we come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an '''Assignment'''&lt;br /&gt;
* Insert an image on the right side with a specified width and &lt;br /&gt;
* Wrap the text around it.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/LaTeX/C3/Adding-a-Watermark-to-a-Document/English</id>
		<title>LaTeX/C3/Adding-a-Watermark-to-a-Document/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/LaTeX/C3/Adding-a-Watermark-to-a-Document/English"/>
				<updated>2025-10-15T07:47:26Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: Adding a Watermark to a Document'''  '''Author: Ambika Vanchinathan'''  '''Keywords: '''LaTeX, Draftwatermark, watermark text, customized watermark, st...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Adding a Watermark to a Document'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Ambika Vanchinathan'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''LaTeX, Draftwatermark, watermark text, customized watermark, stamp, hpos, vpos, angle, color, text, DraftWatermarkOptions, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the spoken tutorial on '''Adding a Watermark to a Document'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn to,&lt;br /&gt;
* Create and customize watermarks using the draftwatermark package&lt;br /&gt;
* Control watermark visibility on specific pages&lt;br /&gt;
* Use the eso-pic package for watermarking over the images&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
* Linux Mint OS version 21.3&lt;br /&gt;
* Texworks version 0.6.6&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of LaTeX.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code files are required to practice this tutorial:&lt;br /&gt;
&lt;br /&gt;
1. draftwatermark-eg.tex&lt;br /&gt;
&lt;br /&gt;
2. Free-Stock-Photos.jpg&lt;br /&gt;
|| The following code files are required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
These files are provided in the Code Files link of this tutorial page.&lt;br /&gt;
|- &lt;br /&gt;
||&lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''\usepackage{draftwatermark}'''&lt;br /&gt;
|| This command imports the draftwatermark package.&lt;br /&gt;
|- &lt;br /&gt;
|| Select '''XeLaTeX typesetting '''option from the dropdown.&lt;br /&gt;
&lt;br /&gt;
Click the green Typeset button and show the output&lt;br /&gt;
|| Select '''XeLaTeX '''and click the green Typeset button to run the code.&lt;br /&gt;
&lt;br /&gt;
Here is the output&lt;br /&gt;
&lt;br /&gt;
Default watermark '''DRAFT''' is printed across all the pages&lt;br /&gt;
|- &lt;br /&gt;
|| '''Comment line 7'''&lt;br /&gt;
&lt;br /&gt;
'''uncomment line 8'''&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Let us comment line 7 and&lt;br /&gt;
&lt;br /&gt;
uncomment line 8&lt;br /&gt;
&lt;br /&gt;
Let’s run the code&lt;br /&gt;
&lt;br /&gt;
The''' watermark''' is printed only on the first''' '''page.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Comment line 8'''&lt;br /&gt;
&lt;br /&gt;
'''uncomment line 7, 12'''&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
'''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''line 12'''&lt;br /&gt;
|| Comment line 8.&lt;br /&gt;
&lt;br /&gt;
uncomment lines 7 and 12.&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
Watermark '''Draftcopy '''is printed across all the pages.&lt;br /&gt;
&lt;br /&gt;
Observe the options given in the \'''DraftwatermarkOptions '''command.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Comment line 12'''&lt;br /&gt;
&lt;br /&gt;
'''uncomment line 27'''&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
&lt;br /&gt;
Cursor on the '''text''' keyword.&lt;br /&gt;
&lt;br /&gt;
Cursor on the changed watermark.&lt;br /&gt;
|| Comment line 12.&lt;br /&gt;
&lt;br /&gt;
uncomment line 27.&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
'''text '''keyword''' '''in the command changes the watermark text.&lt;br /&gt;
&lt;br /&gt;
Here the watermark changes to '''Sample.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''uncomment line 28'''&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 28 and run the code.&lt;br /&gt;
&lt;br /&gt;
'''color '''keyword''' '''changes the''' '''watermark colour &lt;br /&gt;
&lt;br /&gt;
Here it changes to '''blue'''&lt;br /&gt;
&lt;br /&gt;
We can also use values like '''[gray]{0.5} '''or '''[rgb]{1, 0, 1}.'''&lt;br /&gt;
&lt;br /&gt;
That is by '''name '''and its '''strength '''or with the '''rgb '''option.&lt;br /&gt;
&lt;br /&gt;
For that we have to load \'''usepackage{xcolor}''' in the preamble.&lt;br /&gt;
|- &lt;br /&gt;
|| '''uncomment line 29'''&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 29&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
'''fontsize '''keyword changes the watermark’s '''fontsize.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''uncomment line 30'''&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 30&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
Here is the output&lt;br /&gt;
&lt;br /&gt;
'''hpos''' keyword &lt;br /&gt;
&lt;br /&gt;
changes the horizontal position''' '''of the watermark.&lt;br /&gt;
|- &lt;br /&gt;
|| '''uncomment line 31'''&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 31&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
Here is the output&lt;br /&gt;
&lt;br /&gt;
'''vpos '''keyword changes the''' '''vertical position''' '''of the watermark.&lt;br /&gt;
|- &lt;br /&gt;
|| '''uncomment line 32'''&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 32&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
'''angle '''keyword in '''the command '''changes the angle''' '''of the watermark &lt;br /&gt;
&lt;br /&gt;
Here it changes to 60''' degrees.'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''uncomment line 33'''&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
|| Uncomment line 33&lt;br /&gt;
&lt;br /&gt;
Run the code&lt;br /&gt;
&lt;br /&gt;
'''Stamp '''keyword is set to '''true''' or '''false.'''&lt;br /&gt;
&lt;br /&gt;
Here '''false '''makes the watermark vanish from all the pages.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Comment line 33, 32, 31, 30, 29, 28, 27'''&lt;br /&gt;
&lt;br /&gt;
'''uncomment line 34'''&lt;br /&gt;
&lt;br /&gt;
Run the code and show the output&lt;br /&gt;
&lt;br /&gt;
'''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight lines 27 to 33 '''and then '''Highlight line 34.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the text EduPyramids in the code.&lt;br /&gt;
|| Comment the lines 27 to 33.&lt;br /&gt;
&lt;br /&gt;
Uncomment the line 34&lt;br /&gt;
&lt;br /&gt;
Run the code.&lt;br /&gt;
&lt;br /&gt;
Notice that all the options are given in a single line of code.&lt;br /&gt;
&lt;br /&gt;
Here watermarking text is EduPyramids.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| So far, the watermark has only appeared on the pages, but not on top of the image.&lt;br /&gt;
&lt;br /&gt;
Now, let us see how to get the watermark on top of the image too.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Comment the lines 34 and 7'''&lt;br /&gt;
|| Comment the lines 34 and 7&lt;br /&gt;
|- &lt;br /&gt;
|| '''Uncomment the lines from 36 to 48'''&lt;br /&gt;
|| Uncomment the lines from 36 to 48&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight line 36'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight lines 37 to 43'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight Line 46'''&lt;br /&gt;
|| In line 36, we load the eso-pic package. &lt;br /&gt;
&lt;br /&gt;
We use this package to get a watermark on top of the images.&lt;br /&gt;
&lt;br /&gt;
In lines 37 to 43 we define a new command called '''MyWatermark'''.&lt;br /&gt;
&lt;br /&gt;
This command defines the watermark’s text colour to blue and the text to '''Confidential'''.&lt;br /&gt;
&lt;br /&gt;
Line 46 instructs the compiler to ship out every page with the watermark on foreground&lt;br /&gt;
|- &lt;br /&gt;
|| Let’s run the code to see the output.&lt;br /&gt;
&lt;br /&gt;
Cursor on the Output&lt;br /&gt;
|| Let us run the code&lt;br /&gt;
&lt;br /&gt;
Now we see the watermark on the image too&lt;br /&gt;
&lt;br /&gt;
Watermarking it with blue''' '''colour and with the text '''Confidential'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to:&lt;br /&gt;
* Create and customize watermarks using the draftwatermark package&lt;br /&gt;
* Control watermark visibility on specific pages&lt;br /&gt;
* Use the eso-pic package for watermarking over the images&lt;br /&gt;
|| With this we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
Add a watermark with:&lt;br /&gt;
* '''Text''': PRELIMINARY&lt;br /&gt;
* '''Color''': red&lt;br /&gt;
* '''Font size''': 3cm&lt;br /&gt;
* '''Angle''': 60 degrees&lt;br /&gt;
&lt;br /&gt;
|| As an '''Assignment '''add a watermark with the following attributes.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/LaTeX/C3/Links-and-URLs/English</id>
		<title>LaTeX/C3/Links-and-URLs/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/LaTeX/C3/Links-and-URLs/English"/>
				<updated>2025-09-26T05:22:26Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the script: Links and URLs '''  '''Authors: Ambika Vanchinathan'''  '''Keywords:''' LaTeX, hyperref, url, clickable links, line breaks, URLs, email links, internal...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the script: Links and URLs '''&lt;br /&gt;
&lt;br /&gt;
'''Authors: Ambika Vanchinathan'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' LaTeX, hyperref, url, clickable links, line breaks, URLs, email links, internal links, PDF bookmarks, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to this Spoken tutorial on''' Links and URLs''' in''' LaTeX.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives '''&lt;br /&gt;
|| In this tutorial we will learn to,&lt;br /&gt;
* Create clickable URLs.&lt;br /&gt;
* Use url package to break long URLs.&lt;br /&gt;
* Set email, external &amp;amp; internal links.&lt;br /&gt;
* Customize link colors and styles with hyperref package.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
* Linux Mint version 21.3&lt;br /&gt;
* TeXworks version 0.6.6&lt;br /&gt;
* A working internet connection.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of LaTeX.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
'''1. hyperref-eg.tex'''&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight :'''&lt;br /&gt;
&lt;br /&gt;
lines 19 to 26&lt;br /&gt;
&lt;br /&gt;
'''\usepackage['''&lt;br /&gt;
&lt;br /&gt;
'''colorlinks=true, % color the text of links'''&lt;br /&gt;
&lt;br /&gt;
'''linkcolor=blue, % color for internal links'''&lt;br /&gt;
&lt;br /&gt;
'''urlcolor=magenta, % color for URLs'''&lt;br /&gt;
&lt;br /&gt;
'''breaklinks=true, % allow links to break across lines'''&lt;br /&gt;
&lt;br /&gt;
'''pdfborder={0 0 0}, % remove borders around links'''&lt;br /&gt;
&lt;br /&gt;
'''bookmarks=true % enable PDF bookmarks'''&lt;br /&gt;
&lt;br /&gt;
''']{hyperref}'''&lt;br /&gt;
|| These commands import the '''hyperref package''' with various options.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 6 for all the lines in this row.&lt;br /&gt;
&lt;br /&gt;
'''\usepackage[hyphens]{url}'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight line 26'''&lt;br /&gt;
&lt;br /&gt;
'''{hyperref}'''&lt;br /&gt;
|| '''\usepackage[hyphens]{url}''' imports the url package with the hyphens option.&lt;br /&gt;
&lt;br /&gt;
Make sure to load this command before '''hyperref''', as it loads the '''url''' package.&lt;br /&gt;
&lt;br /&gt;
We add this command to enable the '''hyphens''' option for better line breaks.The hyphens allow long '''URLs''' to break at '''hyphens''' when they don’t fit the line.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 39&lt;br /&gt;
&lt;br /&gt;
'''\url{https://spoken-tutorial.org}'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight: \url'''&lt;br /&gt;
|| We used this command to get the '''clickable link''' in the document&lt;br /&gt;
&lt;br /&gt;
The '''\url '''command takes a '''url '''as its argument and typesets it as a clickable link &lt;br /&gt;
|- &lt;br /&gt;
|| Click on the green Typeset button to run the codeClick on the link and select Yes.&lt;br /&gt;
&lt;br /&gt;
Click the url and point the cursor to the website.&lt;br /&gt;
|| Click on the green '''Typeset '''button to run the code.&lt;br /&gt;
&lt;br /&gt;
A pop up '''Open URL''' opens with a warning message.&lt;br /&gt;
&lt;br /&gt;
Read the message and click on the Yes button.&lt;br /&gt;
&lt;br /&gt;
Spoken tutorial page opens.&lt;br /&gt;
|-&lt;br /&gt;
|| Comment the line 41.&lt;br /&gt;
|| Comment the line 41.&lt;br /&gt;
|- &lt;br /&gt;
|| Run the code and show the output&lt;br /&gt;
|| Let's run the code&lt;br /&gt;
&lt;br /&gt;
We see 2 long URLs.&lt;br /&gt;
&lt;br /&gt;
One URL is wrapped to the next line, while the other extends to the margin.&lt;br /&gt;
&lt;br /&gt;
One is wrapped because it breaks at the '''/ '''(forward slash) automatically.&lt;br /&gt;
&lt;br /&gt;
Let's wrap the second URL as well.&lt;br /&gt;
|- &lt;br /&gt;
|| Uncomment the lines 10 to 16&lt;br /&gt;
|| Uncomment the lines 10 to 16.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''lines 10 to 16'''&lt;br /&gt;
&lt;br /&gt;
'''\do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j%'''&lt;br /&gt;
&lt;br /&gt;
'''\do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t%'''&lt;br /&gt;
&lt;br /&gt;
'''\do\u\do\v\do\w\do\x\do\y\do\z\do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J%'''&lt;br /&gt;
&lt;br /&gt;
'''\do\K\do\L\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T%'''&lt;br /&gt;
&lt;br /&gt;
'''\do\U\do\V\do\W\do\X\do\Y\do\Z}'''&lt;br /&gt;
|| This macro allows the URLs to wrap correctly.&lt;br /&gt;
&lt;br /&gt;
This command allows URL breaks after any lowercase or uppercase letter from A to Z.&lt;br /&gt;
|-&lt;br /&gt;
|| Click on the green typeset button to run the code.&lt;br /&gt;
&lt;br /&gt;
Point the cursor to the second long URL.&lt;br /&gt;
&lt;br /&gt;
Click on the link.&lt;br /&gt;
&lt;br /&gt;
Click Yes in the warning pop up window.&lt;br /&gt;
&lt;br /&gt;
Page directed to the website.&lt;br /&gt;
|| Let’s run the code.&lt;br /&gt;
&lt;br /&gt;
We now see that the second long URL wraps neatly to the next line.&lt;br /&gt;
&lt;br /&gt;
This is because we allowed line breaks after every alphabet in the URL.&lt;br /&gt;
&lt;br /&gt;
Let us click on the link.&lt;br /&gt;
&lt;br /&gt;
If the pop up appears please click the Yes button.&lt;br /&gt;
&lt;br /&gt;
The link takes us to its website.&lt;br /&gt;
|-&lt;br /&gt;
|| Comment the line 53&lt;br /&gt;
|| Comment the line 53&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 56&lt;br /&gt;
|| The command''' \href '''creates an email link.&lt;br /&gt;
&lt;br /&gt;
This command takes 2 arguments.&lt;br /&gt;
&lt;br /&gt;
1. '''URL:''' The hyperlink target (web address, email, or internal reference)&lt;br /&gt;
&lt;br /&gt;
2.'''text''': The visible, clickable text&lt;br /&gt;
|-&lt;br /&gt;
|| Click on the green typeset button to show the output.&lt;br /&gt;
&lt;br /&gt;
Click Yes in the warning pop up window.&lt;br /&gt;
&lt;br /&gt;
Point the cursor to the Email link.&lt;br /&gt;
|| Run the code.&lt;br /&gt;
&lt;br /&gt;
The output shows an Email link&lt;br /&gt;
&lt;br /&gt;
Let us click on the '''email link'''&lt;br /&gt;
&lt;br /&gt;
Clicking this link opens the default email client&lt;br /&gt;
&lt;br /&gt;
Let us see how to code it&lt;br /&gt;
|-&lt;br /&gt;
|| Comment line 59&lt;br /&gt;
|| Comment line 59.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 62&lt;br /&gt;
|| The '''\href''' command can also display custom link text instead of showing the full URL&lt;br /&gt;
&lt;br /&gt;
Here, clicking on '''Spoken Tutorial''' opens the specified webpage&lt;br /&gt;
|- &lt;br /&gt;
|| Run the code&lt;br /&gt;
Show the output&lt;br /&gt;
&lt;br /&gt;
Click Yes in the warning pop up window.&lt;br /&gt;
|| Run the code&lt;br /&gt;
&lt;br /&gt;
The output shows an external link&lt;br /&gt;
&lt;br /&gt;
Let us click on it&lt;br /&gt;
&lt;br /&gt;
It takes us to the SpokenTutorial website&lt;br /&gt;
|- &lt;br /&gt;
|| comment the line 65&lt;br /&gt;
|| Comment the line 65&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 67 &lt;br /&gt;
|| The '''\hyperref''' command creates internal links within the document&lt;br /&gt;
&lt;br /&gt;
It takes 2 arguments&lt;br /&gt;
&lt;br /&gt;
1.'''label:''' The name of the label to link to which is defined earlier with '''\label''' command&lt;br /&gt;
&lt;br /&gt;
2.'''link text''': The clickable text shown in the document&lt;br /&gt;
&lt;br /&gt;
Here, it takes us to the '''section''' labelled '''sec:target'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
line 71, 72&lt;br /&gt;
|| This is the section referred to using an internal link. &lt;br /&gt;
&lt;br /&gt;
Here is the target section labeled '''sec:target''' which the internal link jumps to.&lt;br /&gt;
|- &lt;br /&gt;
|| Run the code&lt;br /&gt;
&lt;br /&gt;
Show the output&lt;br /&gt;
&lt;br /&gt;
We run the code twice.&lt;br /&gt;
|| LaTeX builds the document in multiple steps.&lt;br /&gt;
&lt;br /&gt;
Let us run the code&lt;br /&gt;
&lt;br /&gt;
In the first run, it collects information for labels, references, page numbers etc&lt;br /&gt;
&lt;br /&gt;
At this point \ref, \pageref, \autoref used by hyperref don’t have values yet.&lt;br /&gt;
|- &lt;br /&gt;
|| Run the code.&lt;br /&gt;
&lt;br /&gt;
Cursor on the output.&lt;br /&gt;
&lt;br /&gt;
Point the cursor to the clickable url.&lt;br /&gt;
&lt;br /&gt;
Click on it.&lt;br /&gt;
&lt;br /&gt;
Cursor to the target section.&lt;br /&gt;
|| Let us run the code again.&lt;br /&gt;
&lt;br /&gt;
This time it uses the stored info and creates hyperlinks, bookmarks, TOC etc.&lt;br /&gt;
&lt;br /&gt;
Now we can see a clickable url after the second run which takes us to a website.&lt;br /&gt;
&lt;br /&gt;
Let us click on it.&lt;br /&gt;
&lt;br /&gt;
It takes us to the target section.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6 '''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
'''In this tutorial, we have learnt to:'''&lt;br /&gt;
* '''Create clickable URLs.'''&lt;br /&gt;
* '''Use url package to break long URLs.'''&lt;br /&gt;
* '''Set email, external &amp;amp; internal links.'''&lt;br /&gt;
* '''Customize link colors and styles with hyperref package.'''&lt;br /&gt;
|| With this we come to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an assignment,&lt;br /&gt;
&lt;br /&gt;
1. Create an external link with custom text&lt;br /&gt;
&lt;br /&gt;
2. Create an internal link to a labeled section within your document&lt;br /&gt;
|| As an assignment, please do the following:&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/LaTeX/C3/Dynamic-Layout-Adjustments/English</id>
		<title>LaTeX/C3/Dynamic-Layout-Adjustments/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/LaTeX/C3/Dynamic-Layout-Adjustments/English"/>
				<updated>2025-09-25T10:09:23Z</updated>
		
		<summary type="html">&lt;p&gt;Ketkinaina: Created page with &amp;quot;'''Title of the Script: Dynamic Layout Adjustments'''  '''Author: Ambika Vanchinathan'''  '''Keywords:''' LateX,&amp;amp;nbsp; geometry package, page layout, margins, checkoddpage, if...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script: Dynamic Layout Adjustments'''&lt;br /&gt;
&lt;br /&gt;
'''Author: Ambika Vanchinathan'''&lt;br /&gt;
&lt;br /&gt;
'''Keywords:''' LateX,&amp;amp;nbsp; geometry package, page layout, margins, checkoddpage, ifoddpage, else, fi, video tutorial.&lt;br /&gt;
&lt;br /&gt;
{|border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the spoken tutorial on '''Dynamic Layout Adjustments.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn how to:&lt;br /&gt;
* Use the '''changepage''' package&lt;br /&gt;
* Adjust page dimensions and margins&lt;br /&gt;
* Adjust the text width in the middle of the document&lt;br /&gt;
* Modify the layout based on whether page number is odd or even&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&lt;br /&gt;
* Linux Mint OS version 21.3&lt;br /&gt;
* Texworks version 0.6.6&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Pre-requisites'''&lt;br /&gt;
|| To follow this tutorial, learners should have basic knowledge of LaTeX.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
'''Code files'''&lt;br /&gt;
&lt;br /&gt;
The following code file is required to practice this tutorial:&lt;br /&gt;
&lt;br /&gt;
1. geomery-eg.tex&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|| The following code file is required to practice this tutorial.&lt;br /&gt;
&lt;br /&gt;
This file is provided in the Code Files link of this tutorial page.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Let us get started.&lt;br /&gt;
|-&lt;br /&gt;
|| Comment line 51&lt;br /&gt;
&lt;br /&gt;
Uncomment line 19, 53, 60&lt;br /&gt;
|| Comment the line 51.&lt;br /&gt;
&lt;br /&gt;
Uncomment the lines 19, 53, and 60&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''line 53\begin{adjustwidth}{1cm}{2cm}'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''{adjustwidth}'''&lt;br /&gt;
&lt;br /&gt;
'''{1cm}'''&lt;br /&gt;
&lt;br /&gt;
'''{2cm}'''&lt;br /&gt;
|| The '''adjustwidth''' command is from the '''changepage '''package&lt;br /&gt;
&lt;br /&gt;
This command reduces the left margin by 1 cm and the right margin by 2 cm.&lt;br /&gt;
|-&lt;br /&gt;
|| Click the green Typeset button and show the output&lt;br /&gt;
|| Let’s run the code to see the output.&lt;br /&gt;
&lt;br /&gt;
Observe the changes in page 2.&lt;br /&gt;
|-&lt;br /&gt;
|| Comment line 53&lt;br /&gt;
&lt;br /&gt;
Uncomment line 54&lt;br /&gt;
|| Comment the line 53&lt;br /&gt;
&lt;br /&gt;
Uncomment the line 54&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
''' line 54'''&lt;br /&gt;
&lt;br /&gt;
'''\begin{adjustwidth}{1cm}{-2cm}'''&lt;br /&gt;
&lt;br /&gt;
'''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
''' {-2cm}'''&lt;br /&gt;
|| This command increases the rightside '''textwidth '''by 2cm&lt;br /&gt;
&lt;br /&gt;
Note the '''minus '''sign in the command.&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
It is used to increase the width.&lt;br /&gt;
|-&lt;br /&gt;
|| Run the code and show the output&lt;br /&gt;
|| Let’s run the code.&lt;br /&gt;
&lt;br /&gt;
The text shifted 1 cm closer to&amp;amp;nbsp; the left margin and 2 cm away from the right margin.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Now, let us look into&amp;amp;nbsp; conditional command and statements&lt;br /&gt;
|-&lt;br /&gt;
|| Comment the lines 54 and 60.&lt;br /&gt;
&lt;br /&gt;
Uncomment lines 61 to 68&lt;br /&gt;
|| Comment the lines 54 and 60.&lt;br /&gt;
&lt;br /&gt;
Uncomment the lines 61 to 68&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight: line 61'''&lt;br /&gt;
|| '''\newpage''' command opens a new page.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''line 63'''&lt;br /&gt;
|| The '''\checkoddpage''' command checks whether the page number is odd or even.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''line 64, 65'''&lt;br /&gt;
|| '''\ifoddpage''' command checks if the page&amp;amp;nbsp; is an odd page.&lt;br /&gt;
&lt;br /&gt;
If it is odd page, then it does what is in the next line&lt;br /&gt;
&lt;br /&gt;
Here, it simply prints the line 65&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''line 66, 67'''&lt;br /&gt;
|| '''\else''' statement is performed if it is not an odd page&lt;br /&gt;
&lt;br /&gt;
Here, it prints the line 67&lt;br /&gt;
|-&lt;br /&gt;
|| '''Highlight:'''&lt;br /&gt;
&lt;br /&gt;
'''line 68'''&lt;br /&gt;
|| '''\fi''' command ends the if command.&lt;br /&gt;
|-&lt;br /&gt;
|| Let us run the code and see the output&lt;br /&gt;
|-&lt;br /&gt;
|| '''Run the code'''&lt;br /&gt;
&lt;br /&gt;
'''show the third page'''&lt;br /&gt;
|| A new page is added as third page,&lt;br /&gt;
&lt;br /&gt;
Since it is an odd page the oddpage part of the command is performed.&lt;br /&gt;
&lt;br /&gt;
We see that the '''odd-numbered page''' in bold is printed.&lt;br /&gt;
|-&lt;br /&gt;
|| Cursor on the third page.&lt;br /&gt;
|| This conditional statement is useful for modifying layout or content&lt;br /&gt;
&lt;br /&gt;
It allows changes based on whether the page number is odd or even&lt;br /&gt;
&lt;br /&gt;
Any command can be given after that.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
'''In this tutorial, we have learnt how to,'''&lt;br /&gt;
* Use the '''changepage''' package&lt;br /&gt;
* Adjust page dimensions and margins&lt;br /&gt;
* Adjust the text width in the middle of the document&lt;br /&gt;
* Modify the layout based on whether page number is odd or even&lt;br /&gt;
|| With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
As an '''Assignment'''&lt;br /&gt;
&lt;br /&gt;
Apply adjustwidth to indent a paragraph by 2 cm on the left and 1 cm on the right side&lt;br /&gt;
|| As an '''Assignment, '''please do the following&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Ketkinaina</name></author>	</entry>

	</feed>