Unit 4
Unit 4
Explanation:
Steps:
1. Install a package: sudo yum install package-name or sudo dnf install package-name
2. Update packages: sudo yum update or sudo dnf update
3. Remove a package: sudo yum remove package-name or sudo dnf remove package-name
4. Search for a package: sudo yum search package-name or sudo dnf search package-name
Explanation:
This involves configuring network interfaces, managing services like DNS, DHCP, and ensuring proper
connectivity.
Steps:
Explanation:
Steps:
Explanation:
Managing the lifecycle of services (start, stop, restart, enable, disable).
Steps:
Explanation:
Daemons are background processes. Managing these involves ensuring they are running as needed.
Steps:
Explanation:
Steps:
1. Install Apache: sudo yum install httpd or sudo dnf install httpd
2. Start Apache: sudo systemctl start httpd
3. Enable Apache on boot: sudo systemctl enable httpd
4. Configure firewall: sudo firewall-cmd --add-service=http --permanent and sudo firewall-cmd
--reload
Explanation:
Handling the basic configuration of a web server like serving static content.
Steps:
Explanation:
Steps:
Explanation:
Involves securing the webserver using firewalls, SSL, and other methods.
Steps:
Explanation:
Steps:
Explanation:
Steps:
1. Open partition tool: fdisk /dev/sda
2. Create new partition: Use the n command in fdisk
3. Write changes: Use the w command
Explanation:
Steps:
Explanation:
Steps:
Explanation:
Steps:
Explanation:
Setting up a shared directory accessible from both Linux and Windows.
Steps:
Explanation:
NFS allows file sharing over the network among Unix/Linux systems.
Steps:
Explanation:
Steps:
Explanation:
Steps:
Explanation:
What is Git?
Git is a popular version control system. It was created by Linus Torvalds in 2005, and has been
maintained by Junio Hamano since then.
It is used for:
Why Git?
What is GitHub?
Steps:
For Windows, you can use Git bash, which comes included in Git for Windows. For Mac and
Linux you can use the built-in terminal.
Example
git --version
Configure Git
Now let Git know who you are. This is important for version control systems, as each Git
commit uses this information:
Example
git config --global user.name "w3schools-test"
Change the user name and e-mail address to your own. You will probably also want to use this
when registering to GitHub later on.
Note: Use global to set the username and e-mail for every repository on your computer.
If you want to set the username/e-mail for just the current repo, you can remove global
Example
mkdir myproject
cd myproject
Now that we are in the correct directory. We can start by initializing Git!
Note: If you already have a folder/directory you would like to use for Git:
Navigate to it in command line, or open it in your file explorer, right-click and select "Git Bash
here"
Initialize Git
Once you have navigated to the correct folder, you can initialize Git on that folder:
Example
git init
Note: Git now knows that it should watch the folder you initiated it on.