bash – Page 6 – POFTUT

How To Replace A Text Exists In Many Files?

How To Replace A Text Exists In Many Files?

Linux provides a lot of tools to ease system administrators work. One of them is to replace command which simple search text files to replace string and create a new text file. Replace command comes with MySQL Server packages. IF MySQL is not installed we can not use replace command. Replace Command We can use … Read more

Bash Command Basics

Bash is a utility to manage Linux and UNIX boxes and it is very popular because of its simple, well documented and unique usage. There are alternatives to bash like csh,sh,ksh but bash has very high usage rate against others. I have recently work on bash with its manual and wanted to write something that … Read more

How To Redirect Stderr To Stdout In Linux Bash?

I have an application. This application can be run from the command line. This application is a bit old and requires some optional libraries but I can not find them because of this libraries are deprecated. So when running this application they throw errors to the command line. I will save the standard output of … Read more

How To Set, Get and Change Bash Environment Variable?

Bash shell is used for a lot of things in Linux systems. Most of the applications run with bash. Bash is a shell but provides an environment that can be used to programming. Variables are core of the programming. Bash provides variables too. There are default variables as well as user defined variables. Get Existing … Read more

How To Create User Creation Defaults With Skel In Linux?

We want to create system default for user creation and addition. System defaults mean what will be default values for the user creation like home path, user id etc. skel Directory /etc/skel is the directory where files will be copied to the new user directory from here. If we look detailed we will see that there … Read more

Crash Linux System With A Bash Fork Bomb

Our aim is to create a lot of process with single and simple commands. So every created process will eat some RAM and CPU. If we loop it forever actually not forever because our system resources are limited system will crash. So we can ask this question why would I crash my system . As … Read more

Bash Infinite Loop Shell Linux

How can write infinite shell that will run forever? May be I need a 5 second sleep between steps. Recently I have a issue with my routing table and I need to remove some route automatically every 5 minutes. I came up with a solution that runs every 4 minutes and clears unwanted routes. While … Read more

How Prompt for Input in Bash

Bash is a shell for Linux and Unix operating systems. But bash also provides some basic programming environment acting like a Programming language. System administrators generally develops simple scripts and apps with bash and reads some input from shell interactively. In this tutorial we will look ho to read input from interactive bash console or … Read more

Cockpit Easy and Web Based Administration of Linux

Cockpit is a web application that provides easy administration for Linux servers. It is mainly developed for Fedora but other distributions are OK too. Latest Cockpit version is 118 as writing this article. Features: Cockpit provides easy container management Storage administration Network configuration Inspection of logs etc. Zero footprint and very little resource consumption. Installing … Read more