In case we want to automate a task that might not work immediately but is expected to eventually succeed it can be necessary to recourse to a command in a loop. This can be done easily with while or until loops.

1. while loop

While Loop executes the command when the condition is true and keeps e...

Each command that we execute in the terminal is logged in the history file. Thus, executing identical commands multiple times will cause the history file to become saturated. Eventually, we will have too many duplicate entries in our Bash history file. In recent Ubuntu based systems, the file size i...

nmcli is a part of the NetworkManager package that was released in 2010. It can be used like other modes of configuring network interfaces and connections, such as the ip command.

1. The nmcli syntax:

nmcli [OPTIONS...] { help | general | networking | radio | connection | device | agent | moni...

The primarily use of the Linux touch command is to update or modify the timestamp of files or directories.if the file does not exist the touch command will create it as an empty file.Touch is commonly used for file creation while it's not its original goal.

1. Create one or more empty files

to...

The CAT command in Linux is helpful in creating text files, displaying their contents, concatenating text from two or more text files into a new file. We can also append text from terminal to a file or append text to an existing file.

Create a new file

cat > newfile.txt

Concatenating multiple

...