How To Disable SELinux?

How To Disable SELinux?

SELinux or Security Enhanced Linux is a Linux security module provided via the Linux kernel. The SELinux can be used to deny, and restrict the different types of access to processes, ports, networks, etc. The SELinux provides mainly access controls. SELinux is generally installed by enterprise-level Linux distributions like Ubuntu, RedHat, and CentOS and is … Read more

Linux dos2unix Command Tutorial

Linux dos2unix Command Tutorial

Linux and Unix operating systems use plain text for configuration etc. The Unix and MS-DOS text file formatting may have some differences which may require converting files. The MS-DOS which is Windows format used carriage return (CR) followed by Line feed (LF) are interpreted as a newline. But Linux and Unix only Line Feed (LF) … Read more

Linux chroot Command Tutorial

Linux chroot Command Tutorial

Linux processes access the whole root directory by default. But in some cases, some processes may be required to restrict access to only specified directories or paths. The chroot command is used to change the specified process root directory into a different and fake one. For example, if we want to restrict the bash the … Read more

Linux fdisk Command Tutorial

Linux fdisk Command Tutorial

Linux provides the fdisk command in order to manage disks, partitions, and file systems. The fdisk command is created for Unix and Linux systems but also ported into different operating systems like DOS, IBM OS/2, Windows *BSD, etc. In this tutorial, we examine the fdisk usage in Linux distribution to create partitions, set sector sizes, … Read more

Sed Command Examples In Linux

Sed Command Examples In Linux

The sed command is a stream editor used in Linux and Unix operating systems popularly. The sed command is used to search, replace, edit, insert, delete, and similar text operations for single or multiple files via command-line interface in a programmatic way. sed Command Syntax The sed command syntax is like below where OPTIONS, SCRIPT, … Read more

How To Kill Process In Linux?

How To Kill Process In Linux?

Linux is a process bound operating system where every taks and action is taken via processes. There are a lot of process for system and user related tasks. Daemons or service processes expected to be run in background continuously and user processes generally started and completed after complating tasks. But in some cases we may … Read more

What Does Bash “set -x” do?

What Does Bash "set -x" do?

Bash provides the set command in order to enable or disable different features. The set -x command is used to debug bash script where every executed statement is printed to the shell for debugging or troubleshooting purposes. The set -x command can be directly executed in an interactive bash shell or can be used inside … Read more

What Does “set -e” In Bash?

What Does "set -e" In Bash?

Linux bash provides a very good programming environment where scripts and functions can be created and executed. If there is an error related to a script file or function bash ignores these errors by default. But if we rely on the script or function execution and get detailed information about the result the set -e … Read more

Bash set Command Tutorial

Bash set Command Tutorial

Bash shell provides different builtin commands to manage the bash environment. The set command is used to manage some flags and characteristics of the bash environment. The set command can be used to change different parameters of the bash shell environment and customized for different cases and users. set Command Help The set command provides … Read more