Linux终端 命令行路径缩减显示
在用户家目录下 修改.bashrc文件
lzx@ubuntu:~$ vim ~/.bashrc
找到
1. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '2. ...3. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
修改成(w换成大写W)
1. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ '2. ...3. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\W\$ '
Kali修改时区
$ dpkg-reconfigure tzdata
