Mukul Latiyan

Mukul Latiyan

363 Articles Published

Articles by Mukul Latiyan

Page 32 of 37

How to check if a particular service is running on Ubuntu?

Mukul Latiyan
Mukul Latiyan
Updated on 29-Jul-2021 4K+ Views

We know that we can make use of the top command to print all the processes that are running in the background. Though the top command is used to print the list of processes or threads that are currently managed by the Linux kernel, it is still not a convenient way to check if a particular service is running in the background or not.In order to understand how to check whether a particular service is running or not, we first must understand what a service actually means in Linux. A service is basically a process or group of processes that ...

Read More

How to change the root directory of an Apache server on Linux?

Mukul Latiyan
Mukul Latiyan
Updated on 29-Jul-2021 2K+ Views

Apache web server is one of the most used web servers across all the platforms even after including different Linux distributions and windows. Apache server is an open source HTTP server that is mainly used to deliver web content and can also be used to serve many queries at once.In this article, I will try to explain how to change the root directory for Apache web server.It is usually the case that to change the root directory we must first be aware of its exact location and in the case of the Apache server, the root directory which is also ...

Read More

How to activate virtualenv on Linux?

Mukul Latiyan
Mukul Latiyan
Updated on 29-Jul-2021 1K+ Views

When we talk about keeping our dependencies in a separate location from our logic code we are indeed creating nothing but a virtual environment, which in python, we usually use the term venv to refer to as.So a venv is nothing but a virtual environment which is in turn a tool that allows us to keep our dependencies that are required by the project to be kept in a separate folder. These separate folders that we create are known as the python virtual environments.Python venv is one of the most widely used tools.Now we know what virtualenv is and what ...

Read More

How should strace be used on Linux?

Mukul Latiyan
Mukul Latiyan
Updated on 29-Jul-2021 195 Views

Linux utility commands are what makes Linux such a powerful operating system, while there are plenty of commands that we can use to interact and get information about the signals and system calls, but the most used and preferred command when it comes to getting the information about the system calls and signals is the linux trace command.It can be used for getting a diagnosis of the system, for monitoring specific processes or instruction tools of Linux. It has variety of use cases and some of these use cases are −Print timestamp for each system callOutput line with clock timeTrace ...

Read More

How to send a file as an email attachment using the Linux command line?

Mukul Latiyan
Mukul Latiyan
Updated on 29-Jul-2021 4K+ Views

In order to send a file as an attachment to an email using Linux, we either need to make use of a command line email client or the standard linux mail command.There are multiple command line email clients available to achieve the attachment task, but the most common and widely used is mutt.Mutt is a command line based email client that allows us to send and read emails from command line in Linux based systems. It also supports important protocols like IMAP and POP which broadens the use-cases and application of mutt.Some of the key features that Mutt has are ...

Read More

How to list one filename per output line in Linux?

Mukul Latiyan
Mukul Latiyan
Updated on 29-Jul-2021 3K+ Views

There are plenty of Linux utility commands present to print the list of all the files and folders that are present in the current directory. Most commonly used are the ls and the find command.Let’s explore a simple example where we will make use of the ls command to list all the files and the folders present in a particular directory.CommandlsOutputapi cluster docs LICENSE Makefile.generated_files pkg staging vendor build cmd go.mod LICENSES _output pluginOn Ubuntu, we get the output in the above format, ...

Read More

How to increase the scrollback buffer in a running screen session on Linux?

Mukul Latiyan
Mukul Latiyan
Updated on 29-Jul-2021 894 Views

Screen or sometimes also known as GNU Screen, is a terminal multiplexer. What it means is that it allows you the privilege to start a screen session and then open any number of windows inside that session.It might also be interesting to note that a process that is running in Screen will continue to run even when their window is not visible anymore.Installing Linux ScreenIn order to install the screen package if it is not already present on your linux distribution, you can run any of the suitable commands shown below for your machine.For Ubuntu and Debiansudo apt update sudo ...

Read More

How to find all the distinct file extensions in a folder hierarchy (Linux)?

Mukul Latiyan
Mukul Latiyan
Updated on 29-Jul-2021 1K+ Views

While there are plenty of ways to find the extension of a particular file in Linux using different utility commands, if we need to find all the distinct file extensions in a folder hierarchy we need to first understand the uses of the find and the sed command as these commands will be used to print all the distinct file extensions in a folder or a folder hierarchy.The two Linux utility commands that we must be aware of are −find − used to locate a particular file or directorysed − short for stream editor and is used to perform functions ...

Read More

Getting root permissions on a file inside of vi on Linux

Mukul Latiyan
Mukul Latiyan
Updated on 29-Jul-2021 896 Views

There are many scenarios where we think that we have opened a file to make changes to it using the root user but when we actually try saving the changes, we realize that the file was opened with a normal user or with a user that doesn’t have the specific permission to edit the file. In such cases, we usually have only one option and that is to close the file with the command shown belowq!And then, open the file again with the command shown belowsudo su vi file.txtMake changes and save the file with the command shown belowwq!While this ...

Read More

Generating a SHA-256 hash from the Linux command line

Mukul Latiyan
Mukul Latiyan
Updated on 29-Jul-2021 4K+ Views

There are plenty of ways to generate a hash on any operating system, but when we talk about generating an almost-unique and fixed size bit hash, then nothing can replace the SHA algorithm.Before making use of the Linux command to generate a SHA-256 hash, we must know what SHA actually is and what it is good for.SHA-256 in very simple terms is a cryptographic hash function that has a digest length of 256 bits. It is an algorithm on its own that is able to generate an almostunique and fixed size 256-bit(32-byte) hash. It is also good to know that ...

Read More
Showing 311–320 of 363 articles
« Prev 1 30 31 32 33 34 37 Next »
Advertisements