Friday, 21 July 2023

LINUX 1st Module Labs

                                         LINUX LABS 2023 1st Module

Create a New Directory and Subdirectories:


Task: Create a directory named "project" and subdirectories "docs," "src," and "tests" inside it.


Copy Files Between Directories:


Task: Copy all files with the extension ".txt" from the "documents" directory to the "backup" directory.


List Files and Directories:


Task: List all files and directories in the "home" directory.


Move and Rename Files:


Task: Move the file "report.txt" from the "downloads" directory to the "documents" directory and rename it to "monthly_report.txt."


View File Contents:


Task: View the contents of the file "README.md" using a pager (e.g., less or more).


Create and Edit a Text File:


Task: Create a new text file named "notes.txt" and add some text to it.


Search for a Pattern in Files:


Task: Search for the word "error" in all files within the "logs" directory.


Check System Resource Usage:


Task: Check the CPU and memory usage of the system.


View System Information:


Task: View information about the Linux distribution and kernel version.


Check Disk Space Usage:


Task: Check the disk space usage of the "home" directory.



Create a Directory:

Task: Create a new directory named "my_folder" in your home directory.



List Files and Directories:

Task: List all the files and directories in the "/etc" directory.



Change Directory:

Task: Change your current directory to "my_folder" created in Task 1.



Create a Text File:

Task: Create a new text file named "my_file.txt" in the "my_folder" directory.



View File Contents:

Task: View the contents of the "my_file.txt" using a pager (e.g., less or more).



Append Text to File:

Task: Add the line "Hello, Linux!" to the end of "my_file.txt."



Copy a File:

Task: Create a copy of "my_file.txt" and name it "backup_file.txt" in the same directory.



Rename a File:

Task: Rename "backup_file.txt" to "archive.txt."





Linux 4 Types of installation

 

1. Graphical with non custom partition

2. Minimal with non custom partition

3. Graphical with  custom partition

4. Minimal with custom partition


INSTALL BELOW OPERATING SYSTEM ON VMWARE ESXI HOST WITH CUSTOM PARTITION AS MINIMAL AND GRAPHICAL OS

 

REDHAT 8

REDHAT9

CENTOS 8 

Alma Linux 9

RockyLinux 8



CUSTOM PARTITION


/boot/efi >> 1600MB 

swap >> 1600MB

/    >> 9000MB

/emails >> 2000MB

/emailbackup >> 1000MB


https://docs.google.com/document/d/1W1H36PWNlXkJBo5SdbfsxY3z0tVrSiKogikY52i_9ek/edit

https://linuxadminforu.blogspot.com/2021/02/linux-vs-windows.html

https://linuxadminforu.blogspot.com/2021/02/advantages-of-linux_22.html





Linux Lab Module 1


* Create a user redhat with password India1234%$#@!

* Create a folder data 

* Create a file resume

* Setup IP address as follows:

  IPaddress : 16.16.16.100

  Netmask : 255.0.0.0

  Gateway: 16.16.16.1

*Disable Screen lock on Server

* Change the Operating System background to Redhat logo

* Create a new folder /nux/images


* Create files image1 image2 on directory /nux/images 




Linux OS Installtion Labs:


Install a Redhat 8 OS SERVER EDITION Graphical and minimal with the below custom partition as follows.

/boot/efi 1900

/ 8500

swap 1500

/databackup 1000

/imagebackups 1000


Installl a Redhat 9 OS SERVER EDITION Graphical and minimal with the below custom partition as follows.

/boot/efi 1000

/ 10500

swap 1500

/red 2200

/backup 1000


Installl a Redhat 9 OS Workstation EDITION Graphical with all client tools installed.


Install Redhat 8 OS Workstation EDITION with only office products installed.



Move a File:

Task: Move "archive.txt" to the parent directory of "my_folder."



Remove a Directory and Its Contents:

Task: Delete the entire "my_folder" directory and its contents.




No comments:

Post a Comment