命令行播放音乐

play music.mp3

error: no handler for file extension `mp3`

sudo apt-get install libsox-fmt-mp3 (libsox-fmt-all also available)

play --help

play --combine sequence *.mp3


*.tar.xz格式的压缩文件可用命令 tar -xJvf *.tar.xz 解压。

如果要求快速解压,可下载 *.tar.gz 格式的文件,不过压缩比不高。


*.zip 文档解压后乱码,unzip --help 查看帮助,

unzip -O gbk *.zip -d exdir 然后就没乱码了。

windows 编码与 linux 不一样。


sudo apt-get install p7zip-full

7z e name.rar 解压后不会乱码


vim颜色配置

vim ~/.bashrc 

/PS1

#if this is an xterm set the title to user@host:dir,

case "$XTERM" in xterm*|rxvt*)  

PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"

改为 PS1="\[\033[1;36;40m\][\u@\h:\W]\$\[\033[0m\]"