Exploring More Concept Of Linux Administration Techniques
Tags: beginners, devops, cloud, 120days
Published: 2023-06-17 23:44:43

Hey guys!! I'm back as i promised. So far in this journey we have gained valuable insights into Linux and DevOps. lets dive more into Linux. ride me with guys. Let's Gooooo 

**How to Check Os version**

- ls /etc/*release*: This is use to check the current Os the user is operation on

![the result shows the user in on /etc/lsb-release ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nuqry88c78vtzetqgo0g.png) 

- cat /etc/*release* : To View More details

![outcome of the command](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3vx1xdc7eot0jqw6de2e.png)

**Download Files**

- Curl (url) -O : use to download file and save it. then use the "ls" command to check for the file you downloaded

![document.pdf downloaded](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/75d43uaemz97xy5hicvu.png)

- wget (url) -O name of file : also use to download file

**Vi and Vim**

Vi is a built-in text Editor in Linux while Vim is an improved version of Vi. This Text Editor edit a file and can also create a file. let's take a look at how to use it
 

- vim filename : this is use to open a file and make it available for editing. it could be a new file or already existing file
 
![Input command](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7i56g9o09l89czzcpk5x.png)

![output](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ldk86vcq386bhgdic4f6.png)

now, let now input words into the opened file. so how do we go about it?
"press i" to be able to edit the opened file

![Edited file](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/57zjv3d5xbci6xb11kgn.png)
looking at the image well, you will discover that "insert" shows at the left bottom of the opened file when you press "i". it shows you are in the editing mode

"press esc" on your keyboard to return back to command mode

![output](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dddaxhdl29dxu7rrj2t5.png)

notice you can no longer see "insert" at the let bottom of the opened file. when in command mode, the following commands are useful

- :wq is use to save the changes made on the file and quit the vim

- :q is use to quit vim without making changes

- dd is use to delete a line

- x is use to delete words one after the other

Note: use the cat command to check the changes done on the file

![output](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vk1rtmwr9oogqcgh7ixz.png)

**Installing Software on Linux**

Package Manager tools are mostly used when installing software on linux such as the "Advance Package Tool". Let's get our hands busy

- Sudo apt search (package name) : is use to search for a give package

![searching for figlet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3428zy6e9i9fsdbzqdds.png)


- sudo apt install (package name) : it is use to install given package

![Installation in progress](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7yjc5nf89bavr7yosbrn.png)

![Installation successful](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lxr0c4nuqmbkl4edzxrt.png)
we have successfully installed java.

- sudo apt (package name1)(package name2) : is use to install multiple packages with one command

- package name --version : is use to check the version

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/23qfa5jbb4bup7i4wfqp.png)

- sudo apt remove (package name) : is use to remove a given package

thanks Guys for following up and sharing in my DevOps journey. day 5 loading...........