Site icon The Magazine

Best 9 Modern Alternatives To Classic Linux Commands

Modern alternatives to classic linux commands

This post will explain Modern alternatives to classic linux commands. We collected modern-day alternatives to classic Linux commands for you. There are some terminal energies that essentially every Linux computer system includes in its default setup (and for the most part even in its very little installation). They are important for the operation of other tools and have actually been with Linux because its really birth because all of them were born years prior to for Unix or compatible systems (such as BSD).

Best 9 Modern Alternatives To Classic Linux Commands

In this article, you can know about Modern alternatives to classic linux commands here are the details below;

 Alternatives to classic Linux commands

Over the years, alternatives have actually been emerging that improve and/or simplify their more experienced recommendations, and many of them have actually already made a place in the hearts of Linux users. Allow us take a glance at some of the most outstanding ones:

 Feline vs Bat

Cat’ (short for ‘concatenate’) is a command that allows us to produce or merge files, or ‘print’ them to basic output (displaying them in the terminal or rerouting them to another file).

On the other hand, ‘bat’ (which is defined as ‘cat with wings’) supplements cat in all its functions, including other beneficial ones such as automated syntax highlighting for a wide variety of programs and markup languages, integration with Git (highlighting adjustments), automatic pagination or the alternative to display non-printable characters. Also check textnow apps

 Cd vs Zoxide (Z).

Possibly the most pre-owned command when working with the terminal, ‘cd’ (short for “modification directory site”) does precisely that, enabling us to alter directory site (folder) to carry out the pertinent commands in each one.

However what if ‘cd’ monitored the directories we utilize most often and used an arranging algorithm to browse to the best match, conserving us from having to type complex paths over and over once again? Then the program would be called Zoxide and would utilize ‘z’ as the command.

 Diff vs Diff-so-fancy.

Diff’ (short for “distinction”) allows us to envision the distinctions between 2 files or 2 directory sites. It is one of the most pre-owned commands by developers, often in mix with Git, to understand which lines of code have altered between 2 versions of the same program.

Nevertheless, a typical criticism of ‘diff’ is that it seems to be more machine-readable than human-readable, so to better acknowledge changes at a look, they have actually launched ‘diff-so-fancy’, which does without making use of symbols such as ‘+’ and ‘-‘, and relies instead on enhanced text highlighting.

 Du vs Ncdu.

‘ Du’ (abbreviation of ‘disk use’) is a command that enables showing how much disk space directory sites and files inhabit, enabling according to the arguments that we are passing to the program to know which are the ones that occupy the most area. So, if we needed to know the 5 ‘heaviest’ directory sites and show them arranged on-screen with human-readable systems (MB, GB, and so on) we need to compose something like the following:.

– du -hs *|sort -nr|head.

Nevertheless, ‘ncdu’ is an alternative that not just shows us straight the very same details as the previous complex command but accompanies it with bar graphs … and allows us to browse in between directories to know, in turn, the ‘weight’ of each of the folders they contain. Or delete them:.

 Discover vs Fd.

Discover’ indicates, literally, “find” in English; which is exactly its job, to look for files on the hard drive following the criteria we supply (the name of the file or part of it, the user’s name, the file size, and so on).

Fd’ does not consist of as many alternatives and modifiers as ‘find’, however it is an easier option to it most of the times. So, for example, to look for any MP3 file in the present directory you would previously compose. Also check Discord overlay not working

– find. -iname “*. mp3”.

– … now a simple ‘fd.mp3’ would be enough.

 Ls (and Tree) vs Exa.

‘ Ls’ is probably close to ‘cd’ in terms of frequency of use by Linux users. Its function is rather simple: list the files and folders inside a directory, the equivalent of opening it in the file explorer. Tree’ would be the equivalent of the web browser’s navigation panel, showing all the subdirectories in tree format.

Well, ‘Exa’ uses the very same functions as both, but makes use of a colored output that permits to separate at a glance folder from files, in addition to identify authorizations and owner users, and shows additional info if we imagine Git repositories, besides dealing with dates in standard format (and not in Anglo-Saxon).

– To replace the functions of ‘tree’, just use.

-$ exa– tree.

 Guy vs TLDR.

Nowadays it prevails to search Google for information on how to use any program with which we are not familiar, but at the time, in the early days of Unix, there was no Google, nor Web, so the paperwork of each program was installed in addition to it and was (and is) searchable utilizing the ‘guy’ command (from ‘handbook’).

The problem with ‘guy’ is that the novice user who resorts to it sees how it offers him a long list with all the in-depth options of the program consulted, and that is not constantly useful. In a lot of cases, more than a manual, we need a handbook, and that is what ‘tldr’ provides us: summed up variations of the handbooks of each command, focused on revealing us practical and simple examples.

This website supplies a sample of the result that ‘tldr’ would attend to each query.

 Sed vs Sd.

Sed’ is the abbreviation of ‘Stream Editor’, and it is a text processor in the most traditional sense of the term: the arguments we pass to the command will allow us to transform the material of one or several text files, allowing us, for instance, to cut text or change it according to particular requirements. Also check Accessibility terms

Sd’ can doing the majority of the things that ‘Sed’ does, but makes them much easier. In part, thanks to the fact that the syntax for routine expressions that it uses is the same that we can find in JavaScript, much simpler than that of ‘sed’ and ‘awk’. So, for instance, 2 commands like:.

 They are transformed into:.

 Leading vs Htop.

‘ Leading’ is a command that provides a set of stats (upgraded every couple of seconds) about the usage of our system: RAM and SWAP memory, CPU usage, and above all about the most active procedures when utilizing those resources. Htop’ is really comparable, only much better: colored visualization, more legible ‘layout’ of the information, use of graphs, etc.

Exit mobile version