General :: View The Source Code Of Different Commands
Jul 24, 2010
i want to see the source code of different commands .how they are working ??for ex why ls is listing all the files and directory .what code is written for ls so that it is listing like this.where the source code is kept by the os
i was told by some members to use svn to view nagios plugins source code. i'm currently use nagios checker, i want to view the source code behind it, i want to see how the codes behind the nagios checker work.
[URL]
i've installed subversion using sudo apt-get install subversion, after that followed by this command: svn co [URL] subversion but when i issued the second command i got this:
Code:
... Setting up subversion (1.6.5dfsg-1ubuntu1) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place
After# apt-get -d source python-uno I get 550MB worth of files, it looks like source code for the entire openoffice package:# dir -alt total 539412
drwxr-xr-x 2 nick nick 4096 2010-06-08 20:21 . drwxrwxrwx 9 root root 4096 2010-06-08 20:21 .. -rw-r--r-- 1 nick nick 105004167 2010-06-06 01:17 openoffice.org_3.2.0-11~bpo50+1.diff.gz -rw-r--r-- 1 nick nick 10999 2010-06-06 01:17 openoffice.org_3.2.0-11~bpo50+1.dsc -rw-r--r-- 1 nick nick 446777138 2010-03-25 10:47 openoffice.org_3.2.0.orig.tar.gz
# which unpack into a folder called openoffice.org-3.2.0 Maybe I have been horribly misled by this obsolete documentation and the following statement therein:To download a source package, you would use the following command:
$ apt-get source packagename
This will download three files: a .orig.tar.gz, a .dsc and a .diff.gz. In the case of packages made specifically for Debian, the last of these is not downloaded and the first usually won't have "orig" in the name. The .dsc file is used by dpkg-source for unpacking the source package into the directory packagename-version.
I just pulled the MS Removal Tool executable off a Windows 7 machine. Is there a way I can view the code on my Ubuntu machine? I am curious how they block the "real" av software from running. I did get rid of it, pretty simple.
I have been using Linux for a number of years, and I am reasonably adept at installing, updating, using, and fixing problems in it. I am currently using Fedora 15 as I like the "bleeding-edge" stuff, but I have finally come far enough that I want to learn about writing and manipulating source code. I am trying to teach myself c++ and have all the necessary compilers librarys etc.
I have read where C is first converted to Assembly before its final compilation to binary. Is there a way to do this with Bash commands? I would like the understanding that Assembly allows to Bash somehow.
I have been working in macromedia dreamviewer for editing html and php files, Just now I moved to linux system by installing xampp , my question is that I need a best html and php editor that supports both the design view and code view as like in dreamviewer.
i am already a little bit familiar with linux and now i want to know better the linux OS. i have downloaded the source code of the krnel from the kernel.org and i dont understand the linux source trees organization, so can somebody do me a favor and give me a link to some internet page (or at least a book) that explains that?? i have searched in the internet with the tag:::linux source trees organization and i have not found nothing interesting
I am trying to install the tightVNC on my imac.It expects X install; I see that X11 in my utility. I think it is ok, but the instruction states to install it on /usr/bin/. Which is correct?Then I need to have ~JPEG and ~zlib to place in /usr/bin/ or inside of certain folders to use.To make sure it is ok; I put both of them in both of the indicated places. I assume it is going to work.Now, I am suppose to build and install. I am not sure how to do it with the command "xmkmf" and not sure where to run this command.I am doing all of this in terminal.
I'm running spamassassin and want to install the fuzzyocr module for it. One of the dependencies of fuzzyocr is 'giflib' but according to the fuzzyocr page, it needs to be patched before I install it, with a patch which they supply on the fuzzyocr download page. I've tried to install the patch and get the following error.
I've created a GUI for my voip software wherein i'm using the source code of linphone 3.3.2 for video and all protcol stuffs . It is like i've got my own gtk GUI instead of the linphone's glade . Hope you get the picture of what i'm doing . I would like to know how to compile the source code since because i do not know about make files and stuffs . Kindly help me solve this .
I just tried installing mysql on my vps from source code. after untaring the source code. when i tried to configure the ./configure script. iwas not able to find it. it is not there.
I have downloaded lzo-2.00 package and have installed it linux kernel 2.6 version. Now I want to include the lzo library in the source code of linux.According to the instructions given in the package, I have copied the files (minilzo.c,minilzo.h,lzoconf.h,lzodefs.h)in the source directory(/mm),added minilzo.o to my Makefile and have included(#include minilzo.h) from my program. But when I compile the kernel,I am getting errors.
Errors:
->limits.h:No such file or directory ->assert.h:No such file or directory
I am in urgent requirement of free simulation source code for Intra-domain. Mobility Management in OMNETT++ or NS2. Where I can post queries for OMNETT++.
Can any body tell me where can i found the source code for echo command. so that i can download it such that it can help me for further studies on echo command
while installing the linux-2.6.31 source code in fedora 12 I got an error: [root@pratyush linux-2.6.31]# make install sh /home/parag/rpmbuild/SOURCES/linux-2.6.31/arch/x86/boot/install.sh 2.6.31 arch/x86/boot/bzImage System.map "/boot" /sbin/new-kernel-pkg: line 277: /sbin/mkinitrd: No such file or directory mkinitrd failed
I'm trying to get the source code of a web page from linux command line and save it to a file. I googled for it but didn't get any info. I'm not sure if wget can do this.
I vaguely remember that there is a way to store instructions for vim in my file (like tabstop width etc). I'm not speaking of settings in vimrc but of storing those settings with in the file to be edited. That way the tabstop has always the right width even if I transfer this file to another computer. However, I can't remember what the magic word is so that vim picks up those settings when loading the file.