Changes between Version 6 and Version 7 of Csle2022/Agenda/linuxpackagemanagement
- Timestamp:
- Oct 19, 2022, 6:01:08 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Csle2022/Agenda/linuxpackagemanagement
v6 v7 88 88 `sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"` 89 89 90 === Key Management === 91 92 The 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 90 94 == Linux Editors == 91 95 … … 94 98 Nano, text editor is a user-friendly, free and open-source text editor that usually comes pre-installed in modern Linux systems. 95 99 It 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 101 To check if it is installed on your system type: 102 103 `nano --version` 96 104 97 105 1. To create and open a new file. … … 119 127 - Enter the word to replace with there 120 128 - As soon as you will press the enter key 129 121 130 === Vim === 122 131 123 Vim is a mode-based editor. 132 Vim 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 134 To install vim on Debian based Linux like ubuntu run the command: 135 136 `sudo apt-get install vim` 137 138 1.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 142 2. Write into file 143 144 press `i` 145 146 3.Save and Exit: 147 148 We 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 152 4.Exit without saving the file: 153 154 To exit from the file without saving the file just use the command q! As follows 155 156 `:q!` 124 157 125 158 == Filters - find, grep, sed and awk ==