1
vote
3answers
147 views

how to make alias with quotes

I tried to make alias with quotes as following: alias myalias='ps -ef | grep tomcat | kill -9 `awk {'print $2'}`' but as you can see i already have ' in awk so i tried to replace awk {'print $2'} ...
12
votes
2answers
491 views

backslash at the beginning of a command

In Installing RVM manual I see a lot of lines starting with '\': Install RVM with ruby: $ \curl -L https://get.rvm.io | bash -s stable --ruby I'd think it is just mistype but they repeat ...
3
votes
5answers
4k views

How to use my aliases in my crontab?

I have some commands in my .profile that I want to invoke from my crontab. For example, if I have, alias notify-me="~/bin/notify.pl -u user1" alias notify-team="~/bin/notify.pl -u user1 user2 ...
0
votes
2answers
373 views

where is the “module” a command coming from - aka why it doesn't show up in alias?

Consider the following: $ module cmdModule.c(166):ERROR:11: Usage is 'module command [arguments ...] ' Modules Release 3.2.6 2007-02-14 (Copyright GNU GPL v2 1991): Usage: module [ switches ] ...
17
votes
12answers
10k views

How to pass alias through sudo

I have an alias that passes in some parameters to a tool that I use often. Sometimes I run as myself, sometimes under sudo. Unfortunately, of course, sudo doesn't recognise the alias. Does anyone ...