Aditya Chatterjee's Blog, page 120

January 30, 2022

wget command in Linux

wget is a Linux command line utility useful for retrieval and downloading of files from the internet. It uses protocols such as FTP, HTTP and HTTPS for such tasks. In this article we have discussed commonly used wget commands and options.

Table of contents.Introduction.Syntax.Commands.Summary.References.Introduction.

wget is a Linux command line utility useful for retrieving or downloading files from the internet. It uses protocols such as FTP, HTTP and HTTPS for such tasks.

wget can wor...

 •  0 comments  •  flag
Share on Twitter
Published on January 30, 2022 10:52

lstopo command in Linux

In this article, we discuss the lstopo Linux command used for showing the topology of a system.

Table of contents.Introduction.Syntax.Commands.Summary.References.Introduction.

lstopo command is used to show the topology of the system. It gives information about the NUMA memory nodes, shared caches, CPU packages, processor cores and threads and much more.

Syntax.

It renders the machine topology as discovered by hwloc, there are two main modes textual rendering or graphical rendering.

For ...

 •  0 comments  •  flag
Share on Twitter
Published on January 30, 2022 08:43

Convert Octal to Decimal

In this article, we will be going to solve a problem named convert octal to decimal. This is a very basic problem of computer science involving ideas of base in number system and conversion.

Tables of contents:

Introduction to Problem StatementProperties of the OctalRules for octal to Decimal conversionTracing a Few Sample ExamplesImplementing the Solution in C Explanation of C codeTime and Space ComplexityIntroduction to Problem Statement

In this problem, the octal form of a number ...

 •  0 comments  •  flag
Share on Twitter
Published on January 30, 2022 01:29

ChainMap in Python

In this article, we will explore the ChainMap container which is available in the collections module in Python.

Table of Contents:

What is a Chain MapCreating a Chain MapOperations on Chain MapIterating over a Chain MapChain Map Complexity AnalysisApplications of Chain MapPractice QuestionsWhat is a Chain Map

Python's ChainMap container provides a way to group multiple dictionaries into one so that they appear as a single dictionary. We can perform all the operations on a ChainMap that ...

 •  0 comments  •  flag
Share on Twitter
Published on January 30, 2022 01:24

January 29, 2022

Resolve merge conflict on Gerrit

In this article, we have explained the steps to resolve merge conflict on Gerrit with the detailed step by step commands. This can be solved in the console using rebase command and manually, fixing the conflicts in code.

Pre-requisite:

Open a pull request on GerritReview a Merge Request on GerritFix merge conflict on Gerrit

You can find that there is a merge request when you will try to rebase your pull request. You can rebase using the "rebase" button on the pull request page.

"Rebase" mean...

 •  0 comments  •  flag
Share on Twitter
Published on January 29, 2022 17:05

Review a Merge Request on Gerrit

In this article, we have explained the detailed steps to review a Merge Request on Gerrit. Code Review is an important step in Software Development.

Pre-requisite:

Open a pull request on GerritReview a Merge Request on Gerrit

To review a pull request on Gerrit, you can go to the project page and go through the files that has been changed.

On clicking on a line number, a dialog box will open and you can add your comment there. Once you have added all comments, you need to submit it by clicking...

 •  0 comments  •  flag
Share on Twitter
Published on January 29, 2022 16:42

Open a pull request on Gerrit

In this article, we have explained the detailed steps to open a pull request on Gerrit. The process is distinct from the process of opening a pull request on GitHub.

The difference in Gerrit is that git push command will open a new pull request for every commit on Gerrit. There is no concept of fork on Gerrit so no manual UI step is needed. So, be carefully to keep all changes for a single pull request on a single commit.

The steps to open a pull request on Gerrit:

Step 1: Make code changes.St...
 •  0 comments  •  flag
Share on Twitter
Published on January 29, 2022 13:39

Copy files from one server to another server

In this article, we have explored the steps to copy files from one remote server to another remote server. This involve using commands like scp or utilities like WinSCP.

Table of contents:

Approach 1: Copy files using SCP command in LinuxAlternative approach using WinSCP

Pre-requisites:

scp command in LinuxApproach 1: Copy files using SCP command in Linux

The steps to copy files from one server to another server are:

Step 1: Get login information for each server.Step 2: Get file path of ...
 •  0 comments  •  flag
Share on Twitter
Published on January 29, 2022 13:21

scp command in Linux

scp is useful for, copying files from a local system to a remote system and vice versa or copying files between two remote systems. It works same as cp command but over networks and uses ssh for encryption and security..

Table of contents.Introduction.Syntax.Commands.Summary.References.Introduction.

The scp command is useful for copying files and directories from remote systems securely. It is similar to the cp command that copies files except that it does this to and from other systems ...

 •  0 comments  •  flag
Share on Twitter
Published on January 29, 2022 11:36

chown command in Linux

The chown (change owner) command is used to change the ownership of a file or directory. In this article we discuss commonly used chown commands for file management.

Table of contents.Introduction.Syntax.Groups, GID, UID.Listing permissions.Changing ownership.Summary.References.Introduction.

The chown (change owner) command is used to change the ownership of a file or directory.

Every file in Linux is associated with an owner and a group.
Permissions, access rights are assigned to a gr...

 •  0 comments  •  flag
Share on Twitter
Published on January 29, 2022 08:47