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…
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…
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…
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]++’…
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…
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,…
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…
The SHELL variable stores the parent shell for your session, which sometimes matches with your default login shell. The $SHELL is the parent shell which spawned the current session. $ whoami razvan $ echo $SHELL /bin/bash $ zsh % echo…
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…
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…