Guest User

Shawn Powers

a guest
Sep 29th, 2009
981
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. \a an ASCII bell character (07)
  2. \d the date in "Weekday Month Date" format
  3. (e.g., "Tue May 26")
  4. \e an ASCII escape character (033)
  5. \h the hostname up to the first `.'
  6. \H the hostname
  7. \n newline
  8. \r carriage return
  9. \s the name of the shell, the basename of $0
  10. (the portion following the final slash)
  11. \t the current time in 24-hour HH:MM:SS format
  12. \T the current time in 12-hour HH:MM:SS format
  13. \@ the current time in 12-hour am/pm format
  14. \u the username of the current user
  15. \v the version of bash (e.g., 2.00)
  16. \V the release of bash, version + patchlevel
  17. (e.g., 2.00.0)
  18. \w the current working directory
  19. \W the basename of the current working direc-
  20. tory
  21. \! the history number of this command
  22. \# the command number of this command
  23. \$ if the effective UID is 0, a #, otherwise a
  24. $
  25. \nnn the character corresponding to the octal
  26. number nnn
  27. \\ a backslash
  28. \[ begin a sequence of non-printing characters,
  29. which could be used to embed a terminal con-
  30. trol sequence into the prompt
  31. \] end a sequence of non-printing characters
  32.  
Advertisement
Add Comment
Please, Sign In to add comment