Guest User

Untitled

a guest
Apr 16th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. # Set colored terminal prompt as "hostname:current directory$ "
  2. # Not sure if this works on centos yet
  3. # PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ '
  4.  
  5. # Niceities
  6. alias cd..="cd .."
  7. alias rm="rm -i" # Interactive mode delete
  8. alias hs="cd ~/ && ls"
  9. alias up="cd .."
  10. alias home="cd ~/"
  11. alias root="sudo su"
  12. alias mkdir="mkdir -pv" # Creates parent directories if needed
  13. alias hist="history"
  14. alias jobs="jobs -l"
  15. alias path="echo -e ${PATH//:/\\n}"
  16.  
  17. # Power commands
  18. alias shutdown="sudo shutdown -P now"
  19. alias reboot="sudo shutdown -r now"
  20.  
  21. # Grep shorthands
  22. alias grep="grep --color=auto" # Colorize grep command output
  23.  
  24. # ls shorthands
  25. alias l.="ls -d .* --color=auto"
  26. alias ls="ls -C --color=auto" # Make 'normal' ls nice with Columns and Colors
  27. alias lm="ls -lhA --color=auto | more" # For big directories
  28. alias ll="ls -lh --color=auto"
  29. alias la="ls -lhA --color=auto"
  30. alias lar="ls -lhAR --color=auto | more" # Recursive subdirectories, listed out
  31. alias lcr="ls -CAR --color=auto | more" # Recursive subdirectories, by column
  32.  
  33. # Time
  34. alias now="date +"%T""
  35. alias nowtime=now
  36. alias nowdate="date +\"%d-%m-%Y\""
  37.  
  38. # Networking
  39. alias ports="netstat -tulanp"
  40.  
  41. # Updates
  42. alias update="dnf -y check-update && sudo dnf -y upgrade"
Add Comment
Please, Sign In to add comment