What is the debian_chroot variable in my bashrc file? and what is it doing here?
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
Chroot is a unix feature that lets you restrict a process to a subtree of the filesystem. One traditional use is FTP servers that chroot to a subset of the filesystem containing only a few utilities and configuration files, plus the files to serve; that way, even if an intruder manages to exploit a bug in the server, they won't be able to access files outside the chroot. Another common use is when you're installing or repairing a unix system and you boot from a different system (such as a live CD): once a basic system is available, you can chroot into it and do more work. The prompt setting includes the content of |
|||
|
|
if $debian_chroot; then ... elseblock). – Stefan Lasiewski Oct 16 '10 at 3:09PS1I posted is default (K)Ubuntu prompt – Falmarri Oct 16 '10 at 8:42