 |
|
Oracle Tips by Burleson |
Create a complex alias
(shortcut)
As we will see as we progress through the complexities of
Linux, it would be advantageous to be able to create a shortcut
to a lengthy command to save typing time and effort. The alias
command allows you to create these shortcuts. The following
example creates a shortcut command named alert that reads the
last 200 lines of a file named alert.log found in the directory path
'/u01/installed/software/mypgm' and displays the output one
screen full at a time.
alias alert='tail -200
/u01/installed/software/mypgm/alert.log|more'
The above book excerpt is from:
Easy Linux
Commands
Working Examples of Linux Command Syntax
ISBN:
0-9759135-0-6
Terry Clark
http://www.rampant-books.com/book_2005_1_linux_commands.htm |