I want to know if I can pass an argument with an alias command.
alias d="dmesg|grep -iw usb|tail -5"
d will print the last 5 lines. If I want to use d to print a different number of lines, I have to make change in the alias command declaration of
Is there any way I can modify the declaration of an alias so that I don't have to retype the declaration to change the number of lines. Like incorporating passing the number of lines as an argument while declaring alias for
d? Or is there some other method to solve this?