About 2,140,000 results
Open links in new tab
  1. How do I create a permanent Bash alias? - Ask Ubuntu

    Dec 15, 2010 · After that, all you have to do is create a ~/.bash_aliases file and add your aliases there, with the same format specified in the first method. Contents of my ~/.bash_aliases file:

  2. 14.10 - Location of "~/.bash_aliases" - Ask Ubuntu

    Yes, just create it in your home directory. touch ~/.bash_aliases or open an empty file in a text editor, e.g., gedit ~/.bash_aliases This should be one of your first aliases.. ##### ea - alias for …

  3. ~/.bash_aliases vs alias command - Unix & Linux Stack Exchange

    Feb 24, 2017 · 16 .bash_aliases is only useful if it is sourced by another configuration file; bash itself doesn't know anything about it. Some OS distributions include a line like source …

  4. macos - How do I create a Bash alias? - Stack Overflow

    Jan 23, 2012 · The default shell is bash. Usually the startup script file is .bashrc, .bash_login or .profile file in your home directory. Since these files are hidden you will have to do an ls -a to …

  5. Should I put functions in .bashrc, .bash_aliases or .profile

    Feb 23, 2024 · All this means that you can add functions to your .bashrc or .bash_aliases files as you like, and they will still be available to login shells. You might want to use .profile instead, …

  6. Make a Bash alias that takes a parameter? - Stack Overflow

    Aug 20, 2011 · More realistically, an alias ending in do would be impossible or impractical to write as a function. Secondly, for all aliases, you can conveniently expand the alias with A-a in ZSH …

  7. bash - How to make aliases automatically work at startup ... - Stack ...

    Oct 10, 2020 · I have my aliases in ~/.bash_aliases I used to run ubuntu and these aliases automatically worked from startup. Now when I switched to windows and started to use Git …

  8. bash - How do create an alias in shell scripts? - Stack Overflow

    1 Aliases cannot be defined in shell script that you execute - their effect will be gone once shell process finished execution. You can, however, define aliases in your ~/.bashrc or in separate …

  9. linux - How to edit a bash alias in Ubuntu - Stack Overflow

    Feb 4, 2020 · 2 There is a special file in Ubuntu for users aliases ~/.bash_aliases Here's mine for example.

  10. bash - How to run an alias in a shell script? - Ask Ubuntu

    Altough aliases are deprecated in favor of shell functions, this answer os the only one which should be accepted. Even the old Debian 8 has version 4 of bash, so the …