ubuntu设置
来源:互联网 发布:粘土淘宝 编辑:程序博客网 时间:2024/04/30 02:35
操作均为root用户:
1.ll命令设置
/root/.bashrc 为root登陆及打开新shell时读取用户变量设置文件
1) 编辑bashrc文件
root@book-desktop:~# vim ./.bashrc
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
#alias ll='ls -l' 行改为#alias ll='ls -al'
2)运行source命令使设置即时生效
root@book-desktop:~# source ./.bashrc
3)运行ll命令查看结果
root@book-desktop:~# ll
total 136
drwx------ 25 root root 4096 2014-05-27 16:03 .
drwxr-xr-x 23 root root 4096 2010-11-18 16:53 ..
-rw------- 1 root root 217 2014-05-27 06:47 .bash_history
-rw-r--r-- 1 root root 2227 2014-05-27 16:03 .bashrc
drwx------ 2 root root 4096 2014-05-27 06:43 .cache
2.vim设置 (vim中文乱码(soureinsight中编辑的程序在ubuntu下vim打开乱码, 程序显示行号)
windows下默认是gb编码,而我的vim默认是utf-8(gedit默认也是utf-8),所以打开会成乱码。修改了一下配置文件,使vim支持gb编码就好了。
1)查看字符集
echo $LANG
en_US.UTF-8
若不是en_US.UTF-8编码,export LANG=en_US.UTF-8(export只对当前shell有效)
2)
root@book-desktop:/etc/vim# vim vimrc
let &termencoding=&encoding
set fileencodings=utf-8,gbk
set nu
$:wq保存退出,重新用vim打开程序
不过用more lcddrv.c时中文是乱码
3.新装的VMware,用的是别人的装有ubuntu的虚拟机,每次都要在菜单项 文件->open打开,可以直接将Ubuntu.vmx(虚拟机配置文件)拖到vmware workstation窗口,以后只要点电源即可
由图1
变为:
- ubuntu设置
- ubuntu设置
- 设置Ubuntu
- ubuntu 设置
- ubuntu设置
- ubuntu设置
- ubuntu设置
- Ubuntu设置
- ubuntu 设置
- 【Ubuntu】ubuntu更新设置
- ubuntu 设置IP,设置网关
- ubuntu 设置IP,设置网关
- ubuntu 设置IP,设置网关
- ubuntu 中文设置 (LANG设置)
- ubuntu 设置IP,设置网关
- Ubuntu 快速设置指南
- Ubuntu 快速设置指南
- Ubuntu dapper 多媒体设置
- centOS6.3下安装mysql5.6详解
- XT卓招付坪
- iOS -- 图像资源Images Assets
- 扔掉鼠标_.纯键盘操作
- HDU 4568 Hunter ( TSP + 状态压缩 )
- ubuntu设置
- Linx卷管理详解
- [leetcode]Swap Nodes in Pairs Reverse Nodes in k-Group
- lua_State和luaL_newstate,luaL_openlibs及lua_close
- UIKit 力学教程
- hasMoreElements的用法
- 微信操作整理
- HNOI 2014 Day1 米特运输
- Coreseek:区段查询及增量索引代替实时索引