Echo Command Output To A File In Linux

The echo command is used to print some text into the terminal or console or command line interface. The echo command prints provided text into the standard output which is the current terminal or console or command line interface. But we can use the echo command output in a file in Linux. Write Into File … Read more

Linux cat Command Tutorial

Linux cat Command Tutorial

Linux provides the cat command in order to print file content into the terminal or command line interface. Even though it may seem a simple command the cat command provides different features for different tasks In this tutorial we examine the Linux cat command to print files, display line numbers, create file etc. Display File … Read more

Linux tail Command Tutorial with Examples

Linux tail Command Tutorial with Examples

Linux provides the tail command in order to read specified files. The default behavior of the tail command is reading the specified files ends with the specified lines. By default, the tail command reads the last 10 lines of the specified files. tail Command Syntax The tail command has the following syntax where generally a … Read more

Linux Bash Reading File Tutorial

Linux Bash Reading File Tutorial

Bahs is the most popular shell for Linux distributions and provides different ways and commands to read a file from the command-line interface. Bash can be used to read a file and process it in different ways by using different commands. The file can be a text file or a binary no matter what type … Read more

How To Cat EOF For Multi-Line String In Linux Bash?

How To Cat EOF For Multi-Line String In Linux Bash?

The cat command is used to put given content to the specified output. If the content is a multiline string, text, or script putting it directly from the command line is a bit tedious. the “Here Documents” can be used to put content to the specified file in an interactive way. The cat, EOF, << … Read more

How To Create File In Linux?

How To Create File In Linux?

Files are used for different purposes in Linux. The purpose can be storing data or setting some configuration or creating code or script for execution. There are different ways to create a file in Linux. In this tutorial, we will learn different ways to create files via command line or GUI for Linux distributions. List … Read more