https://www.gravatar.com/avatar/5f48da38e786436afece6f2e46196202?s=240&d=mp

Linux Shell

给本本改装散热系统,加装内存的血泪史

前两天突然想给我的本本加强一下散热系统,想到便做,于是在淘宝上面买铜片、硅脂、冰蚕;本来银片的导热性更好但是一片就要近40块,本着性价比最高的情况下,我还是选择了铜片(一块钱两块),因为从来没有弄过笔记本的散热系统,所以还是要在网上看看别人是怎么做的,小心为上,大概步骤如下

Brctl Command

Bridges

View

To view the current bridges, use the following command on a SSH/Telnet terminal:

1
 brctl show

The command will then output a bridge name (Often br0 or br1), bridge ID (Used to uniquely specify the bridge), and the current settings for STP (Spanning Tree Protocol). The output wil be formated similar to this:

1
2
 bridge name     bridge id               STP enabled  
 br0             8000.001217318d3e       yes

Add

A bridge can be added using the following command, with name being replaced with the name of the bridge being replaced.

Linux SSH常用命令

文件操作:

1
2
3
4

rm go.tar        /* 删除go.tar文件 */  
find mt.cgi    /* 查找文件名为mt.cgi的文件 */  
df –h              /* 查看磁盘剩余空间,好像没这个必要,除非你太那个了 */

目录操作:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10

rm -rf mydir /*删除mydir目录*/  
mkdir dirname /*创建名为dirname的目录*/  
cd mydir /*进入mydir目录*/  
cd - /*回上一级目录*/  
cd .. /*回父目录,中间有空格*/  
cd ~ /*回根目录*/  
mv tools tool /*把tools目录改名为tool */  
ln -s tool bac /*给tool目录创建名为bac的符号链接,最熟悉的应该就是FTP中www链接到public_html目录了*/  
cp -a tool /home/vpser/www /*把tool目录下所有文件复制到www目录下 */

解压缩:

1
2
3
4
5
6
7
8
tar xvf wordpress.tar       /* 解压tar格式的文件 */  
tar -tvf myfile.tar     /* 查看tar文件中包含的文件 */
tar cf toole.tar tool /* 把tool目录打包为toole.tar文件 */  
tar cfz vpser.tar.gz tool /* 把tool目录打包且压缩为vpser.tar.gz文件,因为.tar文件几乎是没有压缩过的,MT的.tar.gz文件解压成.tar文件后差不多是10MB */
tar jcvf  /var/bak/www.tar.bz2 /var/www/    /*创建.tar.bz2文件,压缩率高*/  
tar xjf www.tar.bz2 /*解压tar.bz2格式*/
gzip -d ge.tar.gz        /* 解压.tar.gz文件为.tar文件 */  
unzip phpbb.zip      /* 解压zip文件,windows下要压缩出一个.tar.gz格式的文件还是有点麻烦的 */

下载:

1
2
3
4
wget http://soft.vpser.net/web/nginx/nginx-0.8.0.tar.gz  
/*下载远程服务器上的文件到自己的服务器,连上传都省了,服务器不是100M就是1000M的带宽,下载一个2-3兆的MT还不是几十秒的事 */  
wget -c http://soft.vpser.net/web/nginx/nginx-0.8.0.tar.gz  
/* 继续下载上次未下载完的文件 */

进程管理:

1
ps -aux   /*ps 进程状态查询命令*/

ps命令输出字段的含义:

学习Linux必须具备的素质 你拥有吗

伴随着Linux日益普及,也越来越受到用户的青睐,有相当一部分朋友很希望体验这个神秘的系统,对于大多数人来说,驾驶Linux似乎是可望不可及的,为什么会发生这种情况,可能是应用不够广,操作难的原故吧。

Linux二十年发展史(Linux is 20 years old.)

Just like that — Linux is 20 years old. As part of the Linux Foundation’s 20th anniversary celebrations, the organization conducted a survey about Linux among attendees of LinuxCon in July 2011. The findings of that survey are showcased in this infographic, which illustrates the changes in Linux over the years.

1992年,在Linux Kernel平台上工作的开发者只有100位;2010年,在Linux Kernel平台上工作的开发者有1000位。
1995年Linux Kernel里有代码25万行;2010年Linux Kernel里有代码1400万行。

详解ssh命令

SSH 的详细使用方法如下:
ssh [-l login_name] [hostname | user@hostname] [command] ssh [-afgknqtvxCPX246] [-c blowfish | 3des] [-e escape_char] [-i identity_file] [-l login_name] [-o option] [-p port] [-L port:host:hostport] [-R port:host:hostport] [hostname | user@hostname] [command]
sshd
为执行 ssh 的 daemon,在读者使用 ssh 之前必须去激活 sshd,在此建议把它加在 /etc/init/rc.local 中,在每次开机时激活。