Linux commands are very efficient. Why not take it a step further by installing Rust alternatives for some popular Linux commands?
While these commands broadly do the job, there is always a touch of modern coding standards worth adding, to make things more seamless. Let’s talk about some of the Rust tools in Linux that are worth trying.
Every Linux distribution derives its roots from the Linux kernel, which was released way back in 1991. It was initially written in C, but slowly and steadily, Rust is taking over as a second language to C within the kernel. As the technology continues to evolve, so have the commands you can use to perform the same functions, but at better efficiency.
1. Replace “man” With “tldr”
Linux man pages have probably been around forever, which is probably why these manuals continue to be every beginner’s work guide. Unfortunately, considering how long they have been around, it’s becoming difficult for users to assimilate some of the commands and directions displayed on these pages.
Even though Tealdeer is just another adaptation of your run-of-the-mill man pages, the manuals generated by this command are much easier to comprehend. The most commendable fact about tldr is that it lists every possible command one would use within the command window, not to mention the unending support from the tldr community.
This is where Tealdeer (tldr) comes into the picture.
To install tldr on Ubuntu and Debian:
sudo apt-get update
sudo apt-get install tldr -y
To install Tealdeer on Fedora and other RHEL-based distros:
sudo dnf install tealdeer
Use tldr the same way you would use the man command. For example, run the following commands and see the difference between the two outputs: man ls
man page for ls command
Output: tldr page for the ls command
Tealdeer is more comprehensive, which offers better insights into how each command works. This makes it ideal for beginners who are still exploring the world of Linux commands.
2. Use “dust” in Place of “du”
What would you do if you were able to see your system’s memory usage all in one go? Well, if yes, then it is time to replace du with dust. The erstwhile du command returns your disk usage, but the dust command can help you save more time than usual. Imagine seeing all your top usage statistics in a graphical form, all on a single screen.
You can install dust on your system using snap: sudo snap install dust
Post-installation, you can run the dust command in the terminal or specify a particular directory with the command to list the memory usage.
To use the command, specify a directory path with the command: dust /path/to/directory
…where /path/to/directory is the absolute or relative path to a folder.
- Use Rust Commands Instead Of Traditional Linux Commands With These 6 Rust Commands
- Check all news and articles from the latest Security news updates.