Mukul Latiyan has Published 474 Articles

Break statement in Lua Programming

Mukul Latiyan

Mukul Latiyan

Updated on 01-Dec-2021 10:06:13

542 Views

The break statement is used when we want to break or terminate the execution of a loop. Once the break statement is reached, the control is transferred from the current loop to whatever is written after the loop. This statement breaks the inner loop (for, repeat, or while) that contains ... Read More

How to use chmod recursively on Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 02-Aug-2021 06:45:04

302 Views

You might have been in a scenario where you are using a Linux as your main operating system and then you try to create or edit a file and the Linux terminal responds with something like “Permission deny” error. In typical sense, such an error is related to insufficient permissions ... Read More

What Linux utility for sorting processes by network usage?

Mukul Latiyan

Mukul Latiyan

Updated on 31-Jul-2021 12:32:37

257 Views

Linux provides the famous top command utility that provides us with all the information about the processes, their time, their respective IDs, how much CPU chunk they are consuming and much more. The only issue with that is the processes are not sorted in any order and the order changes ... Read More

What's the difference between nohup and ampersand (&) on Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 31-Jul-2021 12:30:16

284 Views

Linux provides us with different utility commands that we can make use of to print a random line from any files in the Unix command line. Mostly we make use of either the shuf command or the sort command, and in this article I’ll explain both the commands and which ... Read More

Where can I set environment variables that crontab will use?

Mukul Latiyan

Mukul Latiyan

Updated on 31-Jul-2021 12:29:08

882 Views

In normal cases we make use of the bash_profile or bashrc in case of Ubuntu and zshrc in case of Mac OS, to set our environment variables and then those variables are made available to us everywhere on the terminal we want.Let’s consider a simple example where we have some ... Read More

What is the sed in-place flag that works both on Mac and Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 31-Jul-2021 12:26:24

3K+ Views

We know that the SED command in Linux stands for stream editor and is mainly used to perform functions on files, and the functions usually are either searching for a word, or replacing it or insertion of something and few more. It is a very useful command and can be ... Read More

What is the Linux Equivalent to DOS Pause?

Mukul Latiyan

Mukul Latiyan

Updated on 31-Jul-2021 12:25:43

147 Views

We know that the Pause command in DOS is used to suspend execution of the batch files and it then displays the messageStrike a key when ready ...It should also be noted that some versions of DOS also allow a comment to be entered on the same line as PAUSE.ExampleWe ... Read More

What is fopen() and open() in Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 31-Jul-2021 12:23:25

5K+ Views

The key difference between the fopen() and the open() function in the Linux operating system is that the open() function is a low-level call, where the fopen() when called simply calls the open() function in the background and it returns a Filepointer directly.The call to the open() function includes invoking ... Read More

What does opening a file actually do on Linux?

Mukul Latiyan

Mukul Latiyan

Updated on 31-Jul-2021 12:22:04

382 Views

When we are talking about opening a file, then we have different cases such as in what language and what API are we actually calling when opening a file. While in most of the cases it is quite simple, the higher level languages will eventually call either the C API ... Read More

Understanding stdin, stderr and stdout in Linux

Mukul Latiyan

Mukul Latiyan

Updated on 31-Jul-2021 12:21:26

21K+ Views

There is a decent chance that if you have used Linux operating systems then you might have encountered the three famous data streams known as stdin, stderr and stdout. All these are different in their functions and have their own uses but one thing common between all three of them ... Read More

Advertisements