[Ubuntu-BR] Ajuda para criar um alias no .bashrc

lista em fg.med.br lista em fg.med.br
Sexta Setembro 18 15:33:20 UTC 2009


Vou tentar a noite, obrigado.


> Tenta isso aqui cara:
>
> alias conk='ps axu | grep conky | awk '\''{ print $2 }'\'''
>
> 2009/9/17 <lista em fg.med.br>
>
>> O comando a seguir funciona bem no terminal:
>>
>> $ ps axu | grep conky | awk '{ print $2 }'
>> 4728
>> 4770
>>
>> Porém se coloco no .bashrc ele não funciona tão bem:
>>
>> alias con="ps axu | grep conky | awk '{ print $2 }'"
>>
>> $ con
>> dg 4728 2.1 0.1 91792 4344 ? S 21:15 2:18 conky -c /home/dg/.conkyrc
>> dg 4770 0.1 0.0 90828 3184 ? S 21:15 0:06 conky -c /home/dg/.conkyrc2
>>
>> Agradeço.
>>
>>
>> --
>> Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece
>>
>> Lista de discussão Ubuntu Brasil
>> Histórico, descadastramento e outras opções:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
>>
> --
> Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece
>
> Lista de discussão Ubuntu Brasil
> Histórico, descadastramento e outras opções:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
>






More information about the ubuntu-br mailing list