I am only a very lazy developer who wants to make everything much easier for everybody else.
I always find the best, most efficient ways of doing things simply because I am too lazy to do things the laborious way.
Like most people, I’m really tired of typing a long command on my command line or searching bash history for a previously typed command.
So, I use bash aliases to save me from having to remember the long commands:
% alias psmem10 = ‘ps auxf | sort -nr -k 4 | head -10’
alias
built-in command without any arguments.% alias name=value
% alias name=’command’
% alias name=’command arg1 arg2′
% alias name=’/path/to/script’
% alias name=’/path/to/script.pl arg1′
% alias c=’clear’
% c
r
to repeat the previous command or r abc
to repeat the last command line that began with abc:% alias r=’fc -s’
% r
r
to repeat the previous command or r abc
to repeat the last command line that began with abc:% alias r=’fc -s’
% r
% alias h=’history’
% h
% alias ports=’netstat -tulanp’
% ports
% alias lt=’ls –human-readable –size -1 -S –classify’
% lt
% alias left=’ls -t -1′
% left
% alias count=’find . -type f | wc -l’
% count
% \aliasname
It’s very good to share knowledge, you should share your aliases with everyone by leaving comments.
I automate everything to have time for inventing more
Since everything becomes automated, I have time for myself to come up with many ideas and bring them to life.