Blog Archives

Fedora To Replace Bash With Either Dash Or Mksh As The Default, Non-Interactive Shell?

Hello Linux Geeksters. As you may know, Ubuntu and Debian are using Dash (Debian ASH) as the system’s default, non-interactive shell, due to the fact that bash has high memory requirements and so, the system would have needed more time

Tagged with: , , , , ,
Posted in The Linux and Unix Articles!

How To Install Popular Linux Stuff: sudo, bash, nmap, wget, mc On Jolla’s Sailfish OS

Hello Jolla Enthusiasts. In this article I will show you how to install a bunch of popular Linux tools, including: sudo, bash, nmap, ncat, nping, wget and mc on Jolla’s Sailfish OS system. Since it is SUSE based, we are

Tagged with: , , , , , , , ,
Posted in The Linux and Unix Articles!

Oneliners for Removing the duplicates in your $PATH

Hello Bash Coders. In this article I will show you how to remove the duplicates in your PATH environment variable. This is how you do it with AWK: ONE: $ echo -n $PATH | awk -v RS=: -v ORS=: ‘!arr[$0]++’

Tagged with: , , , , , , , , , , ,
Posted in The Linux and Unix Articles!

Ignore duplicate entries in the bash history

As you know, bash keeps a history of the commands used in your user’s session. But, when you use a command twice (or more), it will be saved with two (or more) entries in the bash history. The best way

Tagged with: , , , , , , ,
Posted in The Linux and Unix Articles!

Setting a text editor for visudo

As you know, the recommended way for editing the/etc/sudoers file is with visudo. Visudo opens the /etc/sudoers file with the default text editor, and warns you if you save code with errors. Visudo reads the SUDO_EDITOR, VISUAL and EDITOR variables,

Tagged with: , , , , , , , , , , , , ,
Posted in The Linux and Unix Articles!

For the Unix and Linux beginners: How to display the common PATH-like environment variables

A regular Linux and Unix user should know how to use the PATH, CDPATH, MANPATH and HOME environment variables, in the bash shell. With the PATH and the CDPATH set in the right way, you can easily use your commands

Tagged with: , , , , , , , ,
Posted in The Linux and Unix Articles!

Share PATH, aliases and functions between Bash and Zsh

Sharing the aliases, customized PS1 (prompt), functions and PATH/CDPATH between the zsh and bash shells is very usefull. To my mind, the cleanest way to do this is to create a new file, having the portable shell settings stored there

Tagged with: , , , , , , , , , , ,
Posted in The Linux and Unix Articles!

The bash !$ trick: Insert the last argument of the previous command in the current command

The !$ trick works on bash, csh, tcsh and zsh, but does not work on ksh. The !$ trick is very usefull in the Linux and Unix shells. In the Bash shell, the !$ inserts (and expands) the last used

Tagged with: , , , , , , , , , , , ,
Posted in The Linux and Unix Articles!

2 Bash tricks: TAB-TAB and Case Insensitive Completion

In this article I will show you two bash inputrc tricks. The first one is: set show-all-if-ambiguous on. Add this to your ~/.inputrc file because it is very usefull. When pressing TAB for command completion, all the matches will be

Tagged with: , , , , , , ,
Posted in The Linux and Unix Articles!
Support LinuxG via Patreon
Support LinuxG.net on Patreon!
Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!