Mukul Latiyan has Published 474 Articles

How to find the files in Linux that have been changed in the last 24 hours?

Mukul Latiyan

Mukul Latiyan

Updated on 29-Jul-2021 11:23:50

1K+ Views

One thing that is constant about working with Linux is that we will make changes to one file or another with time. There are some files that stay unchanged, for example the files inside the /usr/local/ directory while there are some files that are just temporary and get deleted automatically, ... Read More

Linux – How to find the files existing in one directory but not in the other directory?

Mukul Latiyan

Mukul Latiyan

Updated on 29-Jul-2021 11:20:02

429 Views

Let’s consider a case where we have two directories, say, d1 and d2 and both these directories contain some files, which may be the same or different. Now we want to list out the names of those files that are present in one of these directories say d1 and not ... Read More

Fastest way to tell if two files have the same contents in Unix/Linux

Mukul Latiyan

Mukul Latiyan

Updated on 29-Jul-2021 11:18:14

551 Views

Let’s say that we have two files inside a directory called dir1, and at first both these files are different. Different in the sense that the text they contain isn’t the same.The files in the folder −immukul@192 dir1 % ls -ltr total 16 -rw-r--r-- 1 immukul staff 7 Jul 7 ... Read More

Crontab day of the week syntax on Linux

Mukul Latiyan

Mukul Latiyan

Updated on 29-Jul-2021 11:15:29

3K+ Views

In order to understand the syntax of a crontab job, we first need to explore and understand what a crontab job is.A crontab is nothing but a list of commands that we can run during a cron job. A cron job is a utility that schedules automatic execution of commands ... Read More

Convert XLSX to CSV in Linux with Command Line in Linux

Mukul Latiyan

Mukul Latiyan

Updated on 29-Jul-2021 11:13:16

981 Views

XLSX file is a standard file extension for the modern Microsoft Excel spreadsheet. We use of these files to analyze and organize data and they usually contain numerical data separated by rows and columns within a cell.On the other hand, a CSV file is basically a delimited text file that ... Read More

Best practices when running Node.js with port 80 (Ubuntu) in Linux

Mukul Latiyan

Mukul Latiyan

Updated on 29-Jul-2021 11:10:17

549 Views

We know that most of the time we want our node applications to listen on port 80. While it is a widely used technique and many times we don’t need anything else then just simply mentioning the port as 80 in our project configurations. The real issue actually resides in ... Read More

How to add a new entry to the PATH variable in ZSH on Mac OS in Linux

Mukul Latiyan

Mukul Latiyan

Updated on 29-Jul-2021 11:06:32

13K+ Views

By default, we don’t have the .zshrc file present in macOS Catalina, and we need to create it. In order to create the .zshrc file, we can follow the steps shown below −Open TerminalType touch ~/.zshrc to create the file.Hit ReturnWe can also open the .zshrc file in the terminal ... Read More

How to define and call a function in Lua Programming?

Mukul Latiyan

Mukul Latiyan

Updated on 20-Jul-2021 14:36:30

4K+ Views

A function is a group of statements that together perform a task. You can divide up your code into separate functions.Functions help in reducing the code redundancy and at the same time they make the code much more readable and less error prone.In Lua, we declare functions with the help ... Read More

How to create standalone Lua executables?

Mukul Latiyan

Mukul Latiyan

Updated on 20-Jul-2021 14:33:13

1K+ Views

We can create standalone Lua executables with the help of the third party packages like srlua.srlua does a perfect job in converting a Lua script file into an executable, and we can do it on both the major platforms, whether that is the windows or the Unix based systems.Let’s first ... Read More

How to create a Sandbox in Lua?

Mukul Latiyan

Mukul Latiyan

Updated on 20-Jul-2021 14:32:05

561 Views

In order to create a sandbox and to be able to use it we must first understand what a sandbox is and why we need it. A sandbox is term that is used in different fields of computer science, like in case we are talking about the software testing domain, ... Read More

Advertisements