Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #change the PS1 env variable.
  2. echo $PS1
  3. vim .bashrc
  4. echo PS1="[`date` - \u@\h \W]\$"
  5. ---
  6. #function to show iostats and df
  7. vim .bashrc
  8. #DISKCHECK FUNCTION
  9. diskchk (){
  10.  echo "I/O Stats"
  11. iostat -xd | sed 's/\s\s*//g' | cut -d' ' -f1,4,5,6,7,10,14
  12. df -h
  13. }
  14. source .bashrc
  15. ---
  16. #find files just in your directory.
  17. find . -type f -iname dog.sh
  18. find `pwd`
  19. find $(pwd)
  20. iname
  21.  
  22. use--v
  23. alias fn=find . -type f -iname
  24. ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement