
linux
文章平均质量分 79
a363175481
这个作者很懒,什么都没留下…
展开
-
vim配置脚本
我比较喜欢这个脚本,chmod +x name就可以了,然后vim就变成了我想要的了。 #!/bin/bash # # Configure vim... # rm -f ~/.vimrc echo "\ \" \" Just copy this text document to ~/.vimrc for setting vim \" set nu set cursorline set t原创 2012-02-02 13:35:17 · 815 阅读 · 0 评论 -
Ubuntu-10.10下tftp服务器搭建
1、安装相关软件包:Ubuntu tftp(服务端),tftp(客户端),xinetd root@xf:/# apt-get install tftpd tftp xinetd 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 下列【新】软件包将被安装: tftp tftpd xinetd转载 2012-02-07 09:38:11 · 3669 阅读 · 1 评论 -
在linux中应用程序如何调用模块内的函数
首先,应用程序是无法直接访问模块中的函数的(即使是你自编自挂的模块--实际上它也是内核模块),用户空间与内核空间之间只有通过一些特定的系统函数来进行通讯(如什么user_to_kernel),而绝对不可能通过“直接调用模块里的函数”这种形式来通讯。 那么,所编写的模块里的函数怎么才能被执行?由谁调用?其实答案很简单,它们是由内核来调用的,注意,是由内核来调用的。比如 init_module()转载 2012-02-21 17:25:29 · 880 阅读 · 0 评论 -
Read and Write a /proc File
转自:http://linux.die.net/lkmpg/x769.html We have seen a very simple example for a /proc file where we only read the file /proc/helloworld. It's also possible to write in a /proc file. It works the sam转载 2012-02-13 15:48:38 · 1003 阅读 · 0 评论 -
The /proc File System
转自:http://linux.die.net/lkmpg/x710.html In Linux, there is an additional mechanism for the kernel and kernel modules to send information to processes --- the /proc file system. Originally designed转载 2012-02-13 15:28:29 · 701 阅读 · 0 评论 -
Linux下解压命令大全 解压缩 tar bz2 zip tar.gz gz
Linux下解压命令大全 解压缩 tar bz2 zip tar.gz gz 2008年05月25日 星期日 下午 04:57 大致总结了一下linux下各种格式的压缩包的压缩、解压方法。但是部分方法我没有用到,也就不全,希望大家帮我补充,我将随时修改完善,谢谢! 整理:会游泳的鱼 来自:www.LinuxByte.net 最后更新时间:2005-2-20 .tar转载 2012-03-10 10:25:34 · 655 阅读 · 0 评论 -
ubuntu 修复grub
光盘启动或者U盘启动live cd 打开终端,输入终端命令: sudo fdisk -l 此时可以看到显示出来的整个硬盘上所有分区的列表,请记录下 Ubuntu 根分区 / 和/boot分区安装的位置; 在终端输入命令: sudo -i (取得root特权) mount /dev/sdaX /mnt (X 为记录下的 Ubuntu 根分区) mount原创 2012-05-22 16:14:39 · 627 阅读 · 0 评论