Linux常用指令集
一、系统设置与管理
1.alias
说明:为命令设置别名、显示别名设置。
语法:alias [别名]=[指令名称]:为[指令名称]起一个别名。
alias [别名]:显示出[别名]所对应的命令。
alias:显示所有别名设置。
2.apmsleep
说明:进入挂起或等待状态。
语法:apmsleep hh:mm
参数:hh:mm指定进入挂起或等待状态的时间。
3.authconfig
说明:向用户提供一个配置/etc/sysconfig/network中的NIS的图形界面。
语法:authconfig --back --test --nostart
参数:--back将authconfig中的Cancel按钮改成Back按钮;--test使authconfig只能够被root运行,其他用户无法保存修改;--nostart使authconfig更改的设置在系统重启后生效。
4.aumix
说明:改变音效设置。
语法:aumix [-][+|-][<-amount>]]|[[]|R|P|q][-d][-f][-h][-I][-L][-q] [-S]
参数:-频道参数,对于每个频道,+/-选项用于增加/减少原来的强度:(图)
-d指定音效设备文件,默认是/dev/mixer;-f指定存放/读取设备的文件;-h使用时显示信息;-I以互动方式运行aumix,使用图形界面;-L从S|HOME/.aumixrc或/etc/aumixrc读入设置;-q查询所有设备,并且显示它们的位置;-S将设置存放到S|HOME/.aumixrc。
5.bg
说明:将命令放置后台运行。
语法:bg [job]
参数:job命令作业号。
6.cardmgr
说明:PCMCIA设备管理程序,管理PCMCIA插槽的插入和拔除。
语法:cardmgr [-Vqdofv][-c configpath][-m modpath][-p pidfile][-s stabfile]
参数:-V显示版本信息;-q设置为安静模式;-d在加载设备驱动程序时检查模块间的依赖关系;-o配置当前的PCMCIA卡;-f在前台执行,而不作为一个deamon程序运行;-v显示命令运行的详细信息;-c configpath在configpath目录下搜索PCMCIA卡的配置数据库和配置脚本,默认值为/etc/pcmcia;-m modpath在modpath目录下搜索可加载的内核模块;-p pidfile将cardmgr的PID写入pidfile文件,默认为/var/lib/pcmcia/stab;-s stabfile将当前插槽信息写入stabfile文件,默认为/var/lib/pcmcai/stab。
7.chage
说明:设置用户密码期限。该命令仅能被root用户运行。
语法:chage [-m mindays][-M maxdays][-d lastday][-I inactive][-E expiredate][-W warndays] 用户名
参数:-m mindays两次密码更改之间的最小时间间隔;-M maxdays密码有效期,maxdays+lastday小于当前日期,那么就需要修改密码;-d lastday最后一次更改密码的日期;-I inactive在密码过期in
相关文档:
1、将驱动源码放在/drivers/char/下
2、修改drivers/char/Kconfig文件,添加以下内容:
config My_Buttons
tristate "My_Buttons test"
depends on ARCH_S3C2440
default y if ARCH_S3C2 ......
Linux, named after the inventor, Linus Torvalds, is a so different OS for everyone against Windows. To everyone who used to use Windows, Linux need us to do more for everything which we usually do by computer, such as playing a video.
Someone says, Linux is for the ones who are good at the computer ......
Linux, named after the inventor, Linus Torvalds, is a so different OS for everyone against Windows. To everyone who used to use Windows, Linux need us to do more for everything which we usually do by computer, such as playing a video.
Someone says, Linux is for the ones who are good at the computer ......
简单解释一下ipcs命令和ipcrm命令。
取得ipc信息:
ipcs [-m|-q|-s]
-m 输出有关共享内存(shared memory)的信息
-q 输出有关信息队列(message queue)的信息
-s 输出有关“遮断器&rdqu ......
#include <stdio.h>
#include <sys/select.h>
#include <termios.h>
#include <unistd.h>
#include <ctype.h>
#define STDIN 0
int main()
{
struct timeval tv = {0,0};
struct termios term , termbak;
& ......