Check These Out
In this case, I'm keeping an eye on /var/log/messages, but of course any file will do. When I'm following a file, I generally don't want to see anything other than what has been added due to the command or service I've executed. This keeps everything clean and tidy for troubleshooting.
Returns your external IP address to the command line using only wget
Thanks to the authors of:
$ awk '!x[$0]++'
and the author of:
$ joinargs() { (local IFS="$1"; shift && echo "$*") }
and others, we can have a fast Linux or android.
IMPORTANT if you find a priority order problem in PATH you can push a path directory to the front without duplication as follows:
$ PATH=/bin:$PATH
then ...
Check duplication with:
$ echo $PATH|tr : '\n'|sort|uniq -d
Finally do a very neat line by line list of $PATH:
$ echo "${PATH//:/$'\n'}
The speed up is very noticeable for android, and builds on Linux Ubantu are much faster with make and scripts.
I will update the command on request. Timothy from SONY
This command can be used with xclip or xsel for use on a linux box.
This will save and execute your python script every time your press the F5 function key.
It can also be added to your .vimrc:
autocmd BufRead *.py nmap :w^M:!python %
NOTE: the ^M is not just caret-M, it can be created by type: ctrl-v ctrl-m
Shortcut to list files in the current path.
I frequently use this trick to send my terminal settings to HPUX and older RHEL systems. This is due to the fact that terminfo support for rxvt-unicode (my preferred terminal app) does not exist on many older Linux and Unices.
A null operation with the name 'comment', allowing comments to be written to HISTFILE. Prepending '#' to a command will *not* write the command to the history file, although it will be available for the current session, thus '#' is not useful for keeping track of comments past the current session.
Does not print any line that either:
- is empty
- contains only spaces or tabs
- starts with #
- starts with spaces/tabs followed by a #