Found 5 Articles for Command Line

How to Run Bash Commands from a File?

Mead Naji
Updated on 04-Nov-2024 11:47:56

128 Views

Bash script is a scripting language like other languages that have an extension and a way to interpret it. To interact with the operating system through the command line, commands are used. There are a lot of commands on Linux, and new commands are added regularly. However, all these commands have a common way of working. All commands consist of three parts: the command itself, its parameters, and arguments. Bash Script File A bash script file is a file that contains a sequence of commands put together to do a certain task. If you have a lot of commands, it ... Read More

How to Recover a Deleted File in Linux?

Mead Naji
Updated on 04-Nov-2024 11:37:03

108 Views

There is no doubt that the idea of losing an important file or deleting it unintentionally is certainly annoying and almost all of us have been in the same situation, especially if the files are very important, whether they are work files, personal photos or videos that you cannot do without and want to recover. If you are exposed to this problem, do not worry. There are many solutions and programs dedicated to recovering files, especially if you are using the famous Linux distribution. There are also many diverse and free programs dedicated to all famous distributions. Linux ... Read More

How to Parse a CSV File in Bash

Mead Naji
Updated on 04-Nov-2024 11:17:30

174 Views

CSV files are a common file format that we use on the Internet a lot. They are basically a file type that consists of lines, with each line considered a row in a simple table. As the name suggests, CSV (Comma-Separated Values) means that data in each line is separated by commas. CSV files are just plain text that we can view and edit in any editor. The common fields we see using this type of file are in spreadsheets, databases, storing configuration data, and data exchange between APIs. In Linux, there are many ways to parse a file like ... Read More

Hello World in Bash Script

Mead Naji
Updated on 04-Nov-2024 11:09:53

179 Views

A command line or terminal is an important component of the Linux operating system, as it allows for inclusive administration and management of the operating system as a whole. Even if we are talking about a Linux distribution that uses a graphical interface, you will still need a terminal to unleash all the power and potential of Linux. Linux provides a "shell" to work on the command line. The shell is a command interpreter responsible for executing commands based on what you enter on the command line. The most popular shell is bash (short for "Bourne Again Shell, " ... Read More

How to Create a File in Linux from the Command Line?

Kiran Kumar Panigrahi
Updated on 13-Mar-2025 14:40:52

101K+ Views

Before getting into the ways of creating a file using Bash, let's first understand how Linux treats its files. Linux organizes all its data into files and files are organized into directories. Further, the directories are organized into tree-like structures called the file system. When you have to work in a Linux environment, you would definitely have to spend a lot of your time working on different types of files. There are several different ways in which one can create a file in Linux. You can create a file from the Bash Shell or you can use the Desktop File ... Read More

1
Advertisements