forked from alefbt/LinuxScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yehuda Korotkin
committed
Dec 18, 2013
1 parent
544efdb
commit af3fefa
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Aliases | ||
# Thanks to Dave Smith (Linked In) | ||
alias cls='clear' #kinda obvious, but I'm mistyping it regularly | ||
alias getdbs='nohup lftp -f ~/.lftp/get-db-backups.script &' #pulls database backups off a remote server | ||
alias df='df -h' | ||
alias ls='ls --color=tty' # nicer outputs | ||
alias dir='/usr/local/bin/altdir' # I created a "ls" script with pattern matching, long listing, piped through more | ||
|
||
alias maildel='postsuper -d' | ||
alias maillist='postqueue -p' # lists and removed mails stuck in the queue - generally bounced spam | ||
|
||
alias ut2004='ssh -p22022 utadmin@ut.myserver.nl' | ||
alias ut2k4='ut2004' | ||
alias ut99='ssh -p22022 utadmin@ut.myotherserver.uk' | ||
#(I run a few Unreal Tournament servers - but these server aliases have been moved into ".ssh/config" now so I don't use these aliases as much) | ||
|
||
# Thanks to Eric Ross | ||
alias msg='tail -20 /var/log/messages' | ||
alias msgf='tail -f /var/log/messages' | ||
alias mlog='tail -20 /var/log/maillog' | ||
alias mlogf='tail -f /var/log/maillog' | ||
alias rd='rmdir' | ||
alias godns='cd /var/named' | ||
alias gorc='cd /etc/init.d' | ||
alias golog='cd /var/log' | ||
alias ver='cat /proc/version && cat /etc/system-release' | ||
alias exe='chmod u+x' | ||
alias cd..='cd ..' | ||
alias dir='ls -aFl --color' | ||
alias dr='ls -aF --color' | ||
alias dird='ls -aFld --color' # Show only directories | ||
alias mdstat='cat /proc/mdstat' | ||
|
||
# Thanks to Michael Eager | ||
alias pd="pushd" | ||
alias po="popd" | ||
alias ..="cd ..;ls" | ||
alias dirs="dirs -v" | ||
alias h="cd \$PWD" | ||
|
||
# Thanks to Miguel E Arellano Quezada | ||
alias ll='ls -l --color' | ||
alias la='ls -la --color' | ||
alias rm='rm -i' | ||
alias cp='cp -i' | ||
alias mv='mv -i' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Thanks to Denis Kovalev | ||
"\C-W": "printf "\\33[2J"\n" |