Tagged Questions

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
0answers
14 views

More productive way of navigating files and folders in huge source code?

How do you navigate files and folders in productive way? I need to jump back and forth all over the huge source code. I want it to be little more productive than now. Here is the alias I am using. # ...
0
votes
0answers
20 views

Aliases don't work

I can't get this to work at all. I am running ubuntu 12.04 in virtual box and am trying to follow this tutorial. I have realised that I have .profile not .bash_profile. I typed: alias ...
0
votes
1answer
13 views

unexpected EOF on the last and next to last line while creating alias

I am creating alias in .bash_aliases file in Ubuntu 14.04 with reference of this article I write these alias agi='sudo apt-get install' alias upd8='sudo apt-get update' alias perms='stat -c '%a - ...
7
votes
5answers
579 views

Run program from anywhere without changing directory

I wish to create an alias, which runs program x, without changing the current directory I am in. What I have now is: alias x = "cd /home/path_to_x && ./x" This works, but changes my ...
0
votes
0answers
15 views

How can I hide files/foldes by alias hide? [duplicate]

I want to hide my files not to add "DOT" before name! I want to hide a file by its name not rename it by put "DOT" ex: my folder in Home called ahmed I want hide it as the same name not rename to ...
2
votes
2answers
66 views

Problem in creating alias, get strange messages

[Reviewers: note that the question was completely rewritten after the close votes.] I recently found how I can define aliases for bash in the ~/.bashrc. But since I tried that, I see the followig ...
8
votes
4answers
530 views

Can I use cd../.. as an alias name?

I am using Windows and Ubuntu in parallel and do console stuff on both of them. On Windows I can do a C:\Users\Thomas>cd..\.. C:\> However, on Linux this does not work, neither with ...
0
votes
0answers
25 views

Creating an alias with tab completion

I know how to create a permanent alias, just edit .bashrc . I created alias forsudo apt-get install <appname> . As you may not know the exact name of app or want to check the dependency u can ...
11
votes
5answers
1k views

How can I run original command that aliased with same name?

An alias for ls command in ~/.bashrc file aliased with this one: alias ls='ls --color=auto' then, when I run ls command in terminal aliased ls(ls --color=auto) runs. but my question is how can I ...
0
votes
0answers
34 views

how can I make an alias that does not fully remove the file like rm [duplicate]

how can I move a file to trash using an alias?
1
vote
3answers
46 views

I can't alias def $?=“type $? || echo 'varible not defined' ”

I want to create an alias called def that takes a varible and checks if it's defined. If it isn't def prints 'the varible is not defined.
1
vote
3answers
49 views

Cannot find location of permanent aliases.

A couple of months ago, I made a few permanent aliases for my bash shell on Ubuntu 14.04. They are actively making my life easier, and I would like to add a couple more to the list, but I cannot find ...
0
votes
1answer
116 views

Alias to open multiple text files in different directories from terminal

After hours of searching and trying different gedit plugins I did not manage to add a session saver to gedit to open some files in Ubuntu 14.04 (see here). So, I am trying to create a permanent ...
0
votes
1answer
50 views

Use alias inside a script

One of the software tools I'm using requires "sh" to be a symlink to "bash" instead of "dash". Since I don't want to change the default shell to bash for the whole system and I can't change the tool ...
0
votes
1answer
33 views

Accidentaly deleted all aliases. How can I restore them?

I accidentally deleted all aliases with unalias utility. There were some useful aliases that I want back (with --color option etc), but I don't want to type them again. Is there a simple way to ...
0
votes
0answers
38 views

Problem to use alias with Wine ie8

I want to use alias with ie8 using wine. But I don't want to to use $ wine 'C:\Program Files\Internet Explorer\iexplore And just $ ie8 But I can't: vitor@vitor-pc:~$ alias ie8='wine ...
5
votes
2answers
176 views

How to easily make an alias command permanent? [duplicate]

I search everywhere and almost everyone was suggesting to open the ~/.bashrc or ~/.bash_aliases, then put the alias command there, I created a function name palias as permanent alias function and put ...
0
votes
0answers
18 views

Permissions problems with Apache2 Alias

I'm trying to set up a local installation of a scientific pipeline (The trans protoemic pipeline). This pipeline use a number of cgi scripts and I'm trying to match it's requirements by setting up a ...
1
vote
1answer
12 views

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? ...
15
votes
3answers
320 views

My .bashrc alias not run in .desktop file

I've added the following line to the .bashrc file: alias midos="sh /home/erkanmdr/Belgeler/midos/midos.sh" This command works fine in the terminal and tty. But not working in my .desktop shortcut ...
9
votes
2answers
1k views

What does the first '.' mean in '. ~/.bashrc'? [duplicate]

I saw a post about fix your alias in .bashrc. And he says after you put your alias in .bashrc , you need to use: . ~/.bashrc I do not quite understand what the first dot(' . ') does here. What's ...
3
votes
2answers
368 views

add alias to root

I need to execute a command for my system to search for new sd cards and to be able to execute it I need to me logged on as root. Simply using sudo with the command does not work. This is not a ...
5
votes
3answers
170 views

How do I make a custom path identifier?

To define what I mean by "custom path identifier", I mean a short set of character(s) that represent a whole path, and example of this would be the ~, if you type cd ~ in your Terminal Emulator it ...
1
vote
1answer
24 views

How do I make an alias that shows only the date?

Exactly as it says. What code should I use to make an alias to show me only the date, and not the time also?
3
votes
2answers
57 views

Create an alias to a desidred directory to use within terminal [duplicate]

I constantly need to type cd /home/geo/Geant4/geant4.10.00.p02-install/lib/Geant4-10.0.2 How do i create an alias to that directory so I could just type cd $geant (or any other word i decide to ...
0
votes
1answer
270 views

Command not found for alias

I recently installed the apache2 package using the Software Centre, I want to create an alias apacheres which will replace the more cumbersome command /etc/init.d/apache2 restart. I opened the ...
-1
votes
2answers
75 views

Why doesn't the command finish

I have added this to .bashrc alias a='ap update && ap dist-upgrade -y && do-release-upgrade -d && ap check && ap autoremove -y && ap autoclean' So i can run ...
0
votes
2answers
162 views

Is it safe to alias rm to safe-rm?

We are happy to use safe-rm as a replacement to rm, but is it considered safe to alias it? e.g. alias rm='safe-rm'
0
votes
1answer
1k views

alias of nodejs as node on 14.04

i installed nodejs with apt-get on 14.04 When i do nodejs -v v0.10.25 and when i do node -v node : command not found. So i want to make alias of nodejs as node So i inserted a line in ...
2
votes
1answer
31 views

alias multi commands as one alias

I made an alias for youtube-dl with some options like that yd="youtube-dl -cit -f 18" so I can download it like yd URL I want to modify it to show only the two lines from the output using ...
0
votes
2answers
46 views

argument-aware alias command?

I want to create an alias for curl which automatically writes the file it curls into a file with the same name in the current directory. For example: % curl https://bootstrap.pypa.io/get-pip.py ...
4
votes
1answer
202 views

How can you mirror an autocomplete function in your own aliases (in 14.04)

I have a bunch of aliases that I've used on my 12.04 machine. example: alias pssh="tsocks ssh" alias pscp="tsocks scp" alias prdp="tsocks xfreerdp ..........SOMETHING ...." These aliases are ...
2
votes
2answers
127 views

How do I create an alias that displays the contents of a `history list`?

How do I create a new alias command called cet103demo which displays the contents of the bash history list one page at a time, and also making sure the new alias is automatically loaded when the ...
6
votes
2answers
169 views

Is there a way to shorten(not remove) the path displayed in the terminal by an alias

I want something like this: "vivek@grishma:~/xxx/yyy/zzz/src$" to be shown as "vivek@grishma:datasource$" where I would somehow have predefined "datasource" to be an alias for the long path above. ...
0
votes
1answer
194 views

How to create alias with g++?

I'm trying to create an alias on ubuntu for the bellow commands: g++ -lSDL -lSDLmain -lSDL_image -lGL -lGLU src.cpp -o a.out g++ -lGL -lglut `sdl-config --cflags --libs` src.cpp -o a.out When I ...
0
votes
0answers
32 views

Duplicate Alias addresses in the network?

Currently I use alias ip address to make sure the client talks to the active database. Basically the alias ip always is on always on the active database, during the failover, the script will reassign ...
2
votes
3answers
206 views

How to check if alias is not replacing an actual command?

How can I know if an alias I make (in .bash_aliases) is not replacing an actual command by same name? I don't want to do such things by accident. (I looked in "Questions that may already have your ...
1
vote
1answer
404 views

Running a command in a new terminal instance in a bash script

I have a bash script where I configure my proxy settings automatically. I have created some aliases in the .bash_aliases file. Now there is one command where I ssh into my remote server and do some ...
1
vote
1answer
150 views

`/etc/profile.d` really does not want to work for me

Does /etc/profile.d work or not? I create a file rexster-console.sh in /etc/profile.d: alias rexster="/var/rexster-console-2.4.0/bin/rexster-console.sh" -rwxr-xr-x 1 root root 66 Feb 15 13:05 ...
0
votes
0answers
37 views

Defining aliases with byobu

I want to have a few aliases for my byobu sessions, but I'm not sure where in the byobu files I'm supposed to put the commands (alias <name> <command>).
0
votes
0answers
35 views

Dealing with alias hostname Ubuntu and Apache server

I have installed and have up and running Apache server on ubuntu 12.04 server. I also changed my /etc/hosts file and added an alias for my server. I'm hosting a site locally, I want to be able to use ...
0
votes
1answer
184 views

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. ...
0
votes
2answers
86 views

how to setup an alias apache2

I am new to UBUNTU and try to use apache to check a website that I am currently developing using Joomla (novice to that too). I am trying to setup an alias in httpd.conf, but have not been ...
1
vote
1answer
975 views

bash: alias: alias: not found

When I log in, I see the error: bash: alias: alias: not found If I source my .bashrc file, the message appears again. What is causing this?
0
votes
2answers
307 views

How can I install the alias command?

My Ubuntu installation does not have the alias command. Usually it would be in /usr/bin along with other basic commands like which. I can type: which which /usr/bin/which but which alias ...
-3
votes
2answers
42 views

Alias command defining problem [closed]

Define the noAgtw alias for a group of commands counting and displaying the number of all files in your account’s space with the names starting with g, t, and w and put the alias in your environmental ...
0
votes
2answers
45 views

Resetting an alias

In my .bashrc file I created a new alias: alias source=mvn eclipse:eclipse -DdownloadSource=true -DdownloadJavadoc=true I executed source .bashrc, however I realized the horrible mistake I made and ...
1
vote
3answers
43 views

Confused with the alias solution?

I am trying to define alias for a group of commands counting recursively and displaying the number of all sub-directories encountered for any working directory (including ones with invisible file ...
1
vote
1answer
37 views

Having problem with alias?

I am trying to define alias for a group of commands counting and displaying the number of all files in account’s space with the names starting with g, t, and w. I got the result with the following ...
0
votes
1answer
318 views

How to count and display number of all files in any working directory?

I am looking for a command to count and display the number of files in any working directory. Further I want to set alias noAf for the command. I have searched for it a lot. I found the following: ...