-
Notifications
You must be signed in to change notification settings - Fork 1
/
aliases
72 lines (52 loc) · 1.66 KB
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Aliases from http://www.cyberciti.biz/tips/bash-aliases-mac-centos-linux-unix.html
#
## Colorize the ls output ##
alias ls='ls --color=auto'
## Use a long listing format ##
alias ll='ls -la'
alias llh='ls -lha'
## Show hidden files ##
alias l.='ls -d .* --color=auto'
## get rid of command not found ##
alias cd..='cd ..'
## Colorize the grep command output for ease of use (good for log files)##
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias mkdir='mkdir -pv'
# install colordiff package :)
alias diff='colordiff'
alias mounts='mount |column -t'
# handy short cuts #
alias h='history'
alias j='jobs -l'
alias path='echo -e ${PATH//:/\\n}'
alias now='date +"%T'
alias nowtime=now
alias nowdate='date +"%d-%m-%Y"'
# Stop after sending count ECHO_REQUEST packets #
alias ping='ping -c 5'
# Do not wait interval 1 second, go fast #
alias fastping='ping -c 100 -s.2'
alias ports='netstat -tulanp'
# do not delete / or prompt if deleting more than 3 files at a time #
alias rm='rm -I --preserve-root'
# confirmation #
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'
# Parenting changing perms on / #
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'
## this one saved by butt so many times ##
alias wget='wget -c'
## ttytter replies
alias twreplies='ttytter -ssl -norc -runcommand=/re | tail -n 5'
## servidor web
alias www_serve='python -m SimpleHTTPServer 8000'
alias cpufreqset='sudo cpufreq-set -c 0 -r -g'
alias svi='sudo vi'
alias watcher-sphinx-mydocs='watcher-sphinx /home/jsanz/docs/sphinx-docs /home/jsanz/cloud/Copy/sphinx-docs-source'
alias ..='cd ..'