linux学习笔记 1.linux初步介绍
一.linux的特点
1)免费的/开源的
2)支持多线程/多用户
3)安全性好
4)对内存和文件管理优越
二.谁在挺linux
IBM/Compaq/Novell/Oracle/Sun/NEC....
三.linux 最小只要4M内存 -》嵌入式开发
四.linux 的故事
1973,unix出现。此时windows尚未出生
源码内核共享 -》IBM推出aix,SUN推出solaris,HP推出HP unix,伯克利分校 BSD
Minix -》Linux(最初想法把Minix一直到PC上,91到94出现linux1.0)
相关文档:
在LINUX的时钟中断中涉及至二个全局变量一个是xtime,它是timeval数据结构变量,另一个则是jiffies,首先看timeval结构
struct timeval
{
time_t tv_sec; /***second***/
susecond_t tv_usec;/***microsecond***/
}
到底microsecond是毫秒还是微秒??
1秒=1000毫秒(3个零),1秒=1000 000微秒(6个零),1秒=1 ......
Name
hosts - The static table lookup for host names
Synopsis
/etc/hosts
Description
This manual page describes the format of the /etc/hosts
file. This file is a simple text file that
associates IP addresses with hostnames, one line per IP address. For
each host a single line should be presen ......
shell语法(五项)
1.命令格式
2.通配符
3.重定向
4.管道
5.shell中的引用
6.自动补齐命令行
系统管理维护
ls
pwd
cd
date
passwd
su
clear
man
who
w
uname
uptime
last
dmesg
free
ps
top
文件管理编辑
mkdir
more
cat
diff
grep
rm
touch
ln
file
cp
find
split
mv
压缩解压
zi ......
linux串口编程(要点总结) 收藏
串口编程
查询硬件的方式:查询方式、中断方式、DMA方式。串口很多是使用中断方式,这种方式一般来讲对CPU比较有效。
UART的操作主要包括以下几个部分:
数据发送;数据接受;产生中断;产生波特率;Loopback模式;红外模式;自动流控模式;
&n ......