am a new GNU/Linux user. I see a colorful bash prompt. Traditional command such as grep command
or ls command also display output in colors. I would also like a turn off colors in vim text editor. I do not like colors. How can I turn off color listing in Linux terminal?
defined mount bash shell alias as follows on my Linux system: alias mount='mount | column -t'
However, I need to bash bypass alias for mounting the file system and another usage. How can I disable or bypass my bash shell aliases temporarily on a Linux, *BSD, macOS or Unix-like system?
have couple of shell aliases defined in ~/.bashrc file. How do I temporarily remove (disable) a shell alias and call the core command directly without using unalias command under a bash shell on a Linux or Unix-like systems?
ow do I ignore bash shell aliases or functions when running a command without removing alias or function from memory or current shell session on a Linux or Unix-like systems?
How do I pass all command line args to my bash alias called foo. For example:
alias foo=”/path/to/command $@”
However $@ get interpreted when creating the alias instead of during the execution of the alias and escaping the $ doesn’t work either. How do I solve this problem?
Continue reading “Pass Command Line Arguments To a Bash Alias Command”
Q. I find vi hard to use. How do I change my default text editor from vim / vi to Pico under Debian Linux?
A. To use and change an editor to edit your text message, set the variable EDITOR to the pathname of the vi / vim binary file. You need to use export or set command for the same purpose.
Many Linux / UNIX command read shell EDITOR environment variable to determine which editor to use for editing a text file.
Set default text editor to pico
Type the command as follows:
$ which pico
Now setup a new text editor:
Add above line to ~/.bashrc file:
$ vi ~/.bashrc
Append text as follows:
Close and save the file. There is no no need to reboot system.
Also you can add alias if you want:
How do I display only hidden (dot) files names under Linux / UNIX / Apple OS X / *BSD family operating systems?