SlideShare a Scribd company logo
By : Varnnit Jain
9990888972
Text Editor In Red Hat Enterprise
Linux
Text Editors
 As the name suggest, text editors are files or
programs that are used for editing the plain text
files.
 In Windows such programs are known as
“notepads” software.
 Text editors are provided with the operating
system and software development packafes, and
can be used to change the configyration files,
documentation files and programming languagres
source code.
 In linux there are basically two main types of text
editors : vi (visual) and vim (visual Improved).
Vi (Visual) Editor
 Pronounced as vee-eye.
 It provides basic text editing capabilities.
 There are two mode in Vi : Insert mode and
Command Mode.
 It begins with command mode. We can switch to the
insert mode by pressing i.
 i is used to open the insert mode whereas esp can be
used to switch back to the command mode.
 We can type whatever e want in the insert mode.
 iq! is used to exit without saving the text
 iwq! Is used to save and exit.
 iw! Is used to save the file.
Vim (Visual Improved) Editor
 It is the newer version of the vi text editor.
 Vim is especially designed for the Linux
Operating system not for Unix.
 In vim we can open multiple files on to the same
screen having different buffers.
Commands for vi and vim
 i : For insert mode.
 Esc : For command mode.
 iw : To save the file after exiting insert
mode.
 iq : Exit without save.
 iwq : Save and exit.
 iq! : Forcefully exit.
 iwq! : Forcefully save and exit.
 yy : copy (vi mode).
 dd : deleting or cutting a particular line.
 p : Paste
Commands for vi and vim (cont.)
 yy : Copy 1 line.
 4yy : Copy 4 lines.
 dd : Delete 1 line.
 4dd : Delete 4 lines.
 yw : Copy 1 word.
 Shift + g : Go to the end of the page.
 u : Undo
 Ctrl + r : Redo
NOTE : All these commands are given in thee
command mode.
Managing files from the command
line
 Create a file and add some characters to it.
 #head <filename> : To show top 10
lines.
 #head –n 5 <filename>: To show top 5 lines.
 #tail <filename> : To show bottom 10 lines.
 #tail –n 5 <filename> : To show bottom 5 lines.
FOR EXAMPLE : Lets create a file and name it as
testing.
This is the Insert Mode.
Use The Command :iq in the command mode to exit the
file without saving it.
Use The Command :iwq in the command mode to exit the
file after saving it.
Use The Command #head <file name> in the terminal to
show the top 10 lines of the file.
Use The Command #tail <file name> in the terminal to show the
top 10 lines of the file.
Use The Command #tail <file name> in the terminal to show
the top 10 lines of the file.
Text editor In RHEL

More Related Content

Similar to Text editor In RHEL

Vi editor
Vi editorVi editor
Vi editor in linux
Vi editor in linuxVi editor in linux
Vi editor in linux
Bhumivaghasiya
 
Vi editor
Vi editorVi editor
Vi editor
Ramakrishna kapa
 
1_Editors_in_Unix
1_Editors_in_Unix1_Editors_in_Unix
1_Editors_in_UnixGautam Raja
 
Unit 5 vim an advanced text editor
Unit 5 vim an advanced text editorUnit 5 vim an advanced text editor
Unit 5 vim an advanced text editorroot_fibo
 
Vi and redirection & piping in linux
Vi and redirection & piping in linuxVi and redirection & piping in linux
Vi and redirection & piping in linux
Neethu Jose
 
Linux network manager configure
Linux network manager configureLinux network manager configure
Linux network manager configure
InfoExcavator
 
Linux network manager configuration
Linux network manager configurationLinux network manager configuration
Linux network manager configuration
Md Meherab Hossen
 
Vi editor
Vi editorVi editor
Linux programming - Getting self started
Linux programming - Getting self started Linux programming - Getting self started
Linux programming - Getting self started
Emertxe Information Technologies Pvt Ltd
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .ppt
PDhivyabharathi2
 
Foss manual (1)
Foss manual (1)Foss manual (1)
Foss manual (1)
Janagi Raman S
 
Coding In Vim
Coding In VimCoding In Vim
Coding In Vim
Matthew Kosolofski
 
Linux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScITLinux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScIT
vignesh0009
 
andrew's guide to vim
andrew's guide to vimandrew's guide to vim
andrew's guide to vim
Andrew Yi
 
Vi editor
Vi editorVi editor
Vi editor
bhatvijetha
 

Similar to Text editor In RHEL (20)

Vi editor
Vi editorVi editor
Vi editor
 
Vi editor in linux
Vi editor in linuxVi editor in linux
Vi editor in linux
 
Vi editor
Vi editorVi editor
Vi editor
 
Basic linux day 4
Basic linux day 4Basic linux day 4
Basic linux day 4
 
1_Editors_in_Unix
1_Editors_in_Unix1_Editors_in_Unix
1_Editors_in_Unix
 
Unit 5 vim an advanced text editor
Unit 5 vim an advanced text editorUnit 5 vim an advanced text editor
Unit 5 vim an advanced text editor
 
Vi and redirection & piping in linux
Vi and redirection & piping in linuxVi and redirection & piping in linux
Vi and redirection & piping in linux
 
Linux network manager configure
Linux network manager configureLinux network manager configure
Linux network manager configure
 
Linux network manager configuration
Linux network manager configurationLinux network manager configuration
Linux network manager configuration
 
Vi editor
Vi editorVi editor
Vi editor
 
Linux programming - Getting self started
Linux programming - Getting self started Linux programming - Getting self started
Linux programming - Getting self started
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .ppt
 
Foss manual (1)
Foss manual (1)Foss manual (1)
Foss manual (1)
 
Unix commands
Unix commandsUnix commands
Unix commands
 
Nithi
NithiNithi
Nithi
 
Coding In Vim
Coding In VimCoding In Vim
Coding In Vim
 
Linux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScITLinux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScIT
 
andrew's guide to vim
andrew's guide to vimandrew's guide to vim
andrew's guide to vim
 
Linuxs1
Linuxs1Linuxs1
Linuxs1
 
Vi editor
Vi editorVi editor
Vi editor
 

Recently uploaded

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 

Text editor In RHEL

  • 1. By : Varnnit Jain 9990888972 Text Editor In Red Hat Enterprise Linux
  • 2. Text Editors  As the name suggest, text editors are files or programs that are used for editing the plain text files.  In Windows such programs are known as “notepads” software.  Text editors are provided with the operating system and software development packafes, and can be used to change the configyration files, documentation files and programming languagres source code.  In linux there are basically two main types of text editors : vi (visual) and vim (visual Improved).
  • 3. Vi (Visual) Editor  Pronounced as vee-eye.  It provides basic text editing capabilities.  There are two mode in Vi : Insert mode and Command Mode.  It begins with command mode. We can switch to the insert mode by pressing i.  i is used to open the insert mode whereas esp can be used to switch back to the command mode.  We can type whatever e want in the insert mode.  iq! is used to exit without saving the text  iwq! Is used to save and exit.  iw! Is used to save the file.
  • 4. Vim (Visual Improved) Editor  It is the newer version of the vi text editor.  Vim is especially designed for the Linux Operating system not for Unix.  In vim we can open multiple files on to the same screen having different buffers.
  • 5. Commands for vi and vim  i : For insert mode.  Esc : For command mode.  iw : To save the file after exiting insert mode.  iq : Exit without save.  iwq : Save and exit.  iq! : Forcefully exit.  iwq! : Forcefully save and exit.  yy : copy (vi mode).  dd : deleting or cutting a particular line.  p : Paste
  • 6. Commands for vi and vim (cont.)  yy : Copy 1 line.  4yy : Copy 4 lines.  dd : Delete 1 line.  4dd : Delete 4 lines.  yw : Copy 1 word.  Shift + g : Go to the end of the page.  u : Undo  Ctrl + r : Redo NOTE : All these commands are given in thee command mode.
  • 7. Managing files from the command line  Create a file and add some characters to it.  #head <filename> : To show top 10 lines.  #head –n 5 <filename>: To show top 5 lines.  #tail <filename> : To show bottom 10 lines.  #tail –n 5 <filename> : To show bottom 5 lines. FOR EXAMPLE : Lets create a file and name it as testing.
  • 8. This is the Insert Mode. Use The Command :iq in the command mode to exit the file without saving it.
  • 9. Use The Command :iwq in the command mode to exit the file after saving it. Use The Command #head <file name> in the terminal to show the top 10 lines of the file.
  • 10. Use The Command #tail <file name> in the terminal to show the top 10 lines of the file. Use The Command #tail <file name> in the terminal to show the top 10 lines of the file.