Questions tagged [alias]

In shells, an alias is an alternate name for a command. For instance, "ll" is an alias for "ls -l" on many systems.

In shells, an alias is an alternate name for a command. For instance, "ll" is an alias for "ls -l" on many systems.

410 questions
4
votes
3 answers

How to run source on terminal start up?

I have alias ready on .bash_aliases. Problem I'm having right now is that I need to run source ~/. first before I can execute the alias command. My question would be how do I run the source ~/. when user opens terminal.
Unknown
  • 195
  • 3
  • 4
  • 9
3
votes
1 answer

Alias for directory name with space in the name

~$ alias Any_Name=/home/User/Desktop/Folder\ Name ~$ Any_Name bash: /home/User/Desktop/Folder: No such file or directory ~$ that same bash error is shown even if double quotes is used So how do i reach that folder using the alias command ? ~$ cd…
devilz
  • 169
  • 1
  • 3
  • 16
1
vote
1 answer

Something has set up an alias I don't understand "alert"

When I type in the command alias I get some funny things I don't understand: rick@dell:~$ alias alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e…
1
vote
1 answer

Access a directory using its alias

I have created an alias for a path that I use often like that: alias example='/home/user/directory/' (in the home/.bash_aliases) The problem is that I want to access that directory via terminal like: example/file but it doesn't work. This is the…
Adam
  • 2,638
1
vote
1 answer

Add sugsetions to an alias

When you press tab 2 times you get suggestions for possible commands. For example lsTabTab will print all available commands. Is it possible to add such suggestions to an alias that is user created? If so, how?
Bloodcount
  • 231
  • 1
  • 2
  • 9
1
vote
1 answer

Create alias of a command with sudo

I would like to create an alias of the below command with sudo like below. alias /usr/bin/vmstat='sudo /usr/bin/vmstat' is it possible to create something like that for a user?
1
vote
1 answer

How can I trick my system into thinking I have installed a program (gdc)

G-WAN uses gdc to compile D scripts. I'm having problems with gdc for D2 and would like to use dmd instead (They're both D compilers). So what I've done is used alias gdc="dmd" I can now compile D2 code by calling gdc hello.d but G-WAN still tells…
0
votes
3 answers

Create flexible alias for an application

I used to use Sublime Text editor, now I plan to use Atom. It would be really nice to have some alias or variable called "editor" I might use in all scripts / commands / launchers and link this alias to an app that might be changed any time later…
Sebastian
  • 1,188
  • 2
  • 14
  • 29
0
votes
1 answer

Providing alias for eclipse does not work

I tried to open my bashrc and tried to provide an alias for eclipse like alias eclipse='bash /usr/local/softy/eclipse/eclipse' But I get the following error when I try to invoke eclipse. /usr/local/softy/eclipse/eclipse:…
Prasanna
  • 157
0
votes
1 answer

Is it possible to show the alias command before being executed?

Let’s say I have the following alias defined: alias agi='sudo apt-get install' When I execute agi I would like to see sudo apt-get install displayed before the command is run. This would serve as a reminder of what is actually being done. Is…
-1
votes
1 answer

How to create a permanent alias in ubuntu

Can anybody please help me as to how to create a permaneent alias in the terminal. When i create an alias in the terminal using the alias name='function' it stays till i close the terminal. I am new to ubuntu. can you please help.