bash
Bash tab completion fails inside of command substitution
I’ve been using kill $(pidof ) to terminate programs for a while, and since last night, every time I try to use tab completion inside the $() it throws an error,
How shall I reuse a function in multiple scripts?
In bash, sometimes I would like to reuse a function in several scripts.
Is it bad to repeat the definition of the function in all the scripts?
If so, what is some good practice?
Is there a bash builtin command which can show the environment variables of the current shell?
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.
Why is this command not working: “ps aux | grep xscreensaver”
I didn’t see any hits about this on google, so I’m asking you:
Disable logging to syslog
I am experimenting with aircrack-ng and I managed to fill up / with the syslog file complaining about what I’m doing to the poor wifi card. How can I disable logging to syslog for the duration of my Bash session?. Of course I would like other, unrelated, processes to continue their logging as necessary.
How do I remove a directory and all its contents?
In bash all I know is that
Hide some commands from bash completion?
In bash, suppose I have these commands:
BC – no “\n” at the end + start with zeros?
This is a bc output, e.g.: