E.g.:
echo 'alias myip="curl -s "http://checkip.dyndns.org/" | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" | head -1"' >> /home/USER/.bash_profile
when I type "myip" then I will get my public IP address
feedback
|
This question is not a good fit to our Q&A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion. See the FAQ for guidance on how to improve it.
|
Here are a few of my aliases. when I want to open a file with the GUI, i type
reccords the desktop with ffmpeg, and save to the specified file
Starts a simple http server with python
Color in grep :
Aliases for ls alias ldir='ls -d */' alias lgrep='ls | grep' alias l='ls -CF' alias la='ls -A' alias ls='ls --color=auto' alias lx='ls -CFlash' Start and stop lampp
sl is always fun when you typo ls, but you want to be able to interrupt it, since it's not interruptable by default.
Aliases for the vim server
I have this in my
just a note, if you have many aliases, you may want to define them in
| ||||
|
feedback
|
|
The only one I have that I really care about (doesn't always do a perfect job though):
| |||
|
feedback
|