Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the five necessary tools for Linux development?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the knowledge of "what are the five necessary tools for Linux development". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Container

Looking at reality, it is already the age of containers. Containers are both extremely easy to deploy and can easily build a development environment. If you are aiming at the development of a specific platform, it is a good way to create all the tools needed for the development process into a container image, as long as you use this container image, you can quickly start a large number of instances running the required services.

An example of using containers is to use Docker. Using containers (or Docker) has these benefits:

Consistent development environment

It can be run after deployment

Easy to deploy across platforms

Docker images are suitable for multiple development environments and languages

It is not cumbersome to deploy a single container or container cluster

Through Docker Hub, you can find images that are suitable for almost any platform, any development environment, any server, any service, and can meet almost any need. Using an image in Docker Hub eliminates the need to build a development environment, and you can start developing applications, servers, API, or services directly.

Docker is easy to install on all Linux platforms, for example, you can install Docker on Ubuntu by entering the following command from the terminal:

Sudo apt-get install docker.io

Once the Docker is installed, you can pull the image from the Docker repository and begin development and deployment (see figure below).

Figure 1: Docker image ready for deployment

Version control tool

If you are working on a large project or are involved in team development, version control tools are essential and can be used to record code changes, submit code, and merge code. Without such tools, the project can hardly be managed properly. On Linux systems, the ease of use and popularity of Git and GitHub are unmatched by other version control tools. If you are not familiar with Git and GitHub, you can simply understand that Git is a version control system installed on your local computer, while GitHub is a remote repository for uploading and managing projects. Git can be installed on most Linux distributions. For example, on Debian-based systems, you can install it with the following simple command:

Sudo apt-get install git

After installation, you can use Git to implement version control (as shown in the following figure).

Figure 2:Git has been installed and can be used for many important tasks

Github asks the user to create an account. Users can use GitHub to manage non-commercial projects for free, or they can use GitHub's payment model (see the price matrix for more information).

Text editor

Without a text editor, it would be extremely difficult to develop on Linux. Of course, which is better or worse between text editors depends on the needs of developers. For text editors, some may use vim, emacs, or nano, while others may use editors with GUI. But since the focus is on development, what we need is a tool that meets the needs of developers. But first of all, I would like to say that vim is indeed a powerful tool for developers, but only if you are very familiar with vim, under this premise, vim can meet all your needs and even give you a better experience. However, for some developers, especially those new to Linux, this is not only difficult to help them meet their needs quickly, but can even be a hurdle to overcome. Considering that the goal of this article is to help newcomers to Linux (rather than just promoting their favorite editors for loyal fans of various editors), I prefer to use GUI editors.

As far as text editors are concerned, there is generally nothing wrong with choosing Bluefish. Bluefish can be installed from most software libraries, it supports project management, remote file multithreading, search and replace, recursive open files, sidebar, integrated make/lint/weblint/xmllint, * * system undo / redo, online spell check, automatic recovery, full-screen editing, syntax highlighting (as shown below), multiple languages and so on.

Figure 3: Bluefish running on Ubuntu 18.04

IDE

The integrated development environment Integrated Development Environment (IDE) is a development environment that contains a set of comprehensive tools and can achieve one-stop functions. In addition to writing code in IDE, developers can also write documentation and build software. There are also many applicable IDE on Linux, of which Geany is included in the standard software library, which is very user-friendly and powerful. Geany has syntax highlighting, code folding, automatic completion, building code snippets, automatically closing XML and HTML tags, call prompts, support for multiple file types, symbol lists, code navigation, build compilation, simple project management and built-in plug-in system and other powerful features.

Geany can also be easily installed on the system, such as Geany on a Debian-based Linux distribution by executing the following command:

Sudo apt-get install geany

Once installed, you can quickly get started with this easy-to-use and powerful IDE (see figure below).

Picture 4:Geany can be your IDE.

Text comparison tool

Sometimes you need to compare the contents of two files to find the differences between them, and they may be two different copies of the same file (one is compiled and the other is not). In this case, you certainly don't want to find out the difference with the naked eye, but you want to use a tool like Meld. Meld is a text comparison and merging tool for developers, and you can use Meld to find differences between two files. Although you can use the text comparison tool on the command line, Meld is undoubtedly better in terms of efficiency.

Meld can open two files to compare and highlight the differences between the files. Meld also allows users to merge differences from one of the two files (the following figure shows Meld opening both files at the same time).

Figure 5: comparing two files in a simple difference mode

Meld can also be installed from most standard software libraries and can be installed on Debian-based systems by executing the following command:

Sudo apt-get install meld

This is the end of the content of "what are the five must-have tools for Linux development". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report