Chinaunix首页 | 论坛 | 博客
  • 博客访问: 67098
  • 博文数量: 22
  • 博客积分: 1406
  • 博客等级: 上尉
  • 技术积分: 190
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-13 13:18
文章分类

全部博文(22)

文章存档

2011年(1)

2010年(21)

我的朋友

分类: LINUX

2010-02-20 18:07:54

As I would like to study how to code the shell tools, ls and dd, etc., the code must be found first? But where is the code in Linux or Unix?

This problem is just how to find the code of ls?

Here is one way to answer:

1. $ which/whereis ls, to find the ls, also using locate, find

2. $ dpkg -S /bin/ls, to find which package ls belongs to, here is coreutils

3. $ apt-get source xxx(package name)

4. $ sudo apt-get build-dep xxx, in an attempt to satisfy the build dependencies for a source package

阅读(987) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:man in Linux/Unix for POSIX and C++ programming

给主人留下些什么吧!~~