







alias
tail -1000f application.log
, but instead of writing this whole string every day you can create alias like logs
and write only 4 letters into the command line. Moreover, you can use autocomplete with aliases (TAB key), just like with regular commands. You can see my previous post Bash Scripts for Working With Documentation for more examples about using alias.alias logs='tail -1000f application.log'
~/.bash_aliases
. You may also need to add following code into your ~/.bash_profile
file (you can add it just to the end):# Aliases
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
crontab
*/10 * * * * svn update ~/Documents/SVN-documentaion
crontab -e
sudo crontab -e
if you are not under admin user)grep
ERROR
word is present:tail -1000 application.log | grep ERROR
tail -1000 application.log | grep ^23.10.2015
find
Find
searches files in directory. Again, in my previous post Bash Scripts for Working With Documentation I wrote about scripts for finding documents by name or by content – the whole funtionality is done by find
there. So I use it in by daily work for finding documents with required data. You can find (ha-ha) a lot of examples in the following article: Find Command in Unix and Linux Examples.open
find
), got the path of it and open it (with default or some other application).open .
opens current directory.awk
AWK
is actually programming language designed for text processing. It can be used as reporting tool and I usually use it to beautify my scripts' output – for example, to color some words. I am not sure that it's useful for everyday life, but if you want to write your own script, it better has meaningful output.scp
scp your_username@remotehost.edu:foobar.txt /some/local/directory
pbcopy
/ pbpaste
pbcopy
copies output to the clipboard, pbpaste
inserts content from the clipboard. For example, you have some log file, that you want to investigate on your computer in you favorite editor. The simplest way is to copy its content to clipboard and paste it into another document. With these commands you don't need to scroll anything to select the text, or google "how to select the whole text in vi" or anything like this, just type:cat application.log | pbcopy
screencapture
sips
sips -z 768 1024 *.png
alias
! You don't need to know all these commands by heart – you can just figure out how you can use them and which parameters suits for your case, put it into the alias thereafter use only short and nice commands. telnet towel.blinkenlights.nl
But its gonna take money
A whole lotta spending money
Its gonne take plenty of money
To do it right child
Its gonna take time
A whole lot of precious time
Its gonna take patience and time, ummm
To do it, to do it, to do it, to do it, to do it,
To do it right child
Here are some video sketches which are somehow related to IT.
Lets start with bad humor. I don't like this kind of attitude to customers: yes, they often don't know what they want; yes, they often don't know how to properly name things - but the mission of IT guy in this situation is to understand what is actually needed, not to prove, that customer is stupid and doesn't understand the topic.
This sketch shows how unprofessional IT "expert" actually is, not how stupid requirements customers order.
This one is better. Not very funny but at least accurate and not offensive:
And these are really good: 2 parts of If Google Was a Guy:
If God gives you a watch,
are you honoring Him more by asking Him what time it is
or by simply consulting the watch?
A. W. Tozer quotes