DEV Community

Rupa Kumari
Rupa Kumari

Posted on • Edited on

2. Linux Basics

- Step 1
Install Oracle VM virtual box 6.1
https://www.virtualbox.org/

VM is an environment where we can host different systems.

- Step 2:
Install ISO Centos:
http://isoredirect.centos.org/centos/7/isos/x86_64/

- Step 3:
Configuration:

  • Click on New
  • Give any name ex. Centos
  • Type: Linux
  • Version: Red Hat 64 bit

Image description

memory size: atleast 2GB

- Step 4:
create a disk drive option
Hard disk file type: VDI(Virtual Disk image)

- Step 5:
Storage on physical hard disk: dynamically allocated

File location and size:
around 20GB

Click on Start of Centos, browse and import ISO Centos, Add.
select first option on screen as
Install CentOS 7

Linux OS:

  • Open source Operating System
  • software update,customization,distribution can be done in Linux.
  • Free to use
  • Cost of Linux is low
  • Large community support

Linus Sytem: package(Deb-RPM-YUM) --repo
RPM -RedHat Package Manager
YUM - Yellow Dog Updater

RPM

  • RPM can install only single package at a time.
  • RPM cannot resolve dependencies
  • cannot rollback with RPM

YUM

  • Yum can install multiple packages at a time
  • Yum can resolve dependencies automatically
  • Yum can rollback any changes

Assignment: Install all dependency for making Centos full screen
https://www.youtube.com/watch?v=Eo-DjIIwPvw

Update centos

sudo yum -y update
Enter fullscreen mode Exit fullscreen mode

Hypervisor:
A hypervisor, also known as a virtual machine monitor or VMM, is software that creates and runs virtual machines (VMs). A hypervisor allows one host computer to support multiple guest VMs by virtually sharing its resources, such as memory and processing.

Types of Hypervisor:
between OS and Hardware
between OS and OS

Right click -> open new terminal
Linux Commands:

  • whoami

  • ls(list)

cd ~
whoami
pwd
ls
ls -l
cd Desktop
mkdir inueron
cd inueron
touch devops.txt
ls -l devops.txt
chmod 777 devops.txt

User Group Other
7 7 7

Read - 4
Write - 2
Execute - 1
4+2+1 =7 (all)

chmod 4

Login as root user
sudo su

Top comments (0)