One of the most powerful feature of git is its ability to create and manage branches in the most efficient way.
This tutorial explains the following git branch command examples:
- Create a New git Branch
- Delete a Git branch
- Delete remote-tracking branches
- Switch to a New git Branch to Work
- Create a New Branch and Switch Immediately
- Working on a Git Branch (Making Changes)
- View all Local git Branches
- View Remote git Branches
- View Merged and Not-Merged Local Git Branch
- Rename a Git Branch
- Force Rename a Git Branch
- Display Git Branch in Color
- Display Full or Partial SHA1 Git Commit Values
- Create a Branch at a Specific Location
- Display Specific Git Branch Details
brctl stands for Bridge Control.
In Linux, this command is used to create and manipulate ethernet bridge.
This is typically used when you have multiple ethernet networks on your servers, and you want to combine them and present it as one logical network.
For example, if you have eth0 and eth1, you can combine them and present it as just br0, which will inturn use both eth0 and eth1 for network traffic.
In this tutorial, we’ve covered the following:
If you are managing a DELL Poweredge server, you might’ve noticed the following error message on the console during system startup.
This will happen during PERC RAID Controller check.
sestatus stands for SELinux status.
This command is used to view the current status of the SELinux that is running on your system.
This tutorial explains the following:
- sestatus Command Output Explained with Details
- Display Selected Objects Security Context in sestatus
- Display Boolean Values in sestatus
Similar to other programming languages, in Python, conditional situations can be handled using if command.
In this tutorial, we’ve explained the following with examples:
- Basic Python if Command Example for Numbers
- Python if Command Operators
- Basic Python if Command Example for String Comparison
- Multiple Commands in If Condition Block using Indentation
- Python if else Command Example
- Python if else if Command Example
- Python Compound If Statement Example
- AND, OR, NOT in Python if Command
- Python if Command Error Messages
In C programming, variadic function will contribute to the flexibility of the program that you are developing.
To understand this flexibility, let us start with a basic example.
If we like to add two numbers, we might write a code like this:
On your Linux server, having proper SELinux security context for files and directories is very important.
When you add your custom file to a directory that is already managed by SELinux policy, and if your custom file doesn’t have the proper SELinux context, then you will not get the expected result.
restorecon stands for Restore SELinux Context.
restorecon command will reset the SELinux security context for files and directories to its default values. This will only reset the type attribute of SELinux context.
In this tutorial, we’ll explain how to use restorecon command with some practical examples.
If you are a sysadmin, managing your Linux server’s hard disk partition is a critical task.
In this tutorial, we’ll focus on how to use sfdisk command-line utility to manage your hard disk partitions.
While sfdisk is similar to fdisk, there are few partition manipulation activities that are very easy to perform in sfdisk. For example, you can create new partitions in an non-interactive method using sfdisk.
The following sfdisk activities are covered in this tutorial: