Tag Info

New answers tagged

0

On your build image, you can stick the alias commands into the file which will become /etc/profile and each time you build the box, you transfer these commands into the newly installed system, usable by any user you happen to create. If these commands are only for your use and you are setting up the system as root, you can modify root's .${SHELL}rc file and ...


0

With AliasMatch? AliasMatch (?i)^/mysite/(.*)$ D:/MySite/$1


1

In linux you can use ln command to create symbolic link, but in windows you have to use mklink command to create symbolic links: MKLINK [[/D] | [/H] | [/J]] Link Target /D Creates a directory symbolic link. Default is a file symbolic link. /H Creates a hard link instead of a symbolic link. /J Creates a Directory ...


1

You don't specify how you're trying to create the alias (is it a script of some kind?), but you can do this lots of different ways. If you need an actual alias (as opposed to a symlink, which looks similar to the end user but is not the same thing underneath), you will probably have to use AppleScript or Automator, as aliases are only supported within ...


2

As requested, I'll post an answer, but @mpy's suggestion would've also done the job. You'll have to re-source your ~/.bashrc using source ~/.bashrc or establish a new session (which would source that for you).


1

Try replacing "'s (quote) with ''s (single-quote) instead. Also, make sure you reload your .bashrc either by starting a new terminal emulator window, or by doing . .bashrc in your home folder.


1

You can edit the ~/.bashrc file located in your home user directory. This way the alias will apply just to your user. You can check the comprehensive information about this in What's the difference between .bashrc, .bash_profile, and .environment?.


0

And for the quick and dirty crowd, I would have... grep ^lias ~/.* ; grep ^lias /etc/* /etc/*/* and if that didn't point me the right way, I'd have resorted to... grep alias ~/.* > /tmp/alias.txt ; grep alias /etc/* /etc/*/* >> /tmp/alias.txt ; less /tmp/alias.txt and proofread all alias lines.


4

Glad you found it, but here's a way to see all login files figure in the general sense: # run strace, see every syscall strace -o /tmp/bash.out bash --login (Exit from bash shell) # filter out opens that returned a descriptor, then use sed to get the file < /tmp/bash.out grep -o 'open("[^,]*,[^)]*)[ \t]=[ \t][0-9]' | sed -e 's/^[^"]*"//' -e ...


0

found it: /etc/profile.d/useralias.sh


2

I retrieved the doc of lighttpd's mod_alias module. I bet you have a problem with the trailing slashes. Be sure that all alias entries end with a slash: alias.url = ( "/acruz/" => "/var/www/localhost/htdocs/acruz/", "/jvangemeren/" => "/var/www/localhost/htdocs/jvangemeren/", "/doceno/" => "/var/www/localhost/htdocs/doceno/" ) ...


2

Use lighttpd -p -f /etc/lighttpd/lighttpd.conf to see how lighty sees your config after += evaluation.



Top 50 recent answers are included