Home » Shell Scripting » BASH (page 2)

BASH

Linux Change Hostname Example

The hostname are aliases or labels used to identify easily each device within a network. In Linux desktop versions, is the “computer name” that we are asked to specify during the installation. In this example, we can see how that hostname can be changed. For this example, Linux Mint 18 has been used.             1. ...

Read More »

Linux Find Large Files Example

Having our disk tidy and free of garbage occupies space is something we all want to do, but many times we don’t pay attention at large files that are taking up a considerable amount of space that could be useful for something else. In this example, we will see how to look for large files, just to be aware of ...

Read More »

Linux Screen Command Tutorial

Screen is a window manager that allows to have several virtual terminals, several sessions and programs in text mode executing simultaneously in the same console. In this tutorial we will see how to use it. For this tutorial, Linux Mint 18 has been used. 1. Installation If you don’t have installed Screen, you can install it easily with apt-get: sudo ...

Read More »

Linux Create User Example

This example will show you how to create users in Linux, looking at the two different available commands: the default utility, useradd; and a script that acts as more friendly front-end for the default utility, which is named adduser. For this example, Linux Mint 17.03 has been used. 1. How users are organized The existing users of the system are ...

Read More »

Linux Add User to Group Example

In this tutorial we will see how to add users to groups in Linux, looking at the different possibilities (existing or non-existing users), and taking into account also the different types of groups users can belong to (primary and secondary groups). For this example, Linux Mint 17.03 has been used. 1. How groups are organized Linux defines the groups in ...

Read More »

Formatting and coloring the cURL output

When it comes to documenting the APIs (especially the REST ones), having the cURL samples that one can try out and play around with has become the defacto standard these days. However if you actually want to read through the response body, look up certain piece of information or just simply check the integrity of the response itself, you will ...

Read More »

Linux curl Example

cURL is an incredibly flexible and powerful tool data transferring tool, that supports a wide variety of protocols, being the HTTP (and HTTPS) the most used. cURL library is available for many programming languages, but in this example we will see how to use it from the command line. For this tutorial, Mint 17.3 has been used. 1. Installation cURL ...

Read More »

Linux chmod Example

One of the most critical jobs a system administrator has to continuously be dealing with is the permission administration. The most small carelessness with the permissions can lead to a security hole in the system. This example will show how are changed the permissions, a task for which chmod command is used For this example, Linux Mint 17.3 has been ...

Read More »

Linux Find Command Tutorial

Linux find command is a powerful and flexible search tool that not only every system administrator must master, but also any kind of Linux user. This tutorial will show how to use it to perform almost any type search with this useful command. For this tutorial, Linux Mint 17.3 and find 4.4.2 have been used. 1. Find by file name The ...

Read More »