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