首页 > 系统服务 > 详细

linux学习

时间:2014-09-02 02:44:04      阅读:446      评论:0      收藏:0      [点我收藏+]

命令行播放音乐

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;1m\] [\u@\h:\W]\$ \[\033[0\]"

本文出自 “linux学习” 博客,请务必保留此出处http://chengerlang.blog.51cto.com/6936662/1547613

linux学习

原文:http://chengerlang.blog.51cto.com/6936662/1547613

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!