1.查找<sys/types.h>文件

  一般地,Linux的C头文件<sys/types.h>路径在如题的途径:/usr/include/sys下,然而博主[Linux For Ubuntu 16.04/64]去查的时候,却没有。但我们使用其C文件的时候,却一点问题都没有呢,那它跑哪去了呢?

  32位系统:/usr/incude/i386-linux-gnu/sys

  64位系统:/usr/include/x86_64-linux-gnu/sys/

 

  解决办法:(原理:ln -s 创建软链接,对兼容性不会造成影响)

    32位系统:sudo ln -s /usr/include/i386-linux-gnu/sys /usr/include/sys

    64位系统:sudo ln -s /usr/include/x86_64-linux-gnu/sys/ /usr/include/sys

2.查看<sys/types.h>文件的内容

  1. /* Copyright (C) 1991-2016 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3.  
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8.  
  9. The GNU C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13.  
  14. You should have received a copy of the GNU Lesser General Public
  15. License along with the GNU C Library; if not, see
  16. <http://www.gnu.org/licenses/>. */
  17.  
  18. /*
  19. * POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
  20. */
  21.  
  22. #ifndef _SYS_TYPES_H
  23. #define _SYS_TYPES_H 1
  24.  
  25. #include <features.h>
  26.  
  27. __BEGIN_DECLS
  28.  
  29. #include <bits/types.h>
  30.  
  31. #ifdef __USE_MISC
  32. # ifndef __u_char_defined
  33. typedef __u_char u_char;
  34. typedef __u_short u_short;
  35. typedef __u_int u_int;
  36. typedef __u_long u_long;
  37. typedef __quad_t quad_t;
  38. typedef __u_quad_t u_quad_t;
  39. typedef __fsid_t fsid_t;
  40. # define __u_char_defined
  41. # endif
  42. #endif
  43.  
  44. typedef __loff_t loff_t;
  45.  
  46. #ifndef __ino_t_defined
  47. # ifndef __USE_FILE_OFFSET64
  48. typedef __ino_t ino_t;
  49. # else
  50. typedef __ino64_t ino_t;
  51. # endif
  52. # define __ino_t_defined
  53. #endif
  54. #if defined __USE_LARGEFILE64 && !defined __ino64_t_defined
  55. typedef __ino64_t ino64_t;
  56. # define __ino64_t_defined
  57. #endif
  58.  
  59. #ifndef __dev_t_defined
  60. typedef __dev_t dev_t;
  61. # define __dev_t_defined
  62. #endif
  63.  
  64. #ifndef __gid_t_defined
  65. typedef __gid_t gid_t;
  66. # define __gid_t_defined
  67. #endif
  68.  
  69. #ifndef __mode_t_defined
  70. typedef __mode_t mode_t;
  71. # define __mode_t_defined
  72. #endif
  73.  
  74. #ifndef __nlink_t_defined
  75. typedef __nlink_t nlink_t;
  76. # define __nlink_t_defined
  77. #endif
  78.  
  79. #ifndef __uid_t_defined
  80. typedef __uid_t uid_t;
  81. # define __uid_t_defined
  82. #endif
  83.  
  84. #ifndef __off_t_defined
  85. # ifndef __USE_FILE_OFFSET64
  86. typedef __off_t off_t;
  87. # else
  88. typedef __off64_t off_t;
  89. # endif
  90. # define __off_t_defined
  91. #endif
  92. #if defined __USE_LARGEFILE64 && !defined __off64_t_defined
  93. typedef __off64_t off64_t;
  94. # define __off64_t_defined
  95. #endif
  96.  
  97. #ifndef __pid_t_defined
  98. typedef __pid_t pid_t;
  99. # define __pid_t_defined
  100. #endif
  101.  
  102. #if (defined __USE_XOPEN || defined __USE_XOPEN2K8) \
  103. && !defined __id_t_defined
  104. typedef __id_t id_t;
  105. # define __id_t_defined
  106. #endif
  107.  
  108. #ifndef __ssize_t_defined
  109. typedef __ssize_t ssize_t;
  110. # define __ssize_t_defined
  111. #endif
  112.  
  113. #ifdef __USE_MISC
  114. # ifndef __daddr_t_defined
  115. typedef __daddr_t daddr_t;
  116. typedef __caddr_t caddr_t;
  117. # define __daddr_t_defined
  118. # endif
  119. #endif
  120.  
  121. #if (defined __USE_MISC || defined __USE_XOPEN) && !defined __key_t_defined
  122. typedef __key_t key_t;
  123. # define __key_t_defined
  124. #endif
  125.  
  126. #if defined __USE_XOPEN || defined __USE_XOPEN2K8
  127. # define __need_clock_t
  128. #endif
  129. #define __need_time_t
  130. #define __need_timer_t
  131. #define __need_clockid_t
  132. #include <time.h>
  133.  
  134. #ifdef __USE_XOPEN
  135. # ifndef __useconds_t_defined
  136. typedef __useconds_t useconds_t;
  137. # define __useconds_t_defined
  138. # endif
  139. # ifndef __suseconds_t_defined
  140. typedef __suseconds_t suseconds_t;
  141. # define __suseconds_t_defined
  142. # endif
  143. #endif
  144.  
  145. #define __need_size_t
  146. #include <stddef.h>
  147.  
  148. #ifdef __USE_MISC
  149. /* Old compatibility names for C types. */
  150. typedef unsigned long int ulong;
  151. typedef unsigned short int ushort;
  152. typedef unsigned int uint;
  153. #endif
  154.  
  155. /* These size-specific names are used by some of the inet code. */
  156.  
  157. #if !__GNUC_PREREQ (2, 7)
  158.  
  159. /* These types are defined by the ISO C99 header <inttypes.h>. */
  160. # ifndef __int8_t_defined
  161. # define __int8_t_defined
  162. typedef char int8_t;
  163. typedef short int int16_t;
  164. typedef int int32_t;
  165. # if __WORDSIZE == 64
  166. typedef long int int64_t;
  167. # else
  168. __extension__ typedef long long int int64_t;
  169. # endif
  170. # endif
  171.  
  172. /* But these were defined by ISO C without the first `_'. */
  173. typedef unsigned char u_int8_t;
  174. typedef unsigned short int u_int16_t;
  175. typedef unsigned int u_int32_t;
  176. # if __WORDSIZE == 64
  177. typedef unsigned long int u_int64_t;
  178. # else
  179. __extension__ typedef unsigned long long int u_int64_t;
  180. # endif
  181.  
  182. typedef int register_t;
  183.  
  184. #else
  185.  
  186. /* For GCC 2.7 and later, we can use specific type-size attributes. */
  187. # define __intN_t(N, MODE) \
  188. typedef int int##N##_t __attribute__ ((__mode__ (MODE)))
  189. # define __u_intN_t(N, MODE) \
  190. typedef unsigned int u_int##N##_t __attribute__ ((__mode__ (MODE)))
  191.  
  192. # ifndef __int8_t_defined
  193. # define __int8_t_defined
  194. __intN_t (8, __QI__);
  195. __intN_t (16, __HI__);
  196. __intN_t (32, __SI__);
  197. __intN_t (64, __DI__);
  198. # endif
  199.  
  200. __u_intN_t (8, __QI__);
  201. __u_intN_t (16, __HI__);
  202. __u_intN_t (32, __SI__);
  203. __u_intN_t (64, __DI__);
  204.  
  205. typedef int register_t __attribute__ ((__mode__ (__word__)));
  206.  
  207. /* Some code from BIND tests this macro to see if the types above are
  208. defined. */
  209. #endif
  210. #define __BIT_TYPES_DEFINED__ 1
  211.  
  212. #ifdef __USE_MISC
  213. /* In BSD <sys/types.h> is expected to define BYTE_ORDER. */
  214. # include <endian.h>
  215.  
  216. /* It also defines `fd_set' and the FD_* macros for `select'. */
  217. # include <sys/select.h>
  218.  
  219. /* BSD defines these symbols, so we follow. */
  220. # include <sys/sysmacros.h>
  221. #endif /* Use misc. */
  222.  
  223. #if (defined __USE_UNIX98 || defined __USE_XOPEN2K8) \
  224. && !defined __blksize_t_defined
  225. typedef __blksize_t blksize_t;
  226. # define __blksize_t_defined
  227. #endif
  228.  
  229. /* Types from the Large File Support interface. */
  230. #ifndef __USE_FILE_OFFSET64
  231. # ifndef __blkcnt_t_defined
  232. typedef __blkcnt_t blkcnt_t; /* Type to count number of disk blocks. */
  233. # define __blkcnt_t_defined
  234. # endif
  235. # ifndef __fsblkcnt_t_defined
  236. typedef __fsblkcnt_t fsblkcnt_t; /* Type to count file system blocks. */
  237. # define __fsblkcnt_t_defined
  238. # endif
  239. # ifndef __fsfilcnt_t_defined
  240. typedef __fsfilcnt_t fsfilcnt_t; /* Type to count file system inodes. */
  241. # define __fsfilcnt_t_defined
  242. # endif
  243. #else
  244. # ifndef __blkcnt_t_defined
  245. typedef __blkcnt64_t blkcnt_t; /* Type to count number of disk blocks. */
  246. # define __blkcnt_t_defined
  247. # endif
  248. # ifndef __fsblkcnt_t_defined
  249. typedef __fsblkcnt64_t fsblkcnt_t; /* Type to count file system blocks. */
  250. # define __fsblkcnt_t_defined
  251. # endif
  252. # ifndef __fsfilcnt_t_defined
  253. typedef __fsfilcnt64_t fsfilcnt_t; /* Type to count file system inodes. */
  254. # define __fsfilcnt_t_defined
  255. # endif
  256. #endif
  257.  
  258. #ifdef __USE_LARGEFILE64
  259. typedef __blkcnt64_t blkcnt64_t; /* Type to count number of disk blocks. */
  260. typedef __fsblkcnt64_t fsblkcnt64_t; /* Type to count file system blocks. */
  261. typedef __fsfilcnt64_t fsfilcnt64_t; /* Type to count file system inodes. */
  262. #endif
  263.  
  264. /* Now add the thread types. */
  265. #if defined __USE_POSIX199506 || defined __USE_UNIX98
  266. # include <bits/pthreadtypes.h>
  267. #endif
  268.  
  269. __END_DECLS
  270.  
  271. #endif /* sys/types.h */

查看<bits/types.h>: cat /usr/include/x86_64-linux-gnu/bits/types.h

  1. /* bits/types.h -- definitions of __*_t types underlying *_t types.
  2. Copyright (C) 2002-2016 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4.  
  5. The GNU C Library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9.  
  10. The GNU C Library is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. Lesser General Public License for more details.
  14.  
  15. You should have received a copy of the GNU Lesser General Public
  16. License along with the GNU C Library; if not, see
  17. <http://www.gnu.org/licenses/>. */
  18.  
  19. /*
  20. * Never include this file directly; use <sys/types.h> instead.
  21. */
  22.  
  23. #ifndef _BITS_TYPES_H
  24. #define _BITS_TYPES_H 1
  25.  
  26. #include <features.h>
  27. #include <bits/wordsize.h>
  28.  
  29. /* Convenience types. */
  30. typedef unsigned char __u_char;
  31. typedef unsigned short int __u_short;
  32. typedef unsigned int __u_int;
  33. typedef unsigned long int __u_long;
  34.  
  35. /* Fixed-size types, underlying types depend on word size and compiler. */
  36. typedef signed char __int8_t;
  37. typedef unsigned char __uint8_t;
  38. typedef signed short int __int16_t;
  39. typedef unsigned short int __uint16_t;
  40. typedef signed int __int32_t;
  41. typedef unsigned int __uint32_t;
  42. #if __WORDSIZE == 64
  43. typedef signed long int __int64_t;
  44. typedef unsigned long int __uint64_t;
  45. #else
  46. __extension__ typedef signed long long int __int64_t;
  47. __extension__ typedef unsigned long long int __uint64_t;
  48. #endif
  49.  
  50. /* quad_t is also 64 bits. */
  51. #if __WORDSIZE == 64
  52. typedef long int __quad_t;
  53. typedef unsigned long int __u_quad_t;
  54. #else
  55. __extension__ typedef long long int __quad_t;
  56. __extension__ typedef unsigned long long int __u_quad_t;
  57. #endif
  58.  
  59. /* The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  60. macros for each of the OS types we define below. The definitions
  61. of those macros must use the following macros for underlying types.
  62. We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  63. variants of each of the following integer types on this machine.
  64.  
  65. 16 -- "natural" 16-bit type (always short)
  66. 32 -- "natural" 32-bit type (always int)
  67. 64 -- "natural" 64-bit type (long or long long)
  68. LONG32 -- 32-bit type, traditionally long
  69. QUAD -- 64-bit type, always long long
  70. WORD -- natural type of __WORDSIZE bits (int or long)
  71. LONGWORD -- type of __WORDSIZE bits, traditionally long
  72.  
  73. We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  74. conventional uses of `long' or `long long' type modifiers match the
  75. types we define, even when a less-adorned type would be the same size.
  76. This matters for (somewhat) portably writing printf/scanf formats for
  77. these types, where using the appropriate l or ll format modifiers can
  78. make the typedefs and the formats match up across all GNU platforms. If
  79. we used `long' when it's 64 bits where `long long' is expected, then the
  80. compiler would warn about the formats not matching the argument types,
  81. and the programmer changing them to shut up the compiler would break the
  82. program's portability.
  83.  
  84. Here we assume what is presently the case in all the GCC configurations
  85. we support: long long is always 64 bits, long is always word/address size,
  86. and int is always 32 bits. */
  87.  
  88. #define __S16_TYPE short int
  89. #define __U16_TYPE unsigned short int
  90. #define __S32_TYPE int
  91. #define __U32_TYPE unsigned int
  92. #define __SLONGWORD_TYPE long int
  93. #define __ULONGWORD_TYPE unsigned long int
  94. #if __WORDSIZE == 32
  95. # define __SQUAD_TYPE __quad_t
  96. # define __UQUAD_TYPE __u_quad_t
  97. # define __SWORD_TYPE int
  98. # define __UWORD_TYPE unsigned int
  99. # define __SLONG32_TYPE long int
  100. # define __ULONG32_TYPE unsigned long int
  101. # define __S64_TYPE __quad_t
  102. # define __U64_TYPE __u_quad_t
  103. /* We want __extension__ before typedef's that use nonstandard base types
  104. such as `long long' in C89 mode. */
  105. # define __STD_TYPE __extension__ typedef
  106. #elif __WORDSIZE == 64
  107. # define __SQUAD_TYPE long int
  108. # define __UQUAD_TYPE unsigned long int
  109. # define __SWORD_TYPE long int
  110. # define __UWORD_TYPE unsigned long int
  111. # define __SLONG32_TYPE int
  112. # define __ULONG32_TYPE unsigned int
  113. # define __S64_TYPE long int
  114. # define __U64_TYPE unsigned long int
  115. /* No need to mark the typedef with __extension__. */
  116. # define __STD_TYPE typedef
  117. #else
  118. # error
  119. #endif
  120. #include <bits/typesizes.h> /* Defines __*_T_TYPE macros. */
  121.  
  122. __STD_TYPE __DEV_T_TYPE __dev_t; /* Type of device numbers. */
  123. __STD_TYPE __UID_T_TYPE __uid_t; /* Type of user identifications. */
  124. __STD_TYPE __GID_T_TYPE __gid_t; /* Type of group identifications. */
  125. __STD_TYPE __INO_T_TYPE __ino_t; /* Type of file serial numbers. */
  126. __STD_TYPE __INO64_T_TYPE __ino64_t; /* Type of file serial numbers (LFS).*/
  127. __STD_TYPE __MODE_T_TYPE __mode_t; /* Type of file attribute bitmasks. */
  128. __STD_TYPE __NLINK_T_TYPE __nlink_t; /* Type of file link counts. */
  129. __STD_TYPE __OFF_T_TYPE __off_t; /* Type of file sizes and offsets. */
  130. __STD_TYPE __OFF64_T_TYPE __off64_t; /* Type of file sizes and offsets (LFS). */
  131. __STD_TYPE __PID_T_TYPE __pid_t; /* Type of process identifications. */
  132. __STD_TYPE __FSID_T_TYPE __fsid_t; /* Type of file system IDs. */
  133. __STD_TYPE __CLOCK_T_TYPE __clock_t; /* Type of CPU usage counts. */
  134. __STD_TYPE __RLIM_T_TYPE __rlim_t; /* Type for resource measurement. */
  135. __STD_TYPE __RLIM64_T_TYPE __rlim64_t; /* Type for resource measurement (LFS). */
  136. __STD_TYPE __ID_T_TYPE __id_t; /* General type for IDs. */
  137. __STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */
  138. __STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */
  139. __STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */
  140.  
  141. __STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address. */
  142. __STD_TYPE __KEY_T_TYPE __key_t; /* Type of an IPC key. */
  143.  
  144. /* Clock ID used in clock and timer functions. */
  145. __STD_TYPE __CLOCKID_T_TYPE __clockid_t;
  146.  
  147. /* Timer ID returned by `timer_create'. */
  148. __STD_TYPE __TIMER_T_TYPE __timer_t;
  149.  
  150. /* Type to represent block size. */
  151. __STD_TYPE __BLKSIZE_T_TYPE __blksize_t;
  152.  
  153. /* Types from the Large File Support interface. */
  154.  
  155. /* Type to count number of disk blocks. */
  156. __STD_TYPE __BLKCNT_T_TYPE __blkcnt_t;
  157. __STD_TYPE __BLKCNT64_T_TYPE __blkcnt64_t;
  158.  
  159. /* Type to count file system blocks. */
  160. __STD_TYPE __FSBLKCNT_T_TYPE __fsblkcnt_t;
  161. __STD_TYPE __FSBLKCNT64_T_TYPE __fsblkcnt64_t;
  162.  
  163. /* Type to count file system nodes. */
  164. __STD_TYPE __FSFILCNT_T_TYPE __fsfilcnt_t;
  165. __STD_TYPE __FSFILCNT64_T_TYPE __fsfilcnt64_t;
  166.  
  167. /* Type of miscellaneous file system fields. */
  168. __STD_TYPE __FSWORD_T_TYPE __fsword_t;
  169.  
  170. __STD_TYPE __SSIZE_T_TYPE __ssize_t; /* Type of a byte count, or error. */
  171.  
  172. /* Signed long type used in system calls. */
  173. __STD_TYPE __SYSCALL_SLONG_TYPE __syscall_slong_t;
  174. /* Unsigned long type used in system calls. */
  175. __STD_TYPE __SYSCALL_ULONG_TYPE __syscall_ulong_t;
  176.  
  177. /* These few don't really vary by system, they always correspond
  178. to one of the other defined types. */
  179. typedef __off64_t __loff_t; /* Type of file sizes and offsets (LFS). */
  180. typedef __quad_t *__qaddr_t;
  181. typedef char *__caddr_t;
  182.  
  183. /* Duplicates info from stdint.h but this is used in unistd.h. */
  184. __STD_TYPE __SWORD_TYPE __intptr_t;
  185.  
  186. /* Duplicate info from sys/socket.h. */
  187. __STD_TYPE __U32_TYPE __socklen_t;
  188.  
  189. #undef __STD_TYPE
  190.  
  191. #endif /* bits/types.h */

3.参考文献

    ubuntu 的 /usr/include/sys 哪儿去了?

[C++]Linux之头文件sys/types.h[/usr/include/sys]的更多相关文章

  1. linux c 头文件

    //1.Linux中一些头文件的作用: #include <assert.h> //ANSI C.提供断言,assert(表达式) #include <glib.h> //GC ...

  2. sys/types.h fcntl.h unistd.h sys/stat.h

    sys/types.h 是Unix/Linux系统的基本系统数据类型的头文件,含有size_t,time_t,pid_t等类型. 在应用程序源文件中包含 <sys/types.h> 以访问 ...

  3. linux常用头文件及说明

    linux常用头文件及说明 1. Linux中一些头文件的作用: <assert.h>:ANSI C.提供断言,assert(表达式)<glib.h>:GCC.GTK,GNOM ...

  4. linux常用头文件

    http://blog.csdn.net/kokodudu/article/details/17361161 aio.h 异步I/Oassert.h 验证程序断言 complex 复数类complex ...

  5. linux gcc头文件搜索路径

    #include <>: 直接到系统指定的某些目录中去找某些头文件.#include "": 先到源文件所在文件夹去找,然后再到系统指定的某些目录中去找某些头文件 1. ...

  6. [百科]sys/types.h

    sys/types.h中文名称为基本系统数据类型.在应用程序源文件中包含 <sys/types.h> 以访问 _LP64 和 _ILP32 的定义.此头文件还包含适当时应使用的多个基本派生 ...

  7. /usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’

    /usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’/usr/include/linux/types.h:13: erro ...

  8. Linux内核头文件与内核与库的关系

    看上一篇文章中对buildroot的介绍,里面的文档第 3.1.1.1 Internal toolchain backend 节内容 C库会去访问Linux kernel headers(*.h)文件 ...

  9. 高级c++头文件bits/stdc++.h

    用这种方法声明头文件只需两行代码 #include<bits/stdc++.h> using namespace std; 这个头文件包含以下等等C++中包含的所有头文件: #includ ...

随机推荐

  1. Linux中编译或安装程序时提示No such file or directory

    deb系发行版本 Debian Ubuntu Linux Mint等 dpkg -S dpkg-query -S rpm系发行版本 RHEL CentOS等 yum provides rpm -qf ...

  2. Max Mex

    Max Mex 无法直接处理 可以二分答案! [0,mid]是否在同一个链上? 可以不修改地做了 修改? 能不能信息合并?可以! 记录包含[l,r]的最短链的两端 可以[0,k][k+1,mid]合并 ...

  3. python random使用方法

    如果你对在Python生成随机数与random模块中最常用的几个函数的关系与不懂之处,下面的文章就是对Python生成随机数与random模块中最常用的几个函数的关系,希望你会有所收获,以下就是这篇文 ...

  4. How MVC pattern Flows

    以上MVC流程中Model和View不存在依赖关系 以上MVC流程View和Model存在耦合关系(依赖关系越少越好)

  5. 第十六节、基于ORB的特征检测和特征匹配

    之前我们已经介绍了SIFT算法,以及SURF算法,但是由于计算速度较慢的原因.人们提出了使用ORB来替代SIFT和SURF.与前两者相比,ORB有更快的速度.ORB在2011年才首次发布.在前面小节中 ...

  6. Jquery Mobile列表

    向 <ol> 或 <ul> 元素添加 data-role="listview" 1.圆角和外边距 :data-inset="true" ...

  7. 使用rdbtools工具来解析redis rdb文件

    工欲善其事必先利其器,日常工作中,好的工具能够高效的协助我们工作:今天介绍一款用来解析redis rdb文件的工具,非常好用.会之,受用无穷! 一.rdbtools工具介绍 源码地址:https:// ...

  8. JavaSE_坚持读源码_HashMap对象_put_Java1.7

    当你往HashMap里面put时,你其实在干什么? /** * Associates the specified value with the specified key in this map. * ...

  9. Docker笔记一:Docker介绍

    目录 什么是Docker? Docker的核心概念 Docker镜像命令 Docker容器命令 Docker实战 查看我的镜像 启动Redis Docker中国镜像加速 血与泪的教训 什么是Docke ...

  10. linux xargs【转】

    -i -I 参数区别 http://man.linuxde.net/xargs 它们都是用来作参数扩展替换的,以下两句代码其实效果一样 cat arg.txt|xargs -i sh sk.sh -p ...