天天看點

linux學習

指令行播放音樂

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\]"