我的Linux学习笔记
http://wiki.chinaunix.net/index.php/Linux
--------------------获得帮助 : man和info使用 --------------------
因为同一个命令可能属于几个section,如open:就既有命令的open,程序函数的open,等等。每一个section有一个section号。
man -aw <命令> 察看所有的<命令>的手册页文件名,尤其想知道是哪个section很有用
man <命令> 显示找到的<命令>、section号最小的那个手册页。
man <section号> <命令> 显示 section号为<section号> 中的 <命令> 手册页.
man -k <关键字> 在所有手册页的描述(Description)部分搜索<关键字>,并显示对应的手册。
info <命令> 打开<命令>的info手册 ,大多数info手册是完整的手册,比man详细很多。
TAB键可以用来在菜单之间移动,
n 跳到下一个节点,
p 跳到前一个节点,
u 跳到上一层节点,
q 退出,
在info主列表 m<命令>可以跳到指定的<命令>手册 ,
Ctrl+s,r用于向前和向后搜索,
info的很多用法和emacs基本相同,你如果习惯用emacs那么你就会用info的大部分功能了
修改源路径:sudo vim /etc/apt/sources.list
配置快速入门:http://wiki.ubuntu.org.cn/index.php?title=%E5%BF%AB%E9%80%9F%E8%AE%BE%E7%BD%AE%E6%8C%87%E5%8D%97/FeistyFawn&variant=zh-cn
网络配置文件:/etc/network/interfaces
auto eth1
iface eth1 inet static //指定为static
address 192.168.0.2 //IP地址
gateway 192.168.0.1 //网关
netmask 255.255.255.0 //
相关文档:
服务器:
#include <stdio.h>
#include <sys/socket.h>
#include <unistd.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <time.h>
#define SERVER_PORT 20000 // define the defualt connect port id
#define LENGTH_OF_LISTEN_QU ......
转载自: http://soft.chinabyte.com/129/11092629.shtml
文件目录类
1.建立目录:mkdir 目录名
2.删除空目录:rmdir 目录名
3.无条件删除子目录: rm -rf 目录名
4.改变当前目录:cd 目录名 (进入用户home目录:cd ~;进入上一级目录:cd -)
5.查看自己所在目录:pwd
6.查看当前目录大小:d ......
我们把下载的三个软件包放到/var/local目录下(这是笔者个人的习惯),它们都是tar.gz包,可以用命令tar -xzpvf 包名,把它们在当前目录(/var/local/)中解开:
cd /var/local
tar -xzpvf mysql-4.0.15.tar.gz
tar -xzpvf php-4.3.3.tar.gz
tar -xzpvf httpd-2.0.47.tar.gz
解包后可以开始进入正式安装。 ......
linux if命令
无论什么编程语言都离不开条件判断。SHELL也不例外。
if list then
do something here
elif list then
  ......