• 查看系统编码:
dawn@dawn-PC:~$ locale
LANG=zh_CN.UTF-
LANGUAGE=zh_CN
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
  • 安装黑客帝国界面cmatrix
dawn@dawn-PC:~$ sudo apt-get install cmatrix
[sudo] dawn 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成

deepin Linux 日常命令、插件、方法等汇总【更新中】-LMLPHP

dawn@dawn-PC:/media/dawn/学习资料/大三上/java/java代码/书上代码/Code_10$ java SimpleFrameTest 

  进入主目录~,打开文件 .bashrc

dawn@dawn-PC:myLinux$ gedit .bashrc 

  搜索PS1

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\W\$ '
fi

  找到上面的文本,注意看PS1的环境变量的值,\u是当前用户,\h是主机名,\w是显示完整路径,\W是显示简单路径,把w变成W就可以了!

  修改完,执行:

dawn@dawn-PC:~$ source .bashrc

  查看效果:

dawn@dawn-PC:书上代码$ pwd
/media/dawn/学习资料/大三上/java/java代码/书上代码
dawn@dawn-PC:书上代码$
  • screenfetch显示出你的 Linux 发行版的酷炫标志和基本硬件信息
dawn@dawn-PC:~$ sudo apt-get install screenfetch
dawn@dawn-PC:~$ screenfetch
............ dawn@dawn-PC
.';;;;;. .,;,. OS: Deepin 15.5 Beta unstable
.,;;;;;;;. ';;;;;;;. Kernel: x86_64 Linux 4.9.0-deepin13-amd64
.;::::::::' .,::;;,''''',. Uptime: 5h 47m
,'.:::::::: .;;'. '; Packages: 1910
;' 'cccccc, ,' :: '.. .: Shell: bash
,, :ccccc. ;: .c, '' :. ,; Resolution: 1920x1080
.l. cllll' ., .lc :; .l' l. DE: Deepin Beta
.c :lllc ;cl: .l' .ll. :' WM: Deepin WM
.l 'looc. . ,o: 'oo' c, WM Theme: deepin
.o. .:ool::coc' .ooo' o. GTK Theme: deepin [GTK2/]
:: ..... .;dddo ;c Icon Theme: deepin
l:... .';lddddo. ,o CPU: Intel Core i5-6200U @ 4x 2.3GHz [56.0°C]
lxxxxxdoolllodxxxxxxxxxc :l GPU: intel
,dxxxxxxxxxxxxxxxxxxl. 'o, RAM: 1935MiB / 7899MiB
,dkkkkkkkkkkkkko;. .;o;
.;okkkkkdl;. .,cl:.
.,:cccccccc:,.
  • md5sum

    dawn@dawn-PC:myLinux$ md5sum hockey
    d41d8cd98f00b204e9800998ecf8427e hockey
05-12 16:12