I want to run an alias inside a bash -c
construct.
Most of my my aliases are of this form: alias p='pwd'
I was discussing with my friend on how the commands are parsed in the shell, and he told me that bash searches the command in following order
I’m having trouble getting aliases to expand on my hosting account when I run a command like:
I am using tcsh. bash and zsh and other suggestions won’t help here.
For example, a common alias I’ve seen in the ~/.bashrc
file (or equivalents) is
I’ve made several aliases for my convenience.But now I need to be helpful by sending a useful command and it is full of aliases.I’ve tried doing type u
but all it returns is
There are several files I work with often. For instance some configuration files or log files. Let’s say the Apache log file. I often want to tail
or grep
it. Instead of writing:
The sys-apps/shadow package on my GNU / Linux system comes with a useradd
command that supports an option that I have previously overlooked: --non-unique
. For the sake of convenience when shellig home from the university, I have created an alias for my original username (casual name at home) thusly: