linux 笔记

ubuntu:

1.修改密码

passwd user ***

添加用户:

adduser usera        #增加用户
passwd usera ***     #修改密码

 

 

2.用户和用户组操作

http://blog.csdn.net/id19870510/article/details/8393979   

 

3.性能分析

linux性能分析-sar.http://shake863.iteye.com/blog/181245.2013-5-25

linux下的sar工具命令小结.http://www.cnblogs.com/jackyrong/archive/2008/08/02/1258835.html.2013-05-25

介绍XXX.http://os.51cto.com/art/200912/171621.htm.2013-05-25

 

4.apt源

a.找到更新源(中科大http://mirrors.ustc.edu.cn/)

b.获取版本号 cat /etc/issue

c.获取deb地址

d.编辑/etc/apt/source.list

e.更新列表

  apt-get update

  apt-get dist-upgrade

f.升级安装包apt-get upgrade 或安装新程序 apt-get install xxx

eg:

ubuntu版本:

Hardy(8.04)
Intrepid(8.10)
Jaunty(9.04)
Karmic(9.10)
Lucid(10.04)
Maverick(10.10)
Natty(11.04)
Oneiric(11.10)
Precise(12.04)
Quantal(12.10)

saucy(13.10)

deb http://mirrors.ustc.edu.cn/ubuntu/ quantal main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ quantal main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ quantal-backports main restricted universe multiverse
View Code

 

自动生成:http://repogen.simplylinux.ch/

 

5.查看文件信息(编码等)

file XXX

 

6.SciTE 编码修改为Unicode UTF-8

打开软件SciTE->OPTIONS->Open Global Options File->查找code.page->修改为code.page=65001

 

7.文件目录树

tree

 

8.查找命令

#find 查找
find <指定目录> <指定条件> <指定动作>

#locate (等同于find -name)
#whereis 程序名的搜索
#which 在PATH变量指定的路径中,搜索某个系统命令的位置,并且返回第一个搜索结果
#type  区分某个命令到底是由shell自带的

 

9、远程拷贝

scp -P 22 upload.tar.gz root@74.86.170.242:/home/root 

Linux 之间传输文件

 

10、linux远程登录

ssh 用户名@IP地址

 

 

 

posted @ 2013-05-25 21:08  长城的草  阅读(250)  评论(0编辑  收藏  举报