Daily Shaarli

All links of one day in a single page.

March 25, 2023

bash - Override a builtin command with an alias - Stack Overflow
thumbnail

To override a non-builtin with a function, use command. For example:

ls() { command ls -l; }

which is the equivalent of alias ls='ls -l'.

command works with builtins as well. So, your cd could also be written as:

 cd() { echo before; command cd "$1"; echo after; }

To bypass a function or an alias and run the original command or builtin, you can put a \ at the beginning:

\ls # bypasses the function and executes /bin/ls directly
7 Hidden Calibre Features That'll Help You Manage Your Ebooks Better
thumbnail

Calibre is brilliant, but many of its features fly under the radar. Here are the best Calibre features to help you manage your ebook collection.