Changes between Version 6 and Version 7 of Csle2022/Agenda/linuxpackagemanagement


Ignore:
Timestamp:
Oct 19, 2022, 6:01:08 PM (2 years ago)
Author:
deepthi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/linuxpackagemanagement

    v6 v7  
    8888`sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"`
    8989
     90=== Key Management ===
     91
     92The Linux key-management facility is primarily a way for various kernel components to retain or cache security data, authentication keys, encryption keys, and other data in the kernel
     93
    9094== Linux Editors ==
    9195
     
    9498Nano, text editor is a user-friendly, free and open-source text editor that usually comes pre-installed in modern Linux systems.
    9599It is easy to use command line text editor for Unix and Linux operating systems. It includes all the basic functionality you'd expect from a regular text editor, like syntax highlighting, multiple buffers, search and replace with regular expression support, spellchecking, UTF-8 encoding, and more.
     100
     101To check if it is installed on your system type:
     102
     103`nano --version`
    96104
    971051. To create and open a new file.
     
    119127 - Enter the word to replace with there
    120128 - As soon as you will press the enter key
     129
    121130=== Vim ===
    122131
    123 Vim is a mode-based editor.
     132Vim is a text editor that is an upgraded version of the Vi editor and is more compatible with Vi. The most usage of vi editors is to create a new file, edit an existing file, or just read a file. Vim editor is more useful in editing different kinds of plain text.
     133
     134To install vim on Debian based Linux like ubuntu run the command:
     135
     136`sudo apt-get install vim`
     137
     1381.To open a file in vim editor just write the file name after the vim command in the terminal as follows:
     139
     140`vim filename.txt`
     141
     1422. Write into file
     143
     144press `i`
     145
     1463.Save and Exit:
     147
     148We have written the data into a file now the task is to save and close the file to do that first exit from insert mode by pressing the Esc key. To write a command first type semicolon  (  :  )  and then type the command wq!  or x! (both do the same thing) And then hit ENTER.
     149
     150`:wq!`
     151
     1524.Exit without saving the file:
     153
     154To exit from the file without saving the file just use the command q! As follows
     155
     156`:q!`
    124157
    125158== Filters - find, grep, sed and awk ==