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

learn more… | top users | synonyms

0
votes
1answer
15 views

Unable to create alias having pipe

I want to make an alias tree with find ./ -type d -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' as its value. so to avoid mistakes due to ' inside whole line I converted them to \' by which I can ...
10
votes
3answers
850 views

Can I use '!!' in aliases or scripts?

In the Terminal I can use !! which will reference my previous command. Is it possible to use this in an alias? I have tried it, but what happens is that the double exclamation marks are interpreted ...
1
vote
1answer
66 views

Terminal windows open with [“#Curl: command not found”]

This seems to be related to my ~/.bash_aliases file. The message only appears when I open a new terminal window and when I try source ~/.bash_aliases. I've made sure CURL and all related libraries are ...
1
vote
1answer
28 views

Removing ghostscript alias

I'm using zsh which uses gs as an alias for git status. But on Ubuntu, gs is an alias for ghostscript. I tried uninstalling ghostscript, but then I get this instead: The program 'gs' is currently not ...
1
vote
1answer
38 views

Make terminal alias, to group video and audio setting changes, for using a/v receiver

Kubuntu 14.04 LTS (3.16.0-45-generic)- KDE - Pulse Audio volume control - System settings > display settings. Current in/outputs and system setup. 1st HDMI output to main PC screen. 2nd HDMI ...
1
vote
0answers
33 views

What does 'Alias' in Virtualhost permanently modify?

I added an 'Alias line' to my Virtualhost config apache2/sites-available/domain1.conf like this: <VirtualHost *:80> ServerName www.domain1.tld DocumentRoot /www/directory1 Alias /...
0
votes
1answer
31 views

Ubuntu alias rename directory issue

I have Ubuntu 14.04 Trusty Tahr installed in my system. I have created following alias in my '~/.bashrc' file to make renaming directories recursively in current folder, as easy to use short command. ...
-1
votes
1answer
29 views

Heroku aliases for zsh

To scale my heroku workers up and down I wanted to add an alias for them because of the frequency with which these commands are used. However when I tried to add the alias it did not work. For ...
0
votes
0answers
14 views

How to make alias for multiply folders for Apache2?

I have folders here : /var/www/info/folder1/folder1_1 /var/www/info/folder1/folder1_2 /var/www/info/folder1/folder1_3 and /var/www/info/folder2/folder2_1 /var/www/info/folder2/folder2_2 and e.t.c. ...
3
votes
1answer
33 views

How can I add FTP commands to an alias?

I'm starting to get familiar with the shell and command line, I just want to know how I can get backups from some specific folders and send them to my server using just one command. I set .netrc (...
1
vote
1answer
43 views

vpn one-liner login script

I need to connect to VPN and it's quite tedious. I've tried to do one alias but for unknown reasons it failed. Currently I use openvpn --config client.ovpn Then it prompts me to type in the user-...
0
votes
2answers
95 views

Can not resolve aliases for ssh

Here is my problem: I got two machines in the same network 192.168.122.0/24 my /etc/hosts : 192.168.122.100 toto 192.168.122.110 tata if I type : ssh toto: root@toto's password: Permission ...
0
votes
0answers
13 views

How to blacklist certain commands from aliasing? [duplicate]

There are certain important commands I use a lot such as sudo, cd and ls which if malicious aliases were created of could cause some major problems, especially with the first listed. And I know that ...
1
vote
2answers
59 views

Aliasing gedit to suppress terminal output

I am SSH'd into an embedded board (Jetson TK1 running Ubuntu 14.04). I use the -X option so I can use gedit to edit text files. When executed from a terminal, gedit spews a bunch of garbage on the ...
2
votes
1answer
36 views

How to run a parameter as an alias in a shell script?

I have an alias alias ll='ls -lF'; I created a bash script temp.sh: #!/bin/bash # Allow aliases to work in bash NON-interactive mode! shopt -s expand_aliases # .. and load them source ~/....
0
votes
1answer
147 views

How to make a permanent alias in oh-my-zsh?

In my .zshrc I tried to make a few aliases .I looked into a lot of places, but I couldn't find out a way that worked. I used this code below: # Set personal aliases, overriding those provided by oh-...
0
votes
1answer
128 views

Alias not working on Apache2.4

I have upgraded from an earlier Apache2 to the latest Apache 2.4. My previous setup had the following alias in default.conf file in the sites-available directory: Alias /weewx /home/weewx/...
0
votes
0answers
21 views

How to make an alias for delete function?

Today I erased my thesis. Fortunately, I had a backup on Dropbox, so I was able to recover it. I would like to know if there's a way of using an alias to make a delete function that moves a file to ...
1
vote
2answers
52 views

Does the terminal learn common typos? [duplicate]

This may seem like a stupid question. I'm using Ubuntu 15.10 with GNOME Terminal 3.16.2. When I was new to the system, I often typed 'l' or 'la' instead of 'ls' to list files, and would then be told ...
3
votes
1answer
97 views

alias nested string

I have an alias for youtube_dl which adds some arguments in my .bashrc file. I want to run this in a separate terminal similar to how it is done here. The problem is that this takes a string as input. ...
0
votes
0answers
48 views

Display managers, aliases and dot-files

I am trying to set my system up to use the notion (ion3 fork) window manager, I logging in through the mdm display manager. Notion provides a a textual launcher that is activated by the F3 key. The ...
0
votes
1answer
43 views

How to create a alias for running a server and its client simultaneously

I'm trying to create an "alias" to run a server in a separate terminal, then after a few seconds open its client, this is the command I'm trying: alias kingp='xterm -e sudo /opt/king-phisher/...
0
votes
1answer
89 views

My permanent alias isn't working [duplicate]

Sorry I am new to ubuntu, just installed it. The version Ubuntu 14.04.4 LTS. I finally learned how to install a program called WebStorm and trying to create an alias for it. I tried creating it ...
0
votes
2answers
61 views

How to make aliases for file paths?

I have many folders on my machine, many of those folders have more folders within them, more folders within those folders, and so on... Now when I am doing certain cd and cp operations that I do every ...
1
vote
1answer
126 views

'source' builtin in bash not recognized in cron environment

A user crontab entry that reads: 0 */4 * * * $HOME/postscript/fprogcache-sync works fine. Wanting to add a few environment variables to the cron-job context, I then tried 0 */4 * * * source $HOME/....
3
votes
2answers
34 views

Catch user input with alias

So I recently showed my friend the wall command. Now he keeps using it to talk and I regret showing him. I want to make an alias call wall to keep him from using it and to also prank him. I did ...
0
votes
1answer
41 views

Possibly something wrong with my terminal

Whenever I open my terminal I get something like this: alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*...
3
votes
0answers
89 views

Redirect 'complete' in bash functions and alias

tl;dr: Is there a way to use an existing auto completion function to also auto complete arguments to an alias or short function. Auto completion in bash is great but does not mix well with aliases ...
0
votes
0answers
18 views

Profile.d and aliases. Why do the aliases not work? [duplicate]

I need to define some global aliases for my PC. I defined them in a file zzz.sh in the /etc/profile.d directory. It didn't work. Then I defined those aliases in /etc/bash.bashrc file. It did work as ...
9
votes
4answers
515 views

Prevent all commands from being defined as an alias

Is there a way to prevent all commands from being defined as an alias? For example a user shouldn't be able to define rm or any other command (Ubuntu default commands) as an alias name.
4
votes
1answer
63 views

Why does alias in /etc/bash.bashrc not apply to sudo?

I've added the line alias ll='ls -l' to the /etc/bash.bashrc. After a restart, the alias ll from that file affects me, which I checked by commenting out the corresponding alias in my ~/.bashrc (...
1
vote
1answer
33 views

How to append another directory to an aliased `cd` command?

I have aliased a long path in .bashrc file as alias py="cd ~/Myprograms/Langs/workout/PythonScripts" Now assume there is an another directory in PythonScripts say "basics" How do I use the above ...
3
votes
3answers
640 views

Create a clickable desktop shortcut for an alias

For example, let's say I have defined an alias under my .bash_aliases, alias gotoheaven="xdg-open /path/to/heaven" now I wish to create a clickable icon for it on the desktop. [I know make link to ...
5
votes
1answer
252 views

Lazy Calculation result of bash functions in alias

I want to open new terminal window in current location by simple command in Ubuntu gnome-terminal --working-directory=`pwd` & disown Work's nice for me. But when I put alias to bashrc alias ...
2
votes
2answers
220 views

Alias to change directory is not working on Ubuntu 15.04?

I wanted to create an alias to quickly go to a particular directory. I added the alias in .bashrc (I tried on .bash_aliases too, the same problem). My alias is named now: alias now='cd ~/talha_docs/...
0
votes
1answer
58 views

Alias in .bash_aliases executes incorrectly

I have an alias in .bash_aliases and it gives me incorrect output when I trigger it. alias print="echo a b | awk '{print $2}'" incorrect output: slazer@ubuntu:~/Desktop/xpalenik_pb161/hw03/...
7
votes
3answers
331 views

how to 'not' execute alias [duplicate]

I have set few aliases in .bashrc file. I need those aliases most of the time, but sometimes I need to run those command without options set in that particular alias. How to not execute alias command?...
0
votes
0answers
11 views

Create and run alias file for command line [duplicate]

I have created a file "~/.aliases" file with the content: # git stuff alias ga="git add" alias gaa="git add ." in "~/.bashrc" at the top I have this code. # ~/.bashrc: executed by bash(1) for non-...
1
vote
1answer
80 views

Bash al (alias local) function not found [closed]

Can I have bash aliases local to directory? Given such directory structure: dir1/ - . - .. - dir2/ - file When I cd dir1 alias eg do not work, but when I cd dir1/dir2/ such alias works. ...
3
votes
1answer
150 views

Alias with gnome-terminal acting very odd

Here is a line from my aliases file that makes it so whenever I open my terminal it opens jasonaccomp in the vim editor. alias acc='gnome-terminal -e "bash -c 'cd ~/Downloads; vim jasonaccomp'"' ...
2
votes
0answers
12 views

Link created to `nodejs` with `node` not working [duplicate]

I'm creating 3 VM's. I set up the first two with nodejs/npm but am having problems with the third. (Note: I realize cloning would have been far more expedient, but that's outside of scope of question.)...
2
votes
3answers
52 views

Remove last space from alias

I want to create an alias for xfreerdp, and I need to concatenate the /v: parameter in my alias with the server name, that I'm obviously providing when invoking this alias. Alias: alias r='xfreerdp /...
2
votes
2answers
491 views

Why is my alias now not working?

So before I reformatted (to get rid of Windows), I simply used this command to open documents by putting it at the end of the ~/.bashrc file: alias commandless= 'gnome-open ./Documents/the-linux-...
1
vote
1answer
34 views

help needed understaning ls format meaning

I hit l this evening while compiling some things, and got some unexpected output. $ l l3* lesson03.cpp lesson03.o look.png readme.txt so then I looked at alias: which lists l as: alias l='ls -F'...
0
votes
1answer
217 views

How to create an alias that will open file in Brackets?

New to this whole Linux thing, and creating alias' in Mac seemed a little easier! Anyway, I'm trying to create an alias that will open the desired file within Brackets, or Sublime... etc. I don't ...
1
vote
3answers
236 views

Cannot get “alias” command to work at al

Running Ubuntu 14.04 LTS I open a terminal, and type a simple alias command, but then it doesn't work: ~> alias ge='gedit &' ~> ge ge: command not found I've also tried adding aliases to ...
0
votes
0answers
16 views

Using aliases with command line arguments [duplicate]

I'm using the g++ compiler to compile my c++ code. I've already created an alias g++='g++ -std=c++11 -o' and it works fine. However I want to be able to create an alias such as grun or gr++ that ...
0
votes
1answer
113 views

Linux Alias with multiple and depending commands possible?

I've created some aliases that I use one after another. It's always depending whether the previous command succeeded. Is it possible to use one alias for multiple commands, depending on the screen ...
0
votes
3answers
40 views

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 ...
1
vote
3answers
291 views

Alias to search files by name and open them in vim

I already have an alias to (more) quickly search files : alias f='find . -iname' I use it as such: $ f *statis* ./main/statistics.py ./test/test_statistics.py Now, I would like to have another ...