Language Selection

English French German Italian Portuguese Spanish

Bash HISTCONTROL

Filed under
HowTos

I happened to come across Linux Tips: take control of your bash_history. This explains that setting "export HISTCONTROL=ignoreboth" causes Bash not to store duplicate commands in history. For example, if you are checking "ps" waiting for some process to end:

ps -e | grep foo

and keep pressing up arrow every few seconds to repeat it, you'll end up with a long list of those in your history if this isn't set. If it is set, you get only the last.

Actually there's much more to this than that little post exlained.

Full Story.

More in Tux Machines

Start with Scratch: Learn Linux by rolling your own distro

Linux From Scratch teaches you how to bake a complete Linux system, minus cutting-edge details like Docker -- although for those allergic to systemd, you can leave that out too Read more

10 Best Linux Desktop Environments And Their Comparison | 2017 Edition

The Linux world is full of open source software. You have the option of choosing from hundreds of distributions and customize them as per your will. No one slaps you with a copyright even if you change the source code of a distro to fork your Linux distro and release it with a new name. Only one thing the creators may ask you is to give them proper credits because they have also invested their efforts and time. Read more

Using Open Source to Empower Students in Tanzania

Powering Potential Inc. (PPI) aims to enhance education opportunities for students in Tanzania with the help of the Raspberry Pi and open source technology. “I believe technology is a vital part of the modern human experience. It enlightens. It ties us together. It broadens our horizons and teaches us what we can be. I believe everyone deserves access to these resources,” says Janice Lathen, Founding Director and President of PPI. Read more

IoT gateway runs mainline Linux on i.MX7

Compulab’s “IOT-GATE-iMX7” gateway runs mainline Linux on its CL-SOM-iMX7 COM, and offers optional GbE, 3G, WiFi, BT, and ZigBee. Compulab has launched a Linux-driven Internet of Things gateway built around its CL-SOM-iMX7 COM, featuring NXP’s power-sipping i.MX7 SoC. The embedded world is awash in i.MX6-based IoT gateways, but this is the first i.MX7 based model we’ve seen. Read more