by Ramesh Natarajan
on June 19, 2017
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:
[continue reading…]
by Ramesh Natarajan
on June 14, 2017
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.
[continue reading…]
by Ramesh Natarajan
on June 13, 2017
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
[continue reading…]
by Ramesh Natarajan
on June 12, 2017
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
[continue reading…]
by Koscica Dusko
on May 24, 2017
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:
[continue reading…]
by Ramesh Natarajan
on May 23, 2017
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.
[continue reading…]
by Ramesh Natarajan
on May 22, 2017
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:
[continue reading…]
by Ramesh Natarajan
on May 16, 2017
Sometimes when you do a git push, you might get the following permission error message.
This error typically happens when multiple users are working on a particular git repository.
The following git push error indicates that it doesn’t have enough permission for adding a new object to the ./objects directory under your repository.
Apart from the obvious permission issue, there is also another underlying problem that needs to be addressed, which is explained in this tutorial.
[continue reading…]