Satish Kumar has Published 1041 Articles

Redirect Output to location with Permission denied Error?

Satish Kumar

Satish Kumar

Updated on 26-Dec-2022 11:39:59

524 Views

Overview We know that we can direct the standard output (std out) of a Linux shell script to a file by using the ">" operator at the end of the Linux shell script. Sometimes, we need to redirect to a file which requires root permissions − for example, ‘sudo command ... Read More

Use ./ (Dot Slash) to execute script file?

Satish Kumar

Satish Kumar

Updated on 26-Dec-2022 11:38:25

2K+ Views

Overview In this tutorial, we will see how to execute a file using the / (dot slash) command in Linux. This is one of the most commonly used commands in Linux and it’s very easy to use. Let us first understand what does the dot slash mean? What Does Dot ... Read More

Copy a directory to an existing directory Linux?

Satish Kumar

Satish Kumar

Updated on 26-Dec-2022 11:31:05

729 Views

Overview Copying files is one of the most common operations performed by using the Linux shell. We usually use the cp (copy) commands for this purpose. We're going to discuss how to recursively move a folder to another location with or without overwriting. Introduction to the Problem We first need ... Read More

Build complete path in Linux by concatenate two strings?

Satish Kumar

Satish Kumar

Updated on 26-Dec-2022 11:25:24

466 Views

Overview We’ll look at some ways to create a complete Linux path by combining two paths into one. We’ll first look at some basic techniques for accomplishing this. Then, we'll talk about a generic approach that handles some of the special cases that appear when combining paths. Concatenating Strings to ... Read More

What happens to Open File Handle if file is Moved or Deleted?

Satish Kumar

Satish Kumar

Updated on 26-Dec-2022 11:24:01

243 Views

Overview We’ll look at how the operating systems behave when we delete, move or replace files that have open handles. We’ll first briefly talk about files and inodes. After that, we’ll look at the different scenarios and see which one occurs in each case. Understanding Files and Inodes Files stored ... Read More

How to solve “Unary operator expected” errors?

Satish Kumar

Satish Kumar

Updated on 26-Dec-2022 11:12:05

7K+ Views

Overview In this article, we will discuss how to solve the unary operator expected error in Linux. This is one of the most common errors that you may encounter while working with Linux. In this post, we will see how to fix it and what are the possible causes for ... Read More

How to Clear Linux terminal screen?

Satish Kumar

Satish Kumar

Updated on 26-Dec-2022 11:06:58

1K+ Views

Overview The Linux terminal is an important tool for any user of the operating system, and it's often used to perform various tasks such as viewing log files or running commands. However, sometimes you may need to clear a screen on your computer so that you can see more than ... Read More

Manipulating images with ImageMagick command

Satish Kumar

Satish Kumar

Updated on 26-Dec-2022 11:04:15

295 Views

Overview ImageMagick is an open source software suite for image manipulation. We can install it on our system using apt−get and then run commands through its command line interface (CLI). We’ll take a quick peek at some of the most popular methods for manipulating images with ImageMagick. Installation Let’s start ... Read More

Command chaining: Inline or Already running process

Satish Kumar

Satish Kumar

Updated on 26-Dec-2022 10:58:16

151 Views

Overview You may sometimes want to run several commands sequentially in Linux. To accomplish this, you can use command chaining. For example, if you wanted to download a compressed archive, decompress it, and then remove the resulting archive from disk, you could type these three commands together. Here, we’ll look ... Read More

Create bash alias that accepts parameters

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 12:46:20

616 Views

Overview When working with Bash scripts or Unix/Linux command line tools, we often write the same command lines over and over again. Often, these command lines are long and must be repeated multiple times. For instance, when logging into a remote server daily, copying a local folder to the remote ... Read More

Advertisements