Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

shell-builtin

Use system command instead of Bash builtin without specifying the full path

August 9, 2022 by Magenaut

I use Bash as my interactive shell and I was wondering if there was an easy way to get Bash to run a system command instead of a shell builtin command in the case where they both share the same name.

Categories Q&A, Unix & Linux Tags bash, shell-builtin Leave a comment

What is “declare” in Bash?

August 9, 2022 by Magenaut

After reading ilkkachu’s answer to this question I learned on the existence of the declare (with argument -n) shell built in.

Categories Q&A, Unix & Linux Tags bash, control-flow, declare, function, shell-builtin Leave a comment

Order of executables started in bash

August 8, 2022 by Magenaut

If I execute the test command in bash, test(evaluates conditional expression) built-in utility is started:

Categories Q&A, Unix & Linux Tags bash, command, shell, shell-builtin Leave a comment

How to invoke a shell built-in explicitly?

August 8, 2022 by Magenaut

I want to customize the functionality of cd command as per my needs.

Categories Q&A, Unix & Linux Tags bash, shell-builtin, shell-script Leave a comment

missing man pages of some commands

August 8, 2022 by Magenaut

Typing man alias gives me

Categories Q&A, Unix & Linux Tags documentation, man, shell-builtin Leave a comment

Is there a bash builtin command which can show the environment variables of the current shell?

August 8, 2022 by Magenaut

env and printenv are both external commands i.e. executable files, not bash builtins.
The problem with them is that some environment variables (such as _, and I also wonder if there are more) which they output don’t belong to the shell which invokes them, see here.

Categories Q&A, Unix & Linux Tags bash, environment-variables, shell-builtin Leave a comment

Slightly confused about whether printf in the yash shell is a built-in command or not

August 8, 2022 by Magenaut

The yash shell has a printf built-in, according to its manual.

Categories Q&A, Unix & Linux Tags posix, printf, shell-builtin, yash Leave a comment

How to distinguish between builtin and external util? (e.g. echo)

August 8, 2022 by Magenaut

Some commands are provided as both builtins and external utilities. Take echo for example. On my machine (macOS) running Bash 3.2,

Categories Q&A, Unix & Linux Tags shell-builtin Leave a comment

What’s the difference between eval and exec?

August 7, 2022 by Magenaut

eval and exec are both built in commands of bash(1) that execute commands.

Categories Q&A, Unix & Linux Tags bash, shell, shell-builtin Leave a comment

Use case / practical example for Bash’ builtin exec

August 6, 2022 by Magenaut

Consider this from the documentation of Bash’ builtin exec:

Categories Q&A, Unix & Linux Tags bash, exec, shell-builtin, shell-script Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress