Category: CLI

Termux a terminal emulator for Android

Termux is a terminal emulator for Android and a minimalistic GNU / Linux environment. Termux installs a minimum default base system allowing additional applications to be installed using the apt package manager. Termux does not need your phone to be rooted to run.

Wake up your computer using rtcwake


If we want to "wake up" the computer at a certain moment, we can use the rtcwake command. rtcwake hibernates or suspends the system and to automatically wake from it at a specified time

A practical example of the du and awk commands

GNU / Linux

Today I bring you an interesting tip about du command, the problem was proposed by a friend in the following way: I want to know the available hard disk space, I told him: use the df command.

Reading a file line by line from BASH


To read a file line byline from BASH you use an of the following variants

1. While, read, operator <2. Cat, while, read3. AWK

How to create directories from a text file


I have a list of directories in a text file.

Q. Can I create directories from the previous text file?

A. Yes, you can use the xargs command.

16 Practical rsync examples


Rsync is a fast and versatile file synchronization tool that allows to copy and sync files locally and from rsync service or any device that supports remote shell (Rsync does not support synchronization between remote devices). Rsync offers a large number of options that control every aspect of its behaviour and permit very flexible specification of the set of files to be copied.

25 Practical examples of the find command


find is a utility that allows to search files (regular file, directory, symbolic link...) through a hierarchy of directories, it is powerful and feature-rich.

Clean up the GNU/Linux console

If your console (terminal) is in a state where you don't see what you write because of an aborted ssh session or it is showing unreadable characters after trying to open a binary, this can be solved by typing the command:

Refresh alias defined in .bashrc

To refresh the aliases defined in .bashrc run:

$ source .bashrc


$ exec bash

14 Practical examples of the grep command

grep is a command-line utility that allows searching of words and/or patterns in a file or group of files. Its name comes from the ed command g/re/p (globally search a regular expression and print). Grep does a global search by keyword or regular expression and print all matching lines on the standard output.