We have a thread for vim tricks, a thread for xdefaults, a thread for twmn and yet not one for the aliasses we use.It should be interresting to see the aliases other #!ers use.So here are mine:#file compressing/decompressing
alias guntar="tar -xzvf"
alias untar="tar -xvf"
alias targ="tar -cvzf"
alias buntar="tar -jvxf"
#if i invoke emacs from the terminal, s
i'm trying to create an ethernet alias for eth0 network device for two EC2 instances following instructions in this tuotorial guide http://www.cyberciti.biz/tips/ubuntu-linux-creating-ethernet-alias-for-e...
but i could connect from 1st instance to 2nd one via alias
any ideas regarding my issue
dhaines wrote:Ni Namru,The best "solution" I've found is the following:/etc/network.d/YourNetworkProfile:CONNECTION='ethernet'INTERFACE='eth0'IP='static'ADDR='<your "primary" address>'GATEWAY='<your only gateway, unless netcfg handles static routes>'DNS=(<your DNS server array>)DOMAIN='<your domain
#
# /etc/bash.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Create the prompt: Green for a normal user, RED for ROOT
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
PS1="$GREEN\u[$NORMAL\w$GREEN]# $NORMAL"
if [[ $EUID == 0 ]] ; then
PS1="$RED\u[$NORMAL\w$RED]# $NORMAL"
else
alias bashrc='nano ~/.bashrc'
alias reload='source ~/.bashrc'
alias ls='ls --color=auto'
alias grep='grep -n --color=auto'
alias pacman='sudo pacman'
alias update='sudo pacman -Syu'
alias search='sudo pacman -Ss'
alias install='sudo pacman -S'
alias remove='sudo pacman -Rns'
alias makepkg='makepkg -s -
In my CentOS 6.2 server, I have the following configuration for networking:
It isn't installed NetworkManager service
on eth0 I have a DHCP configuration
on eth0:1 alias interface I have a static IP, lets say 10.10.10.10
When I have connected my server to internet and boot up, both interfaces are brought up well, but when I don't have a connection to the internet (with other words, when it isn
I am trying to create an alias which when given some argument will look for the folder with contains the argument as pattern. Let the alias name be gohf.
Now, I will be using this alias like gohf <some-pattern>, for eg. gohf testing.
Hi all, I tried the method mentioned by harlekin and it works. The website that I googled describing this is:http://www.shellperson.net/using-sudo-with-an-alias/Just make sure you have the space in "sudo ".
I tried this to set an alias:
alias lsf='ls -f'
and it works fine... But when I put it in a bash script it doesnt work.
SCRIPT:
cd ~
alias lsf='ls -F'
lsf
I get the following output:
line 3: lsf: command not found
Any ideas?