1 |
#!/bin/sh |
2 |
#--------------------------------------------------------------------- |
3 |
#- alias.sh - Useful shell aliasses |
4 |
#- rabit@netfrag.org, 11.10.2004 - 11.10.2004 |
5 |
#- $Id: alias.sh,v 1.2 2004/10/12 12:33:23 rabit Exp $ |
6 |
#--------------------------------------------------------------------- |
7 |
|
8 |
# CPU information (very useful!): |
9 |
alias cpuinfo='cat /proc/cpuinfo' |
10 |
alias l='ls -aFhls --color' |
11 |
# List devices: |
12 |
alias lsdev='cat /proc/devices' |
13 |
# List dma: |
14 |
alias lsdma='cat /proc/dma' |
15 |
# List interrupts: |
16 |
alias lsint='cat /proc/interrupts' |
17 |
# List IO memory and ports: |
18 |
alias lsio='echo - IO Memory:; cat /proc/iomem; echo; echo - IO Ports:; cat /proc/ioports | more' |
19 |
# List modules (does exactly the same as /bin/lsmod): |
20 |
alias lsm='cat /proc/modules' |
21 |
# List all dirs in $PATH: |
22 |
alias lspath="ls -CF --color \`echo \$PATH | cut -d ':' --output-delimiter ' ' -f 1,-\` | more" |
23 |
# List PCI enumerator devices: |
24 |
alias lspci='cat /proc/pci' |
25 |
# List used swap: |
26 |
alias lsswap='cat /proc/swaps' |
27 |
alias md='mkdir' |
28 |
# Memory information (very useful!): |
29 |
alias meminfo='cat /proc/meminfo' |
30 |
alias n='nano' |
31 |
# View processes without line wrapping (scrolling with cursor keys): |
32 |
alias pl='ps afux | less -S' |