上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 75 下一页
摘要: 1、同一个文件创建多个入口或访问点。1)硬链接:原文件名和连接文件名都指向相同的物理地址,即原文件和硬连接文件是同一个文件(不是复制),两个文件占用相同的索引接点(相当于引用计数加1)。为文件创建一个硬连接后,文件的连接数加1。目录不能有硬链接。不能跨文件系统。 硬连接指通过索引节点来进行连接。作用是允许一个文件拥有多个有效路径名。2)符号连接连接数不会增加,相当于windows下的快捷方式。会占用一个索引节点。ls -i [文件路径]ln -[f/s] [存在的文件路径名] [链连文件的路径]-f remove existing destination files-s make symbol 阅读全文
posted @ 2011-09-28 17:11 浪里飞 阅读(2427) 评论(0) 推荐(0) 编辑
摘要: 1、C语言的nanosleep【1】 pause execution for a specified time int nanosleep(const struct timespec *req, struct timespec *rem); 2、lstat - get file status int fstat(int filedes, struct stat *... 阅读全文
posted @ 2011-09-28 16:14 浪里飞 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 1、说明chkconfig [--add][--del][--list][系统服务]chkconfig [--level <等级代号>][系统服务][on/off/reset] chkconfig provides a simple command-line tool for maintaining the /etc/rc[0-6].d directory hierarchy by relieving system administrators of the task of directly manipulating the numerous symbolic links in t 阅读全文
posted @ 2011-09-28 16:06 浪里飞 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 1、说明 /sbin/ldconfig - configure dynamic linker run-time bindings ldconfig option 2、option 1) -p:指示ldconfig打印出当前缓存文件所保存的所有共享库的名字 2) -v:ldconfig将显示正在扫描的目录及搜索到的动态链接库及它所创建的连接的名字。 3、其它... 阅读全文
posted @ 2011-09-28 15:15 浪里飞 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 1、说明 dd - print shared library dependencies ldd [OPTION]... FILE... 2、option -u Print unused direct dependencies. (Since glibc 2.3.4.) -d Perform relocations and report any missing ... 阅读全文
posted @ 2011-09-28 14:31 浪里飞 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 1、说明 change file access permissions chmod [OPTION]... MODE[,MODE]... FILE... 完整的数字权限是4位数。但在一般情况下,都只带入三位数字,其代表的就是“后三位数”的权限设定。 第一位数代表档案或目录的特殊性。4代表“suid;2代表“sgid”;1代表“沾滞元位-save text im... 阅读全文
posted @ 2011-09-28 12:30 浪里飞 阅读(3133) 评论(0) 推荐(0) 编辑
摘要: 1、说明 lsof - list open files lsof [options] filename 在linux环境下,任何事物都以文件的形式(进程除外)存在,通过文件不仅仅可以访问常规数据,还可以访问网络连接和硬件。内核为文件分配一个文件描述符,该文件描述符为应用程序与基础操作系统之间的交互提供了通用接口。 1)结果展示 ① FD:文件描述符,应用程序通过文件描述符识别文件。如c... 阅读全文
posted @ 2011-09-27 21:09 浪里飞 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 1、mkdir-m, --mode=MODE set file mode (as in chmod), not a=rwx - umask-p, --parents no error if existing, make parent directories as neededmkdir -p DIR1/DIR2 //如果dir1不存在,也创建dir1mkdir -m 755 /usr/dir3 //并设置mode2、rmdir-p, --parents remove DIRECTORY and its ancestors; e.g., `rmdir -p a/b/c' is simil 阅读全文
posted @ 2011-09-27 19:21 浪里飞 阅读(2940) 评论(0) 推荐(0) 编辑
摘要: 1、可执行程序代码(Unix称之为text section)。 通常进程还包括其他资源,如打开的文件、挂起的信号、内核内部的数据、处理器状态、地址空间及一个和多个执行线程、当然还包括用来存放全局变量的数据段等,实际上,进程就是正在执行的程序代码的活标本。 2、进程存放是以链表的形式存放的,单个数据结构是一个task_struct的结构。(./linux/include/l... 阅读全文
posted @ 2011-09-27 17:09 浪里飞 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 1、优先级从-20到19。越大,优先级越低。 2、nice 可以在创建进程时,为进程指定谦让度(优先级)的增量值,进程的优先级的值是父进程SHELL的优先级的值与我们所指定谦让度的相加和。 3、示例 1)nice nice -n 5 gaim & //运行gaim程序,并为它指定谦让度增量为5; nice -n 谦让度的增量值 程序 2)ren... 阅读全文
posted @ 2011-09-27 16:03 浪里飞 阅读(1912) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 75 下一页